ARA ROOT Test BEd Software

AraEvent/araSoft.h

Go to the documentation of this file.
00001 
00009 /*
00010  *
00011  * Current CVS Tag:
00012  * $Header: $
00013  */
00014 
00015 #ifndef ARA_SOFT_H
00016 #define ARA_SOFT_H
00017 
00018 
00019 #ifndef __MAKECINT__
00020 #include <stdio.h>
00021 #include <syslog.h>
00022 
00023 
00024 #define ARA_LOG LOG_LOCAL4
00025 
00026 //#define ARA_LOG_MESSAGE(LOG_LEVEL,...) if(printToScreen>LOG_LEVEL) fprintf(stderr, __VA_ARGS__); syslog(LOG_LEVEL,__VA_ARGS__);
00027 
00029 #ifndef ARA_ROOT
00030 //int printToScreen;
00031 #endif
00032 #endif
00033 
00034 
00036 #define DDA_PER_ATRI 4
00037 #define BLOCKS_PER_DDA 512
00038 #define RFCHAN_PER_DDA 8
00039 #define TDA_PER_ATRI 4
00040 #define ANTS_PER_TDA 4
00041 #define L2_PER_TDA 4
00042 #define THRESHOLDS_PER_ATRI TDA_PER_ATRI*ANTS_PER_TDA
00043 #define SAMPLES_PER_BLOCK 64
00044 #define MAX_TRIG_BLOCKS 4
00045 #define CHANNELS_PER_ATRI DDA_PER_ATRI*RFCHAN_PER_DDA
00046 
00047 #define FIRST_BLOCK_FRAME_START 0x65  //'e'
00048 #define FIRST_BLOCK_FRAME_OTHER 0x45  //'E'
00049 #define MIDDLE_BLOCK_FRAME_START 0x62 // 'b'
00050 #define MIDDLE_BLOCK_FRAME_OTHER 0x42 // 'B'
00051 #define LAST_BLOCK_FRAME_START 0x66 // 'f'
00052 #define LAST_BLOCK_FRAME_OTHER 0x46 // 'F'
00053 #define ONLY_BLOCK_FRAME_START 0x6f  //'o'
00054 #define ONLY_BLOCK_FRAME_OTHER 0x4f  //'O'
00055 
00056 
00057 
00058 //PID Files  //will change to /var/run
00059 #define ARAD_PID_FILE "/tmp/arad.pid"
00060 #define ARA_ACQD_PID_FILE "/tmp/araAcqd.pid"
00061 
00062 //CONFIG Files //will change to absoulte path maybe
00063 #define ARAD_CONFIG_FILE "arad.config"
00064 #define ARA_ACQD_CONFIG_FILE "ARAAcqd.config"
00065 
00066 //SOCKETS
00067 #define ATRI_CONTROL_SOCKET "/tmp/atri_control"
00068 #define FX2_CONTROL_SOCKET "/tmp/fx2_control"
00069 #define ACQD_RC_SOCKET "/tmp/acqd_rc"
00070 
00071 
00072 #define ARA_RUN_NUMBER_FILE "/home/ara/araRunNumber"
00073 #define DAQ_EVENT_DIR "event/"
00074 #define DAQ_SENSOR_HK_DIR    "sensorHk/"
00075 #define DAQ_EVENT_HK_DIR "eventHk/"
00076 #define DAQ_PED_DIR   "peds/"
00077 
00078 #define EVENT_FILE_HEAD "ev"
00079 #define SENSOR_HK_FILE_HEAD    "sensorHk"
00080 #define EVENT_HK_FILE_HEAD    "eventHk"
00081 #define PED_FILE_HEAD   "peds"
00082 #define DAQ_RUNLOG_DIR  "logs"
00083 
00084 
00085 #endif //ARA_SOFT_H

Generated on Wed Aug 8 16:20:07 2012 for ARA ROOT Test Bed Software by doxygen 1.4.7