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 00048 00049 00050 #define FIRST_BLOCK_FRAME_START 0x65 //'e' 00051 #define FIRST_BLOCK_FRAME_OTHER 0x45 //'E' 00052 #define MIDDLE_BLOCK_FRAME_START 0x62 // 'b' 00053 #define MIDDLE_BLOCK_FRAME_OTHER 0x42 // 'B' 00054 #define LAST_BLOCK_FRAME_START 0x66 // 'f' 00055 #define LAST_BLOCK_FRAME_OTHER 0x46 // 'F' 00056 #define ONLY_BLOCK_FRAME_START 0x6f //'o' 00057 #define ONLY_BLOCK_FRAME_OTHER 0x4f //'O' 00058 00059 #define ATRI_NO_STATIONS 35 00060 00061 //PID Files //will change to /var/run 00062 #define ARAD_PID_FILE "/tmp/arad.pid" 00063 #define ARA_ACQD_PID_FILE "/tmp/araAcqd.pid" 00064 00065 //CONFIG Files //will change to absoulte path maybe 00066 #define ARAD_CONFIG_FILE "arad.config" 00067 #define ARA_ACQD_CONFIG_FILE "ARAAcqd.config" 00068 00069 //SOCKETS 00070 #define ATRI_CONTROL_SOCKET "/tmp/atri_control" 00071 #define FX2_CONTROL_SOCKET "/tmp/fx2_control" 00072 #define ACQD_RC_SOCKET "/tmp/acqd_rc" 00073 00074 00075 #define ARA_RUN_NUMBER_FILE "/home/ara/araRunNumber" 00076 #define DAQ_EVENT_DIR "event/" 00077 #define DAQ_SENSOR_HK_DIR "sensorHk/" 00078 #define DAQ_EVENT_HK_DIR "eventHk/" 00079 #define DAQ_PED_DIR "peds/" 00080 00081 #define EVENT_FILE_HEAD "ev" 00082 #define SENSOR_HK_FILE_HEAD "sensorHk" 00083 #define EVENT_HK_FILE_HEAD "eventHk" 00084 #define PED_FILE_HEAD "peds" 00085 #define DAQ_RUNLOG_DIR "logs" 00086 00087 00088 #endif //ARA_SOFT_H
Generated on Tue Sep 11 19:51:09 2012 for ARA ROOT v3.3 Software by
