]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/CALO/AliHLTCaloConstants.h
Bug Fix: Forgot to call the initialization of
[u/mrichter/AliRoot.git] / HLT / CALO / AliHLTCaloConstants.h
1 //-*- Mode: C++ -*-
2 // $Id: AliHLTCALOConstants.h $
3
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                               */
7
8 /// @file   AliHLCaloConstants.h
9 /// @author Svein Lindal
10 /// @date   
11 /// @brief  Class containing constants for PHOS and EMCAL
12 ///         loaded libraries
13
14
15 #include "Rtypes.h"
16 #include "TString.h"
17 #ifndef ALIHLTCALOCONSTANTS_H
18 #define ALIHLTCALOCONSTANTS_H
19
20 #define  ALTROMAXSAMPLES   1008  /**<The maximum number of samples of the ALTRO*/ 
21 #define  ALTROMAXPRESAMPLES  15  //Constant 
22 #define  NGAINS  2
23 #define  HIGHGAIN  1
24 #define  LOWGAIN  0
25 #define  MAXBINVALUE  1023 //Constant
26 #define  MAXHOSTS 20 // For the onlinedisplay
27 #define  DEFAULTEVENTPORT 42001
28
29 class AliHLTCaloConstants
30 {
31
32 public:
33
34   AliHLTCaloConstants();
35   virtual ~AliHLTCaloConstants();
36  
37
38   // virtual void InitConstants() = 0; 
39
40
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; };      
46   
47   Int_t GetNDATATYPES() const { return fkNDATATYPES; } ;                                        
48   Int_t GetCSPSPERFEE() const {  return fkCSPSPERFEE; };                                        
49   
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();
64
65    // EMCAL specific
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; };
77   
78   //  static AliHLTCaloConstants *fgInstance;
79   AliHLTCaloConstants *fgInstance;
80
81 protected:
82   
83
84   TString fkDETNAME;
85   Float_t fkCELLSTEP; //Constant
86   Float_t fkMAXCELLSTEPETA;
87   Float_t fkMINCELLSTEPETA;
88   Float_t fkCELLSTEPPHI;
89   Float_t fkCELLHEIGHT;
90   Float_t fkCELLANGLE;
91   Float_t fkRADLENGTH;
92   Float_t fkCRITICENERGY;
93   Float_t fkCJ;
94   Int_t fkDDLOFFSET;   //Constant
95
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*/
105
106 private:
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);
115 };
116
117
118
119 #endif