The decoder now handles correctly the case when
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSCommonDefs.h
CommitLineData
46072fbe 1#ifndef ALIPHOSCOMMONDEFS_H
2#define ALIPHOSCOMMONDEFS_H
3
4//Hardware constants
f1f3f9c5 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*/
46072fbe 14
15//Geometry constants
f1f3f9c5 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
05be0766 21#define N_ZROWS_RCU N_ROWS_RCU /**<Number of rows per module*/
f1f3f9c5 22#define N_XCOLUMNS_RCU N_COLUMNS_RCU
23
05be0766 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*/
f1f3f9c5 26
27#define N_GAINS 2 /**<Number of gains per ALTRO channel*/
ed7c7c43 28#define N_DATATYPES 10 /**<Max number of output datatypes for a single component*/
972b1d49 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
e932cafe 36//analysis constatnts
37#define LOW_GAIN 1
38#define HIGH_GAIN 0
39
972b1d49 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*/
46072fbe 43
da6cfe54 44//HOMER
45#define MAX_BIN_VALUE 1023
46#define MAX_HOSTS 20
47#define MAX_HOSTNAME_LENGTH 64
48#define DEFAULT_EVENT_PORT 42001
49#define DEFAULT_HISTO_PORT 42002
50
46072fbe 51#endif
ea912979 52
53