#ifndef ALIHLTEMCALCONSTANTS_H
#define ALIHLTEMCALCONSTANTS_H
-#include "Rtypes.h"
+
#include "AliHLTCaloConstants.h"
class AliHLTEMCALConstants : public AliHLTCaloConstants
{
-
-public:
+public:
AliHLTEMCALConstants();
~AliHLTEMCALConstants();
-
- Int_t GetMAXHOSTS() const { return fkMAXHOSTS;}
- Int_t GetDEFAULTEVENTPORT() const { return fkDEFAULTEVENTPORT; }
- Int_t GetMAXBINVALUE() const { return fkMAXBINVALUE; }
- Int_t GetHIGHGAIN() const { return fkHIGHGAIN;}
- Int_t GetLOWGAIN() const { return fkLOWGAIN;}
-
- Int_t GetALTROMAXSAMPLES() const {return fkALTROMAXSAMPLES;}
- Int_t GetALTROMAXPRESAMPLES() const { return fkALTROMAXPRESAMPLES;}
-
- Int_t GetNZROWSRCU() const { return fkNZROWSRCU;}
- Int_t GetNXCOLUMNSRCU() const { return fkNXCOLUMNSRCU;}
- Int_t GetNZROWSMOD() const { return fkNZROWSMOD;}
- Int_t GetNXCOLUMNSMOD() const { return fkNXCOLUMNSMOD;}
- Int_t GetNGAINS() const { return fkNGAINS;}
- Int_t GetNDATATYPES() const { return fkNDATATYPES;}
-
- Int_t GetPFMAXPATHLENGTH() const { return fkPFMAXPATHLENGTH;}
-
- Int_t GetPFDEFAULTNSAMPLES() const{ return fkPFDEFAULTNSAMPLES;}
- Int_t GetPFDEFAULTSTARTINDEX() const { return fkPFDEFAULTSTARTINDEX;}
+ virtual Int_t GetNZROWSMOD() const { return EMCAL::NZROWSMOD;}
+ virtual Int_t GetNXCOLUMNSMOD() const { return EMCAL::NXCOLUMNSMOD;};
+ virtual Int_t GetNMODULES() const { return EMCAL::NMODULES; };
+ virtual Int_t GetNRCUSPERMODULE() const { return EMCAL::NRCUSPERMODULE;};
+ virtual Int_t GetNFEECS() const { return EMCAL::NFEECS; } ;
+ virtual void InitConstants();
- Double_t GetDEFAULTTAU() const { return fkDEFAULTTAU;}
- Int_t GetDEFAULTFS() const { return fkDEFAULTFS;}
-
- Int_t GetMODULE0() const { return fkMODULE0;}
- Int_t GetMODULE1() const { return fkMODULE1;}
- Int_t GetMODULE2() const { return fkMODULE2;}
- Int_t GetMODULE3() const { return fkMODULE3;}
- Int_t GetMODULE4() const { return fkMODULE4;}
-
- Int_t GetCSPSPERFEE() const { return fkCSPSPERFEE;}
- Int_t GetRCU0() const { return fkRCU0;}
- Int_t GetRCU1() const { return fkRCU1;}
- Int_t GetRCU2() const { return fkRCU2;}
- Int_t GetRCU3() const { return fkRCU3;}
-
- Int_t GetZ0() const { return fkZ0;}
- Int_t GetZ1() const { return fkZ1;}
- Int_t GetX0() const { return fkX0;}
- Int_t GetX1() const { return fkX1;}
-
- Int_t GetNMODULES() const { return fkNMODULES;}
- Int_t GetNRCUS() const { return fkNRCUS;}
-
- Int_t GetNRCUSPERMODULE() const { return fkNRCUSPERMODULE;}
- Int_t GetNRCUSPERTOTAL() const { return fkNRCUSPERTOTAL;}
- Int_t GetNFEECS() const { return fkNFEECS;}
- Int_t GetNALTROS() const { return fkNALTROS;}
- Int_t GetNALTROCHANNELS() const { return fkNALTROCHANNELS;}
- Int_t GetNBRANCHES() const { return fkNBRANCHES;}
-
- Float_t GetCELLSTEP() const { return fkCELLSTEP; } //BALLE must be set correctly
- Int_t GetNRCUSPERSECTOR() const { return fkNRCUSPERSECTOR; }
- Int_t GetDDLOFFSET() const { return fkDDLOFFSET; }
-
-
private:
-
- /** Constant members */
-
- const Int_t fkMAXHOSTS;
- const Int_t fkDEFAULTEVENTPORT;
- const Int_t fkMAXBINVALUE;
- const Int_t fkHIGHGAIN;
- const Int_t fkLOWGAIN;
-
- const Int_t fkALTROMAXSAMPLES; /**<The maximum number of samples of the ALTRO*/
- const Int_t fkALTROMAXPRESAMPLES;
-
- const Int_t fkNZROWSRCU; /**<Number of rows per module*/
- const Int_t fkNXCOLUMNSRCU;
- const Int_t fkNZROWSMOD; /**<Number of rows per module*/
- const Int_t fkNXCOLUMNSMOD; /**<Number of columns per module*/
- const Int_t fkNGAINS; /**<Number of gains per ALTRO channel*/
- const Int_t fkNDATATYPES;
-
- const Int_t fkPFMAXPATHLENGTH;
-
- const Int_t fkPFDEFAULTNSAMPLES;
- const Int_t fkPFDEFAULTSTARTINDEX;
-
- const Double_t fkDEFAULTTAU; /**<Assume that the signal rise time of the altrp pulses is 2 us (nominal value of the electronics)*/
- const Int_t fkDEFAULTFS; /**<Assume that the signal is samples with 10 MHZ samle rate*/
-
- const Int_t fkMODULE0;
- const Int_t fkMODULE1;
- const Int_t fkMODULE2;
- const Int_t fkMODULE3;
- const Int_t fkMODULE4;
-
- const Int_t fkCSPSPERFEE;
- const Int_t fkRCU0;
- const Int_t fkRCU1;
- const Int_t fkRCU2;
- const Int_t fkRCU3;
-
- const Int_t fkZ0;
- const Int_t fkZ1;
- const Int_t fkX0;
- const Int_t fkX1;
-
- const Int_t fkNMODULES; /**<Number of modules of the EMCAL detector*/
- const Int_t fkNRCUS; /**<Number of RCUs per Module*/
-
- const Int_t fkNRCUSPERMODULE; /**<Number of RCUs per Module*/
- const Int_t fkNRCUSPERTOTAL; /**<Total number of RCUs for EMCAL*/
- const Int_t fkNFEECS; /**<Number of Frontend cards per branch*/
- const Int_t fkNALTROS; /**<Number of ALTROs per frontend card*/
- const Int_t fkNALTROCHANNELS;
- const Int_t fkNBRANCHES;
- const Float_t fkCELLSTEP;
- const Int_t fkNRCUSPERSECTOR;
-
- const Int_t fkDDLOFFSET;
-
ClassDef(AliHLTEMCALConstants, 1)
-
};
+
#endif