+ const int MAXHOSTS=20; // related to the emcal debug online display
+
+ namespace ALTROConstants
+ {
+ const int ALTROMAXSAMPLES = 1008; // The maximum number of samples of the ALTRO
+ const int ALTROMAXPRESAMPLES = 15; // Maximum number of presamles from the ALTRO chip
+ const int NALTROS = 4; // Number of ALTROs per frontend card
+ const int NALTROCHANNELS = 16; // Number of readout channels per ALTRO chip
+ const int MINHARDWAREADDRESS = -2; // Smallest possible HW address ( in offline )
+ const int MAXHARDWAREADDRESS = 4096; // Max harware address, ( its to high )
+ const int MAXBINVALUE = 1023; // Max possible ALTRO ADC value ( 10 bit )
+ const int NGAINS = 2; // Number of gains ( high + low )
+ const int HIGHGAIN = 1; // Mnemonic for High Gain
+ const int LOWGAIN = 0; // Mnemonic for Low Gain
+ const int HG = HIGHGAIN; // Abbrevation for HIGHGAIN
+ const int LG = LOWGAIN; // Abbrevation for LOWGAIN
+ }
+
+ //FEE constants common to PHOS EMCAL
+ const int CSPSPERFEE = 32; // Charge Sensitive Preamplifiers (CSPs) per FEE
+ const int NBRANCHES = 2; // Branches per RCU
+ const int MAXHWADDRESSES = 4096; // Highest possible harware address
+
+ namespace EMCALConstants
+ {
+ const int NZROWSMOD = 48; // Number of rows per module
+ const int NXCOLUMNSMOD = 24; // Number of columns per module
+ const int NRCUSPERSECTOR = 4; // Number of RCUs per sector
+ const int NMODULES = 10; // Number of modules of the EMCAL detector
+ const int NRCUSPERMODULE = 2 ; // Number of RCUs per Module
+ const int NFEECS = 9; // Number of Frontend cards per branch*/
+ const int NZROWSRCU = 48; // Number of Rows per RCU
+ const int NXCOLUMNSRCU = 16; // Number of columns per RCU
+ }
+
+
+ namespace PHOSConstants
+ {
+ const int NZROWSMOD = 56; // Number of rows per module
+ const int NXCOLUMNSMOD = 64; // Number of columns per module
+ const int NMODULES = 5; // Number of modules of the PHOS detector
+ const int NRCUSPERMODULE = 4 ; // Number of RCUs per Module
+ const int NFEECS = 14; // Number of Frontend cards per branch
+ }
+
+