2 // $Id: AliHLTCALOConstants.h $
4 //* This file is property of and copyright by the ALICE HLT Project *
5 //* ALICE Experiment at CERN, All rights reserved. *
6 //* See cxx source for full Copyright notice */
8 /// @file AliHLCaloConstants.h
9 /// @author Svein Lindal
11 /// @brief Class containing constants for PHOS and EMCAL
17 #ifndef ALIHLTCALOCONSTANTS_H
18 #define ALIHLTCALOCONSTANTS_H
20 #define ALTROMAXSAMPLES 1008 /**<The maximum number of samples of the ALTRO*/
21 #define ALTROMAXPRESAMPLES 15 //Constant
25 #define MAXBINVALUE 1023 //Constant
26 #define MAXHOSTS 20 // For the onlinedisplay
27 #define DEFAULTEVENTPORT 42001
29 class AliHLTCaloConstants
34 AliHLTCaloConstants();
35 virtual ~AliHLTCaloConstants();
38 // virtual void InitConstants() = 0;
41 static Int_t GetALTROMAXSAMPLES() { return ALTROMAXSAMPLES; };
42 static Int_t GetNGAINS() { return NGAINS; };
43 static Int_t GetHIGHGAIN() { return HIGHGAIN; };
44 static Int_t GetLOWGAIN() { return LOWGAIN; };
45 static Int_t GetMAXBINVALUE() { return MAXBINVALUE; };
47 Int_t GetNDATATYPES() const { return fkNDATATYPES; } ;
48 Int_t GetCSPSPERFEE() const { return fkCSPSPERFEE; };
50 Int_t GetNZROWSRCU() const { return fkNZROWSRCU;}
51 Int_t GetNXCOLUMNSRCU() const { return fkNXCOLUMNSRCU;}
52 Int_t GetNZROWSMOD() const { return fkNZROWSMOD;}
53 Int_t GetNXCOLUMNSMOD() const { return fkNXCOLUMNSMOD;}
54 Int_t GetNMODULES() const { return fkNMODULES;}
55 Int_t GetNRCUS() const { return fkNRCUS;}
56 Int_t GetNRCUSPERMODULE() const { return fkNRCUSPERMODULE;}
57 Int_t GetNRCUSPERTOTAL() const { return fkNRCUSPERTOTAL;}
58 Int_t GetNFEECS() const { return fkNFEECS;}
59 Int_t GetDDLOFFSET() const { return fkDDLOFFSET; }
60 Int_t GetNALTROS() { return fkNALTROS; };
61 Int_t GetNALTROCHANNELS() const { return fkNALTROCHANNELS; };
62 Int_t GetNBRANCHES() const { return fkNBRANCHES; };
63 AliHLTCaloConstants* Instance();
66 Float_t GetCELLSTEP() const { return fkCELLSTEP; }
67 Float_t GetMAXCELLSTEPETA() const { return fkMAXCELLSTEPETA; } //FR
68 Float_t GetMINCELLSTEPETA() const { return fkMINCELLSTEPETA; } //FR
69 Float_t GetCELLSTEPPHI() const { return fkCELLSTEPPHI; } //FR
70 Float_t GetCELLHEIGHT() const { return fkCELLHEIGHT; } //FR
71 Float_t GetCELLANGLE() const { return fkCELLANGLE; } //FR
72 Float_t GetRADLENGTH() const { return fkRADLENGTH; } //FR
73 Float_t GetCRITICENERGY() const { return fkCRITICENERGY; } //FR
74 Float_t GetCJ() const { return fkCJ;} //FR
75 // virtual Int_t GetDDLOFFSET() const = 0;
76 TString GetDETNAME() { return fkDETNAME; };
78 // static AliHLTCaloConstants *fgInstance;
79 AliHLTCaloConstants *fgInstance;
85 Float_t fkCELLSTEP; //Constant
86 Float_t fkMAXCELLSTEPETA;
87 Float_t fkMINCELLSTEPETA;
88 Float_t fkCELLSTEPPHI;
92 Float_t fkCRITICENERGY;
94 Int_t fkDDLOFFSET; //Constant
96 Int_t fkNZROWSRCU; /**<Number of rows per module*/
97 Int_t fkNXCOLUMNSRCU;//Constant
98 Int_t fkNZROWSMOD; /**<Number of rows per module*/
99 Int_t fkNXCOLUMNSMOD; /**<Number of columns per module*/
100 Int_t fkNMODULES; /**<Number of modules of the EMCAL detector*/
101 Int_t fkNRCUS; /**<Number of RCUs per Module*/
102 Int_t fkNRCUSPERMODULE; /**<Number of RCUs per Module*/
103 Int_t fkNRCUSPERTOTAL; /**<Total number of RCUs for EMCAL*/
104 Int_t fkNFEECS; /**<Number of Frontend cards per branch*/
107 const Int_t fkNALTROS; /**<Number of ALTROs per frontend card*/
108 const Int_t fkNALTROCHANNELS; //Constant
109 const Int_t fkNBRANCHES; //Constant
110 const Int_t fkCSPSPERFEE; //Constant
111 const Int_t fkNDATATYPES; //Constant
112 const Int_t fkMAXHOSTS; //Constant
113 const Int_t fkDEFAULTEVENTPORT; //Constant
114 ClassDef(AliHLTCaloConstants, 1);