]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/CALO/AliHLTCaloConstants.h
Bug Fix: Forgot to call the initialization of
[u/mrichter/AliRoot.git] / HLT / CALO / AliHLTCaloConstants.h
CommitLineData
178dd351 1//-*- Mode: C++ -*-
c375e15d 2// $Id: AliHLTCALOConstants.h $
178dd351 3
c375e15d 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
178dd351 13
a9c18ed8 14
9107088d 15#include "Rtypes.h"
4f4b7ba4 16#include "TString.h"
178dd351 17#ifndef ALIHLTCALOCONSTANTS_H
18#define ALIHLTCALOCONSTANTS_H
19
a9c18ed8 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
a0fab818 28
77f350f7 29class AliHLTCaloConstants
30{
4f4b7ba4 31
77f350f7 32public:
4f4b7ba4 33
34 AliHLTCaloConstants();
8c6eca17 35 virtual ~AliHLTCaloConstants();
36
1ff2323f 37
8c6eca17 38 // virtual void InitConstants() = 0;
1ff2323f 39
1ff2323f 40
a9c18ed8 41 static Int_t GetALTROMAXSAMPLES() { return ALTROMAXSAMPLES; };
a9c18ed8 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; };
d04d903d 46
c65aa222 47 Int_t GetNDATATYPES() const { return fkNDATATYPES; } ;
532aa795 48 Int_t GetCSPSPERFEE() const { return fkCSPSPERFEE; };
c65aa222 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; }
532aa795 60 Int_t GetNALTROS() { return fkNALTROS; };
61 Int_t GetNALTROCHANNELS() const { return fkNALTROCHANNELS; };
62 Int_t GetNBRANCHES() const { return fkNBRANCHES; };
8c6eca17 63 AliHLTCaloConstants* Instance();
64
532aa795 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
c65aa222 75 // virtual Int_t GetDDLOFFSET() const = 0;
532aa795 76 TString GetDETNAME() { return fkDETNAME; };
77
8c6eca17 78 // static AliHLTCaloConstants *fgInstance;
79 AliHLTCaloConstants *fgInstance;
80
532aa795 81protected:
8c6eca17 82
83
532aa795 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
c65aa222 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
532aa795 106private:
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
a0fab818 114 ClassDef(AliHLTCaloConstants, 1);
77f350f7 115};
a0fab818 116
117
a0fab818 118
178dd351 119#endif