]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSConstants.h
Refactoring of constants usage. Some parameters common to
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSConstants.h
CommitLineData
1b41ab20 1//-*- Mode: C++ -*-
2// $Id$
3
4f4b7ba4 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 AliHLTPHOSConstants.h
9/// @author Svein Lindal
10/// @date
11/// @brief Class containing constants for PHOS libraries.
d9f20a7f 12
d9f20a7f 13#ifndef ALIHLTPHOSCONSTANTS_H
14#define ALIHLTPHOSCONSTANTS_H
427c373f 15#include <TString.h>
d9f20a7f 16
67c65fb5 17class AliHLTCaloConstants;
03b3d247 18
4f4b7ba4 19class AliHLTPHOSConstants : public AliHLTCaloConstants
20{
b444d727 21
4f4b7ba4 22public:
23
24 AliHLTPHOSConstants();
25 ~AliHLTPHOSConstants();
26
27 Int_t GetMAXHOSTS() const { return fkMAXHOSTS;}
28 Int_t GetDEFAULTEVENTPORT() const { return fkDEFAULTEVENTPORT; }
a0fab818 29 // Int_t GetMAXBINVALUE() const { return fkMAXBINVALUE; }
30
31 // Int_t GetHIGHGAIN() const { return fkHIGHGAIN;}
32 // Int_t GetLOWGAIN() const { return fkLOWGAIN;}
4f4b7ba4 33
a0fab818 34 // Int_t GetALTROMAXSAMPLES() const {return fkALTROMAXSAMPLES;}
35 // Int_t GetALTROMAXPRESAMPLES() const { return fkALTROMAXPRESAMPLES;}
4f4b7ba4 36
37 Int_t GetNZROWSRCU() const { return fkNZROWSRCU;}
38 Int_t GetNXCOLUMNSRCU() const { return fkNXCOLUMNSRCU;}
39 Int_t GetNZROWSMOD() const { return fkNZROWSMOD;}
40 Int_t GetNXCOLUMNSMOD() const { return fkNXCOLUMNSMOD;}
a0fab818 41 // Int_t GetNGAINS() const { return fkNGAINS;}
4f4b7ba4 42 Int_t GetNDATATYPES() const { return fkNDATATYPES;}
43
44 Int_t GetPFMAXPATHLENGTH() const { return fkPFMAXPATHLENGTH;}
45
46 Int_t GetPFDEFAULTNSAMPLES() const{ return fkPFDEFAULTNSAMPLES;}
47 Int_t GetPFDEFAULTSTARTINDEX() const { return fkPFDEFAULTSTARTINDEX;}
48
49 Double_t GetDEFAULTTAU() const { return fkDEFAULTTAU;}
50 Int_t GetDEFAULTFS() const { return fkDEFAULTFS;}
51
52 Int_t GetMODULE0() const { return fkMODULE0;}
53 Int_t GetMODULE1() const { return fkMODULE1;}
54 Int_t GetMODULE2() const { return fkMODULE2;}
55 Int_t GetMODULE3() const { return fkMODULE3;}
56 Int_t GetMODULE4() const { return fkMODULE4;}
57
58 Int_t GetCSPSPERFEE() const { return fkCSPSPERFEE;}
59 Int_t GetRCU0() const { return fkRCU0;}
60 Int_t GetRCU1() const { return fkRCU1;}
61 Int_t GetRCU2() const { return fkRCU2;}
62 Int_t GetRCU3() const { return fkRCU3;}
63
64 Int_t GetZ0() const { return fkZ0;}
65 Int_t GetZ1() const { return fkZ1;}
66 Int_t GetX0() const { return fkX0;}
67 Int_t GetX1() const { return fkX1;}
68
69 Int_t GetNMODULES() const { return fkNMODULES;}
70 Int_t GetNRCUS() const { return fkNRCUS;}
71
72 Int_t GetNRCUSPERMODULE() const { return fkNRCUSPERMODULE;}
73 Int_t GetNRCUSPERTOTAL() const { return fkNRCUSPERTOTAL;}
74 Int_t GetNFEECS() const { return fkNFEECS;}
75 Int_t GetNALTROS() const { return fkNALTROS;}
76 Int_t GetNALTROCHANNELS() const { return fkNALTROCHANNELS;}
77 Int_t GetNBRANCHES() const { return fkNBRANCHES;}
78
79 Float_t GetCELLSTEP() const { return fkCELLSTEP; }
80 Int_t GetNRCUSPERSECTOR() const { return fkNRCUSPERSECTOR; }
9cd20a1c 81
82 Int_t GetDDLOFFSET() const { return fkDDLOFFSET; }
427c373f 83
84 TString GetDETNAME() const { return fkDETNAME; }
4f4b7ba4 85
86private:
87
88 /** Constant members */
67c65fb5 89 const Int_t fkMAXHOSTS; //Constant
90 const Int_t fkDEFAULTEVENTPORT; //Constant
a0fab818 91 // const Int_t fkMAXBINVALUE; //Constant
92 // const Int_t fkHIGHGAIN; //Constant
93 // const Int_t fkLOWGAIN; //Constant
4f4b7ba4 94
a0fab818 95 // const Int_t fkALTROMAXSAMPLES; /**<The maximum number of samples of the ALTRO*/
96 // const Int_t fkALTROMAXPRESAMPLES; //Constant
4f4b7ba4 97
98 const Int_t fkNZROWSRCU; /**<Number of rows per module*/
67c65fb5 99 const Int_t fkNXCOLUMNSRCU; //Constant
4f4b7ba4 100 const Int_t fkNZROWSMOD; /**<Number of rows per module*/
101 const Int_t fkNXCOLUMNSMOD; /**<Number of columns per module*/
a0fab818 102 // const Int_t fkNGAINS; /**<Number of gains per ALTRO channel*/
67c65fb5 103 const Int_t fkNDATATYPES; //Constant
4f4b7ba4 104
67c65fb5 105 const Int_t fkPFMAXPATHLENGTH; //Constant
4f4b7ba4 106
67c65fb5 107 const Int_t fkPFDEFAULTNSAMPLES; //Constant
108 const Int_t fkPFDEFAULTSTARTINDEX; //Constant
4f4b7ba4 109
110 const Double_t fkDEFAULTTAU; /**<Assume that the signal rise time of the altrp pulses is 2 us (nominal value of the electronics)*/
111 const Int_t fkDEFAULTFS; /**<Assume that the signal is samples with 10 MHZ samle rate*/
112
67c65fb5 113 const Int_t fkMODULE0; //Constant
114 const Int_t fkMODULE1; //Constant
115 const Int_t fkMODULE2; //Constant
116 const Int_t fkMODULE3; //Constant
117 const Int_t fkMODULE4; //Constant
118
119 const Int_t fkCSPSPERFEE; //Constant
120 const Int_t fkRCU0; //Constant
121 const Int_t fkRCU1; //Constant
122 const Int_t fkRCU2; //Constant
123 const Int_t fkRCU3; //Constant
124
125 const Int_t fkZ0; //Constant
126 const Int_t fkZ1; //Constant
127 const Int_t fkX0; //Constant
128 const Int_t fkX1; //Constant
4f4b7ba4 129
130 const Int_t fkNMODULES; /**<Number of modules of the PHOS detector*/
131 const Int_t fkNRCUS; /**<Number of RCUs per Module*/
132
133 const Int_t fkNRCUSPERMODULE; /**<Number of RCUs per Module*/
134 const Int_t fkNRCUSPERTOTAL; /**<Total number of RCUs for PHOS*/
135 const Int_t fkNFEECS; /**<Number of Frontend cards per branch*/
136 const Int_t fkNALTROS; /**<Number of ALTROs per frontend card*/
67c65fb5 137 const Int_t fkNALTROCHANNELS; //Constant
138 const Int_t fkNBRANCHES; //Constant
b444d727 139
67c65fb5 140 const Float_t fkCELLSTEP; //Constant
141 const Int_t fkNRCUSPERSECTOR; //Constant
9cd20a1c 142
67c65fb5 143 const Int_t fkDDLOFFSET; //Constant
b444d727 144
427c373f 145 const TString fkDETNAME; //Constant
146
4f4b7ba4 147 ClassDef(AliHLTPHOSConstants, 1);
d9f20a7f 148
4f4b7ba4 149};
d9f20a7f 150
151#endif