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
26 #include "AliHLTCaloConstants.h"
29 class AliHLTEMCALConstants : public AliHLTCaloConstants
34 AliHLTEMCALConstants();
35 ~AliHLTEMCALConstants();
37 Int_t GetMAXHOSTS() const { return fkMAXHOSTS;}
38 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; } //BALLE must be set correctly
89 Int_t GetNRCUSPERSECTOR() const { return fkNRCUSPERSECTOR; }
90 Int_t GetDDLOFFSET() const { return fkDDLOFFSET; }
95 /** Constant members */
97 const Int_t fkMAXHOSTS;
98 const Int_t fkDEFAULTEVENTPORT;
99 const Int_t fkMAXBINVALUE;
100 const Int_t fkHIGHGAIN;
101 const Int_t fkLOWGAIN;
103 const Int_t fkALTROMAXSAMPLES; /**<The maximum number of samples of the ALTRO*/
104 const Int_t fkALTROMAXPRESAMPLES;
106 const Int_t fkNZROWSRCU; /**<Number of rows per module*/
107 const Int_t fkNXCOLUMNSRCU;
108 const Int_t fkNZROWSMOD; /**<Number of rows per module*/
109 const Int_t fkNXCOLUMNSMOD; /**<Number of columns per module*/
110 const Int_t fkNGAINS; /**<Number of gains per ALTRO channel*/
111 const Int_t fkNDATATYPES;
113 const Int_t fkPFMAXPATHLENGTH;
115 const Int_t fkPFDEFAULTNSAMPLES;
116 const Int_t fkPFDEFAULTSTARTINDEX;
118 const Double_t fkDEFAULTTAU; /**<Assume that the signal rise time of the altrp pulses is 2 us (nominal value of the electronics)*/
119 const Int_t fkDEFAULTFS; /**<Assume that the signal is samples with 10 MHZ samle rate*/
121 const Int_t fkMODULE0;
122 const Int_t fkMODULE1;
123 const Int_t fkMODULE2;
124 const Int_t fkMODULE3;
125 const Int_t fkMODULE4;
127 const Int_t fkCSPSPERFEE;
138 const Int_t fkNMODULES; /**<Number of modules of the EMCAL detector*/
139 const Int_t fkNRCUS; /**<Number of RCUs per Module*/
141 const Int_t fkNRCUSPERMODULE; /**<Number of RCUs per Module*/
142 const Int_t fkNRCUSPERTOTAL; /**<Total number of RCUs for EMCAL*/
143 const Int_t fkNFEECS; /**<Number of Frontend cards per branch*/
144 const Int_t fkNALTROS; /**<Number of ALTROs per frontend card*/
145 const Int_t fkNALTROCHANNELS;
146 const Int_t fkNBRANCHES;
148 const Float_t fkCELLSTEP;
149 const Int_t fkNRCUSPERSECTOR;
151 const Int_t fkDDLOFFSET;
153 ClassDef(AliHLTEMCALConstants, 1)