//-*- Mode: C++ -*-
-// $Id: AliHLTPHOSConstants.h 34622 2009-09-04 13:22:01Z odjuvsla $
+// $Id: AliHLTEMCALConstants.h 35357 2009-10-08 13:24:38Z phille $
/**************************************************************************
* This file is property of and copyright by the Experimental Nuclear *
* Physics Group, Dep. of Physics *
* University of Oslo, Norway, 2006 *
* *
- * Author: Per Thomas Hille perthi@fys.uio.no for the ALICE DCS Project. *
+ * Author: Svein Lindal slindal@fys.uio.no for the ALICE DCS Project. *
* Contributors are mentioned in the code where appropriate. *
- * Please report bugs to perthi@fys.uio.no *
+ * Please report bugs to slindal@fys.uio.no *
* *
* Permission to use, copy, modify and distribute this software and its *
* documentation strictly for non-commercial purposes is hereby granted *
* provided "as is" without express or implied warranty. *
**************************************************************************/
-
#ifndef ALIHLTEMCALCONSTANTS_H
#define ALIHLTEMCALCONSTANTS_H
-namespace EmcalHLTConst
+class AliHLTCaloConstants;
+
+
+class AliHLTEMCALConstants : public AliHLTCaloConstants
{
- const int NZROWSRCU = 56; /**<Number of rows per module*/
- const int NXCOLUMNSRCU = 16;
- const int NZROWSMOD = 56; /**<Number of rows per module*/
- const int NXCOLUMNSMOD = 64; /**<Number of columns per module*/
-#ifndef __CINT__
- const unsigned char PFVECTORDIR[] = "/HLT/PHOS/PFVectors";
-#endif
- const int PFDEFAULTNSAMPLES = 70;
- const int PFDEFAULTSTARTINDEX = 0;
- const int DEFAULTTAU = 0.2; /**<Assume that the signal rise time of the altrp pulses is 2 us (nominal value of the electronics)*/
- const int DEFAULTFS = 10; /**<Assume that the signal is samples with 10 MHZ samle rate*/
- const int NMODULES = 13; /**<Number of modules of the EMCAL detector*/
- const int NRCUS = 2; /**<Number of RCUs per Module*/
- const int NRCUSPERMODULE = 4 ; /**<Number of RCUs per Module*/
- const int NFEECS = 9; /**<Number of Frontend cards per branch*/
-}
+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;}
+
+ 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;}
-#endif
+ 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; }
+ Int_t GetNRCUSPERSECTOR() const { return fkNRCUSPERSECTOR; }
+ Int_t GetDDLOFFSET() const { return fkDDLOFFSET; }
+
+
+private:
+
+ /** Constant members */
+
+ const Int_t fkMAXHOSTS;//Constant
+ const Int_t fkDEFAULTEVENTPORT;//Constant
+ const Int_t fkMAXBINVALUE;//Constant
+ const Int_t fkHIGHGAIN;//Constant
+ const Int_t fkLOWGAIN;//Constant
+ const Int_t fkALTROMAXSAMPLES; /**<The maximum number of samples of the ALTRO*/
+ const Int_t fkALTROMAXPRESAMPLES; //Constant
+ const Int_t fkNZROWSRCU; /**<Number of rows per module*/
+ const Int_t fkNXCOLUMNSRCU;//Constant
+ 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;//Constant
+
+ const Int_t fkPFMAXPATHLENGTH;//Constant
+
+ const Int_t fkPFDEFAULTNSAMPLES;//Constant
+ const Int_t fkPFDEFAULTSTARTINDEX;//Constant
+
+ 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;//Constant
+ const Int_t fkMODULE1;//Constant
+ const Int_t fkMODULE2;//Constant
+ const Int_t fkMODULE3;//Constant
+ const Int_t fkMODULE4;//Constant
+
+ const Int_t fkCSPSPERFEE;//Constant
+ const Int_t fkRCU0;//Constant
+ const Int_t fkRCU1;//Constant
+ const Int_t fkRCU2;//Constant
+ const Int_t fkRCU3;//Constant
+
+ const Int_t fkZ0;//Constant
+ const Int_t fkZ1;//Constant
+ const Int_t fkX0;//Constant
+ const Int_t fkX1; //Constant
+
+ 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; //Constant
+ const Int_t fkNBRANCHES; //Constant
+
+ const Float_t fkCELLSTEP; //Constant
+ const Int_t fkNRCUSPERSECTOR; //Constant
+
+ const Int_t fkDDLOFFSET; //Constant
+
+ ClassDef(AliHLTEMCALConstants, 1)
+
+};
+#endif