1 #ifndef ALIEMCALGEOPARAMS_H 2 #define ALIEMCALGEOPARAMS_H 63 Int_t
GetHWAddress(Int_t iBranch, Int_t iFEC, Int_t iALTRO, Int_t iChannel)
const 64 {
return ( (iBranch<<11) | (iFEC<<7) | (iALTRO<<4) | iChannel ); }
66 Int_t
GetBranch(Int_t iHW)
const {
return ( (iHW>>11) & 0x1 ) ; }
67 Int_t
GetFEC(Int_t iHW)
const {
return ( (iHW>>7) & 0xf ) ; }
68 Int_t
GetAltro(Int_t iHW)
const {
return ( (iHW>>4) & 0x7 ) ; }
69 Int_t
GetChannel(Int_t iHW)
const {
return ( iHW & 0xf ) ; }
73 {
return ( (iBranch<<11) | (iFEC<<7) | iCSP ); };
110 #endif //ALIEMCALGEOPARAMS_H static const int fgkSampleMax
highest possible sample value (10-bit = 0x3ff)
static const int fgkEMCALRows
Number of rows per module for EMCAL.
static const int fgkEMCALSTURows
STU rows.
Int_t GetBranch(Int_t iHW) const
Int_t GetFEC(Int_t iHW) const
static const int fgkEMCALLEDRefs
Number of LEDs (reference/monitors) per module for EMCAL; one per StripModule.
static const int fgkOverflowCut
saturation starts around here; also exist as private constant in AliEMCALRawUtils, should probably be replaced
Class for holding various EMCAL basic parameters.
Int_t GetHWAddress(Int_t iBranch, Int_t iFEC, Int_t iALTRO, Int_t iChannel) const
static const int fgkEMCALSTUCols
STU columns.
Int_t GetAltro(Int_t iHW) const
static const int fgkEMCALTRUsPerSM
number of TRU's in a SuperModule
static const int fgkEMCALTRURows
number of TRU rows
static const int fgkSampleMin
lowest possible sample value
static const int fgkEMCALCols
Number of columns per module for EMCAL.
static const int fgkEMCALTRUCols
number of TRY cols
static const int fgkEMCALModules
Number of modules, 12 for EMCal + 8 for DCAL.
static const int fgkEMCAL2x2PerTRU
number of 2x2's in a TRU
static const int fgkEMCALTempSensors
Number Temperature sensors per module for EMCAL.
Int_t GetStripModule(Int_t iSM, Int_t iCol) const
Int_t GetCSPAddress(Int_t iBranch, Int_t iFEC, Int_t iCSP) const
Int_t GetCSPFromAddress(Int_t i) const
Int_t GetChannel(Int_t iHW) const