2 // $Id: AliHLTEMCALConstants.h 35357 2009-10-08 13:24:38Z phille $
4 /**************************************************************************
5 * This file is property of and copyright by the Experimental Nuclear *
6 * Physics Group, Dep. of Physics *
7 * University of Oslo, Norway, 2006 *
9 * Author: Svein Lindal slindal@fys.uio.no for the ALICE DCS Project. *
10 * Contributors are mentioned in the code where appropriate. *
11 * Please report bugs to slindal@fys.uio.no *
13 * Permission to use, copy, modify and distribute this software and its *
14 * documentation strictly for non-commercial purposes is hereby granted *
15 * without fee, provided that the above copyright notice appears in all *
16 * copies and that both the copyright notice and this permission notice *
17 * appear in the supporting documentation. The authors make no claims *
18 * about the suitability of this software for any purpose. It is *
19 * provided "as is" without express or implied warranty. *
20 **************************************************************************/
22 #ifndef ALIHLTEMCALCONSTANTS_H
23 #define ALIHLTEMCALCONSTANTS_H
25 class AliHLTCaloConstants;
28 class AliHLTEMCALConstants : public AliHLTCaloConstants
33 AliHLTEMCALConstants();
34 ~AliHLTEMCALConstants();
36 Int_t GetMAXHOSTS() const { return fkMAXHOSTS;}
37 Int_t GetDEFAULTEVENTPORT() const { return fkDEFAULTEVENTPORT; }
39 // Int_t GetMAXBINVALUE() const { return fkMAXBINVALUE; }
40 // Int_t GetHIGHGAIN() const { return fkHIGHGAIN;}
41 // Int_t GetLOWGAIN() const { return fkLOWGAIN;}
43 // Int_t GetALTROMAXSAMPLES() const {return fkALTROMAXSAMPLES;}
44 // Int_t GetALTROMAXPRESAMPLES() const { return fkALTROMAXPRESAMPLES;}
46 Int_t GetNZROWSRCU() const { return fkNZROWSRCU;}
47 Int_t GetNXCOLUMNSRCU() const { return fkNXCOLUMNSRCU;}
48 Int_t GetNZROWSMOD() const { return fkNZROWSMOD;}
49 Int_t GetNXCOLUMNSMOD() const { return fkNXCOLUMNSMOD;}
50 // Int_t GetNGAINS() const { return fkNGAINS;}
51 Int_t GetNDATATYPES() const { return fkNDATATYPES;}
53 Int_t GetPFMAXPATHLENGTH() const { return fkPFMAXPATHLENGTH;}
55 Int_t GetPFDEFAULTNSAMPLES() const{ return fkPFDEFAULTNSAMPLES;}
56 Int_t GetPFDEFAULTSTARTINDEX() const { return fkPFDEFAULTSTARTINDEX;}
58 Double_t GetDEFAULTTAU() const { return fkDEFAULTTAU;}
59 Int_t GetDEFAULTFS() const { return fkDEFAULTFS;}
61 Int_t GetMODULE0() const { return fkMODULE0;}
62 Int_t GetMODULE1() const { return fkMODULE1;}
63 Int_t GetMODULE2() const { return fkMODULE2;}
64 Int_t GetMODULE3() const { return fkMODULE3;}
65 Int_t GetMODULE4() const { return fkMODULE4;}
67 Int_t GetCSPSPERFEE() const { return fkCSPSPERFEE;}
68 Int_t GetRCU0() const { return fkRCU0;}
69 Int_t GetRCU1() const { return fkRCU1;}
70 Int_t GetRCU2() const { return fkRCU2;}
71 Int_t GetRCU3() const { return fkRCU3;}
73 Int_t GetZ0() const { return fkZ0;}
74 Int_t GetZ1() const { return fkZ1;}
75 Int_t GetX0() const { return fkX0;}
76 Int_t GetX1() const { return fkX1;}
78 Int_t GetNMODULES() const { return fkNMODULES;}
79 Int_t GetNRCUS() const { return fkNRCUS;}
81 Int_t GetNRCUSPERMODULE() const { return fkNRCUSPERMODULE;}
82 Int_t GetNRCUSPERTOTAL() const { return fkNRCUSPERTOTAL;}
83 Int_t GetNFEECS() const { return fkNFEECS;}
84 Int_t GetNALTROS() const { return fkNALTROS;}
85 Int_t GetNALTROCHANNELS() const { return fkNALTROCHANNELS;}
86 Int_t GetNBRANCHES() const { return fkNBRANCHES;}
88 Float_t GetCELLSTEP() const { return fkCELLSTEP; }
89 Float_t GetMAXCELLSTEPETA() const { return fkMAXCELLSTEPETA; } //FR
90 Float_t GetMINCELLSTEPETA() const { return fkMINCELLSTEPETA; } //FR
91 Float_t GetCELLSTEPPHI() const { return fkCELLSTEPPHI; } //FR
92 Float_t GetCELLHEIGHT() const { return fkCELLHEIGHT; } //FR
93 Float_t GetCELLANGLE() const { return fkCELLANGLE; } //FR
94 Float_t GetRADLENGTH() const { return fkRADLENGTH; } //FR
95 Float_t GetCRITICENERGY() const { return fkCRITICENERGY; } //FR
96 Float_t GetGJ() const { return fkCJ;} //FR
97 Int_t GetNRCUSPERSECTOR() const { return fkNRCUSPERSECTOR; }
98 Int_t GetDDLOFFSET() const { return fkDDLOFFSET; }
99 TString GetDETNAME() const { return fkDETNAME; }
103 /** Constant members */
105 const Int_t fkMAXHOSTS;//Constant
106 const Int_t fkDEFAULTEVENTPORT;//Constant
107 // const Int_t fkMAXBINVALUE;//Constant
108 // const Int_t fkHIGHGAIN;//Constant
109 // const Int_t fkLOWGAIN;//Constant
111 // const Int_t fkALTROMAXSAMPLES; /**<The maximum number of samples of the ALTRO*/
112 // const Int_t fkALTROMAXPRESAMPLES; //Constant
114 const Int_t fkNZROWSRCU; /**<Number of rows per module*/
115 const Int_t fkNXCOLUMNSRCU;//Constant
116 const Int_t fkNZROWSMOD; /**<Number of rows per module*/
117 const Int_t fkNXCOLUMNSMOD; /**<Number of columns per module*/
119 // const Int_t fkNGAINS; /**<Number of gains per ALTRO channel*/
121 const Int_t fkNDATATYPES;//Constant
123 const Int_t fkPFMAXPATHLENGTH;//Constant
125 const Int_t fkPFDEFAULTNSAMPLES;//Constant
126 const Int_t fkPFDEFAULTSTARTINDEX;//Constant
128 const Double_t fkDEFAULTTAU; /**<Assume that the signal rise time of the altrp pulses is 2 us (nominal value of the electronics)*/
129 const Int_t fkDEFAULTFS; /**<Assume that the signal is samples with 10 MHZ samle rate*/
131 const Int_t fkMODULE0;//Constant
132 const Int_t fkMODULE1;//Constant
133 const Int_t fkMODULE2;//Constant
134 const Int_t fkMODULE3;//Constant
135 const Int_t fkMODULE4;//Constant
137 const Int_t fkCSPSPERFEE;//Constant
138 const Int_t fkRCU0;//Constant
139 const Int_t fkRCU1;//Constant
140 const Int_t fkRCU2;//Constant
141 const Int_t fkRCU3;//Constant
143 const Int_t fkZ0;//Constant
144 const Int_t fkZ1;//Constant
145 const Int_t fkX0;//Constant
146 const Int_t fkX1; //Constant
148 const Int_t fkNMODULES; /**<Number of modules of the EMCAL detector*/
149 const Int_t fkNRCUS; /**<Number of RCUs per Module*/
151 const Int_t fkNRCUSPERMODULE; /**<Number of RCUs per Module*/
152 const Int_t fkNRCUSPERTOTAL; /**<Total number of RCUs for EMCAL*/
153 const Int_t fkNFEECS; /**<Number of Frontend cards per branch*/
154 const Int_t fkNALTROS; /**<Number of ALTROs per frontend card*/
155 const Int_t fkNALTROCHANNELS; //Constant
156 const Int_t fkNBRANCHES; //Constant
158 const Float_t fkCELLSTEP; //Constant
159 const Float_t fkMAXCELLSTEPETA;
160 const Float_t fkMINCELLSTEPETA;
161 const Float_t fkCELLSTEPPHI;
162 const Float_t fkCELLHEIGHT;
163 const Float_t fkCELLANGLE;
164 const Float_t fkRADLENGTH;
165 const Float_t fkCRITICENERGY;
168 const Int_t fkNRCUSPERSECTOR; //Constant
170 const Int_t fkDDLOFFSET; //Constant
172 const TString fkDETNAME; //Constant
174 ClassDef(AliHLTEMCALConstants, 1)