]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIPHOSCOMMONDEFS_H | |
2 | #define ALIPHOSCOMMONDEFS_H | |
3 | ||
4 | //Hardware constants | |
5 | #define N_MODULES 5 /**<Number of modules of the PHOS detector*/ | |
6 | #define N_RCUS 4 /**<Number of RCUs per Module*/ | |
7 | #define N_RCUS_PER_MODULE 4 /**<Number of RCUs per Module*/ | |
8 | #define N_RCUS_PER_TOTAL N_MODULES*N_RCUS_PER_MODULE /**<Total number of RCUs for PHOS*/ | |
9 | #define N_BRANCHES 2 /**<Number of branches per RCU*/ | |
10 | #define N_FEECS 14 /**<Number of Frontend cards per branch*/ | |
11 | #define N_ALTROS 4 /**<Number of ALTROs per frontend card*/ | |
12 | #define N_ALTROCHANNELS 16 /**<Number of readout channles per ALTRO*/ | |
13 | #define ALTRO_MAX_SAMPLES 1008 /**<The maximum number of samples of the ALTRO*/ | |
14 | ||
15 | //Geometry constants | |
16 | #define N_ROWS_MOD 56 /**<Number of rows per module*/ | |
17 | #define N_COLUMNS_MOD 64 /**<Number of columns per module*/ | |
18 | ||
19 | #define N_ROWS_RCU 28 /**<Number of rows per module*/ | |
20 | #define N_COLUMNS_RCU 32 | |
21 | #define N_ZROWS_RCU N_ROWS_RCU /**<Number of rows per module*/ | |
22 | #define N_XCOLUMNS_RCU N_COLUMNS_RCU | |
23 | ||
24 | #define N_ZROWS_MOD N_ROWS_MOD /**<Number of rows per module*/ | |
25 | #define N_XCOLUMNS_MOD N_COLUMNS_MOD /**<Number of columns per module*/ | |
26 | ||
27 | #define N_GAINS 2 /**<Number of gains per ALTRO channel*/ | |
28 | #define N_DATATYPES 10 | |
29 | ||
30 | //peakfinder constatnts | |
31 | #define PF_MAX_PATH_LENGTH 256 | |
32 | #define PF_VECTOR_DIR "/HLT/PHOS/PFVectors" | |
33 | #define PF_DEFAULT_N_SAMPLES 70 | |
34 | #define PF_DEFAULT_STARTINDEX 0 | |
35 | ||
36 | //analysis constatnts | |
37 | #define LOW_GAIN 1 | |
38 | #define HIGH_GAIN 0 | |
39 | ||
40 | //general altro signal constatnts | |
41 | #define DEFAULT_TAU 2 /**<Assume that the signal rise time of the altrp pulses is 2 us (nominal value of the electronics)*/ | |
42 | #define DEFAULT_FS 10 /**<Assume that the signal is samples with 10 MHZ samle rate*/ | |
43 | ||
44 | #endif | |
45 | ||
46 |