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