]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/CALO/AliHLTCaloConstants.h
Refactoring of constants handling classes.
[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
9107088d 14#include "Rtypes.h"
4f4b7ba4 15#include "TString.h"
9107088d 16
178dd351 17#ifndef ALIHLTCALOCONSTANTS_H
18#define ALIHLTCALOCONSTANTS_H
19
4f4b7ba4 20
178dd351 21
a0fab818 22#define fgkALTROMAXSAMPLES 1008 /**<The maximum number of samples of the ALTRO*/
23#define fgkALTROMAXPRESAMPLES 15 //Constant
24#define fgkNGAINS 2
25#define fgkHIGHGAIN 1
26#define fgkLOWGAIN 0
27#define fkMAXBINVALUE 1023 //Constant
28
29
30
77f350f7 31class AliHLTCaloConstants
32{
4f4b7ba4 33
77f350f7 34public:
4f4b7ba4 35
36 AliHLTCaloConstants();
77f350f7 37 virtual ~AliHLTCaloConstants();
532aa795 38 virtual Int_t GetMAXHOSTS() const { return fkMAXHOSTS; } ;
39 virtual Int_t GetDEFAULTEVENTPORT() const { return fkDEFAULTEVENTPORT; };
40 static Int_t GetALTROMAXSAMPLES() { return fgkALTROMAXSAMPLES; };
a0fab818 41 static Int_t GetALTROMAXPRESAMPLES() { return fgkALTROMAXPRESAMPLES; } ;
d04d903d 42
532aa795 43 static Int_t GetNGAINS() { return fgkNGAINS; };
44 static Int_t GetHIGHGAIN() { return fgkHIGHGAIN; };
45 static Int_t GetLOWGAIN() { return fgkLOWGAIN; };
46 static Int_t GetMAXBINVALUE() {return fkMAXBINVALUE; };
d04d903d 47
48
42536569 49 // virtual Int_t GetNZROWSMOD() const { return fgkNZROWSMOD;}
50 virtual Int_t GetNZROWSMOD() const = 0;
51
3ab0d7b2 52 virtual Int_t GetNZROWSRCU() const = 0;
53 virtual Int_t GetNXCOLUMNSRCU() const = 0;
54 virtual Int_t GetNXCOLUMNSMOD() const = 0;
a0fab818 55 // virtual Int_t GetNGAINS() const = 0;
532aa795 56 virtual Int_t GetNDATATYPES() const { return fkNDATATYPES; } ;
3ab0d7b2 57 virtual Int_t GetPFMAXPATHLENGTH() const = 0;
58 virtual Int_t GetPFDEFAULTNSAMPLES() const = 0;
59 virtual Int_t GetPFDEFAULTSTARTINDEX() const = 0;
60 virtual Double_t GetDEFAULTTAU() const = 0;
61 virtual Int_t GetDEFAULTFS() const = 0;
532aa795 62 Int_t GetCSPSPERFEE() const { return fkCSPSPERFEE; };
d04d903d 63
3ab0d7b2 64 virtual Int_t GetNMODULES() const = 0;
65 virtual Int_t GetNRCUS() const = 0;
66 virtual Int_t GetNRCUSPERMODULE() const = 0;
67 virtual Int_t GetNRCUSPERTOTAL() const = 0;
68 virtual Int_t GetNFEECS() const = 0;
532aa795 69 Int_t GetNALTROS() { return fkNALTROS; };
70 Int_t GetNALTROCHANNELS() const { return fkNALTROCHANNELS; };
71 Int_t GetNBRANCHES() const { return fkNBRANCHES; };
72
73 // EMCAL specific
74 Float_t GetCELLSTEP() const { return fkCELLSTEP; }
75 Float_t GetMAXCELLSTEPETA() const { return fkMAXCELLSTEPETA; } //FR
76 Float_t GetMINCELLSTEPETA() const { return fkMINCELLSTEPETA; } //FR
77 Float_t GetCELLSTEPPHI() const { return fkCELLSTEPPHI; } //FR
78 Float_t GetCELLHEIGHT() const { return fkCELLHEIGHT; } //FR
79 Float_t GetCELLANGLE() const { return fkCELLANGLE; } //FR
80 Float_t GetRADLENGTH() const { return fkRADLENGTH; } //FR
81 Float_t GetCRITICENERGY() const { return fkCRITICENERGY; } //FR
82 Float_t GetCJ() const { return fkCJ;} //FR
9cd20a1c 83 virtual Int_t GetDDLOFFSET() const = 0;
532aa795 84 TString GetDETNAME() { return fkDETNAME; };
85
86
87protected:
88 TString fkDETNAME;
89 Float_t fkCELLSTEP; //Constant
90 Float_t fkMAXCELLSTEPETA;
91 Float_t fkMINCELLSTEPETA;
92 Float_t fkCELLSTEPPHI;
93 Float_t fkCELLHEIGHT;
94 Float_t fkCELLANGLE;
95 Float_t fkRADLENGTH;
96 Float_t fkCRITICENERGY;
97 Float_t fkCJ;
98 Int_t fkDDLOFFSET; //Constant
42536569 99
532aa795 100private:
101 const Int_t fkNALTROS; /**<Number of ALTROs per frontend card*/
102 const Int_t fkNALTROCHANNELS; //Constant
103 const Int_t fkNBRANCHES; //Constant
104 const Int_t fkCSPSPERFEE; //Constant
105 const Int_t fkNDATATYPES; //Constant
106 const Int_t fkMAXHOSTS; //Constant
107 const Int_t fkDEFAULTEVENTPORT; //Constant
a0fab818 108 ClassDef(AliHLTCaloConstants, 1);
77f350f7 109};
a0fab818 110
111
a0fab818 112
178dd351 113#endif