CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TEcnaParEcal.h
Go to the documentation of this file.
1 #ifndef ROOT_TEcnaParEcal
2 #define ROOT_TEcnaParEcal
3 
5 // //
6 // TEcnaParEcal Init ECAL Parameters //
7 // //
8 // //
9 // //
11 
12 #include <Riostream.h>
13 #include "TNamed.h"
14 
15 class TEcnaParEcal : public TNamed {
16 
17 protected:
18 
19  void Init();
20 
21 private:
22 
23  Int_t fgMaxCar; // Max nb of caracters for char* or TString
24  TString fTTBELL;
25 
26  Int_t fCnew; // flags for dynamical allocation
27  Int_t fCdelete;
28 
29  //....... Current subdetector flag and codes
30 
31  TString fFlagSubDet;
32  TString fCodeEB;
33  TString fCodeEE;
34 
35  //....... ECAL parameters
36 
37  //.......................... EB
38 
39  Int_t fMaxSampADCEB; // Maximum number of samples ADC
40 
41  Int_t fMaxEvtsInBurstPedRunEB; // Maximum number of events per burst in Pedestal Runs
42 
43  Int_t fMaxSMEtaInEB; // Maximum number of SMs in eta in EB
44  Int_t fMaxSMPhiInEB; // Maximum number of SMs in phi in EB
45 
46  Int_t fMaxSMInEBPlus; // Maximum number of SMs in EB+
47  Int_t fMaxSMInEBMinus; // Maximum number of SMs in EB-
48  Int_t fMaxSMInEB; // Maximum number of SMs in EB
49 
50  Int_t fMaxTowEtaInEB; // Maximum number of towers in eta in EB
51  Int_t fMaxTowPhiInEB; // Maximum number of towers in phi in EB
52 
53  Int_t fMaxTowEtaInSM; // Maximum number of towers in eta in SM
54  Int_t fMaxTowPhiInSM; // Maximum number of towers in phi in SM
55  Int_t fMaxTowInSM; // Maximum number of towers in SM
56  // ( = fMaxTowEtaInSM*fMaxTowPhiInSM )
57 
58  Int_t fMaxCrysEtaInTow; // Maximum number of crystals in eta in a tower
59  Int_t fMaxCrysPhiInTow; // Maximum number of crystals in phi in a tower
60  Int_t fMaxCrysInTow; // Maximum number of crystals in a tower
61  // ( = fMaxCrysEtaInTow*fMaxCrysPhiInTow )
62 
63  Int_t fMaxCrysEtaInSM; // Maximum number of crystals in eta in SM
64  // ( = fMaxTowEtaInSM*fMaxCrysEtaInTow )
65 
66  Int_t fMaxCrysPhiInSM; // Maximum number of crystals in phi in SM
67  // ( = fMaxTowPhiInSM*fMaxCrysPhiInTow )
68 
69  Int_t fMaxCrysInSM; // Maximum number of crystals in SM
70  // ( = fMaxTowInSM*fMaxCrysInTow )
71 
72  //.......................... EE
73 
74  Int_t fMaxSampADCEE; // Maximum number of samples ADC
75 
76  Int_t fMaxEvtsInBurstPedRunEE; // Maximum number of events per burst in Pedestal Runs
77 
78  Int_t fMaxDeeIXInEE; // Maximum number of Dees in IX in EE
79  Int_t fMaxDeeIYInEE; // Maximum number of Dees in IY in EE
80 
81  Int_t fMaxDeeInEEPlus; // Maximum number of Dees in EE+
82  Int_t fMaxDeeInEEMinus; // Maximum number of Dees in EE-
83  Int_t fMaxDeeInEE; // Maximum number of Dees in EE
84 
85  Int_t fMaxSCIXInEE; // Maximum number of SC's in IX in EE
86  Int_t fMaxSCIYInEE; // Maximum number of SC's in IY in EE
87 
88  Int_t fMaxSCIXInDee; // Maximum number of super-crystals in IX in Dee
89  Int_t fMaxSCIYInDee; // Maximum number of super-crystals in IY in Dee
90  Int_t fMaxSCEcnaInDee; // Maximum ECNA number of super-crystals in the Dee matrix
91  // ( = fMaxSCIXInDee*fMaxSCIYInDee )
92  Int_t fMaxSCForConsInDee; // Maximum number of super-crystals for construction in Dee
93 
94  Int_t fMaxCrysIXInSC; // Maximum number of crystals in IX in a super-crystal
95  Int_t fMaxCrysIYInSC; // Maximum number of crystals in IY in a super-crystal
96  Int_t fMaxCrysInSC; // Maximum number of crystals in a super-crystal
97  // ( = fMaxCrysIXInSC*fMaxCrysIYInSC )
98 
99  Int_t fMaxCrysIXInDee; // Maximum number of crystals in IX in Dee
100  // ( = fMaxSCIXInDee*fMaxCrysIXInSC )
101 
102  Int_t fMaxCrysIYInDee; // Maximum number of crystals in IY in Dee
103  // ( = fMaxSCIYInDee*fMaxCrysIYInSC )
104 
105  Int_t fMaxCrysEcnaInDee; // Maximum number of crystals in Dee matrix
106  // ( = fMaxSCEcnaInDee*fMaxCrysInSC )
107  Int_t fMaxCrysForConsInDee; // Maximum number of crystals for construction in Dee
108  // ( = fMaxSCForConsInDee*fMaxCrysInSC )
109 
110  Int_t fMaxDSInEEPlus; // Maximum number of Data Sectors in EE+
111  Int_t fMaxDSInEEMinus; // Maximum number of Data Sectors in EE-
112  Int_t fMaxDSInEE; // Maximum number of Data Sectors in EE
113 
114  Int_t fNumberOfNotConnectedSCs; // for SCs 182, 178, 207, etc...
115  Int_t fNumberOfNotCompleteSCs; // for SCs 161, 216, 224, etc...
116 
117  //.......................... Stas (current Subdetector)
118 
119  Int_t fMaxSampADC; // Maximum number of samples ADC
120 
121  Int_t fMaxEvtsInBurstPedRun; // Maximum number of events per burst in Pedestal Runs
122 
123  Int_t fMaxStexHocoInStas; // Maximum number of Stex's in Hoco in the Stas
124  Int_t fMaxStexVecoInStas; // Maximum number of Stex's in Veco in the Stas
125 
126  Int_t fMaxStexInStasPlus; // Maximum number of Stex's in the Stas+
127  Int_t fMaxStexInStasMinus; // Maximum number of Stex's in the Stas-
128  Int_t fMaxStexInStas; // Maximum number of Stex's in the Stas
129 
130  Int_t fMaxStinHocoInStas; // Maximum number of Stex's in Hoco in the Stas
131  Int_t fMaxStinVecoInStas; // Maximum number of Stex's in Veco in the Stas
132 
133  Int_t fMaxStinHocoInStex; // Maximum number of Stin's in Hoco in a Stex
134  Int_t fMaxStinVecoInStex; // Maximum number of Stin's in Veco in a Stex
135  Int_t fMaxStinEcnaInStex; // Maximum number of Stin's in a Stex ("Ecna" Stex matrix for Dee)
136  // ( = fMaxStinHocoInStex*fMaxStinVecoInStex )
137 
138  Int_t fMaxCrysHocoInStin; // Maximum number of crystals in Hoco in a Stin
139  Int_t fMaxCrysVecoInStin; // Maximum number of crystals in Veco in a Stin
140  Int_t fMaxCrysInStin; // Maximum number of crystals in a Stin
141  // ( = fMaxCrysHocoInStin*fMaxCrysVecoInStin )
142 
143  Int_t fMaxCrysHocoInStex; // Maximum number of crystals in Hoco in a Stex
144  // ( = fMaxStinHocoInStex*fMaxCrysHocoInStin )
145 
146  Int_t fMaxCrysVecoInStex; // Maximum number of crystals in Veco in a Stex
147  // ( = fMaxStinVecoInStex*fMaxCrysVecoInStin )
148 
149  Int_t fMaxCrysEcnaInStex; // Maximum number of crystals in a ECNA matrix Stex
150  // ( = fMaxStinEcnaInStex*fMaxCrysInStin )
151 
152  Int_t fMaxStinInStex; // EB: Maximum number of towers in SM (= fMaxStinEcnaInStex = fMaxTowInSM)
153  // EE: Maximum number of SC for Construction in Dee (= fMaxSCForConsInDee)
154 
155  Int_t fMaxCrysInStex; // EB: Maximum number of crystals in SM (= fMaxCrysEcnaInStex = fMaxCrysInSM)
156  // EE: Maximum number of crystals for Construction in Dee (= fMaxCrysForConsInDee)
157 
158  // Int_t fMaxStinForConsInStas; // Maximum number of towers in EB
159  // or Maximum number of SC for construction in EE
160 
161  //------------------------------- methods
162 
163  public:
164 
165  TEcnaParEcal();
166  TEcnaParEcal(const TString);
167  ~TEcnaParEcal();
168 
169  void SetEcalSubDetector(const TString);
170  TString GetEcalSubDetector();
171 
172  //............................. EB
173  Int_t MaxSampADCEB();
174  Int_t MaxEvtsInBurstPedRunEB();
175 
176  Int_t MaxSMEtaInEB();
177  Int_t MaxSMPhiInEB();
178 
179  Int_t MaxSMInEBPlus();
180  Int_t MaxSMInEBMinus();
181  Int_t MaxSMInEB();
182 
183  Int_t MaxTowEtaInEB();
184  Int_t MaxTowPhiInEB();
185 
186  Int_t MaxTowEtaInSM();
187  Int_t MaxTowPhiInSM();
188  Int_t MaxTowInSM();
189 
190  Int_t MaxCrysEtaInTow();
191  Int_t MaxCrysPhiInTow();
192  Int_t MaxCrysInTow();
193 
194  Int_t MaxCrysEtaInSM();
195  Int_t MaxCrysPhiInSM();
196  Int_t MaxCrysInSM();
197 
198  //............................. EE
199  Int_t MaxSampADCEE();
200  Int_t MaxEvtsInBurstPedRunEE();
201 
202  Int_t MaxDeeIXInEE();
203  Int_t MaxDeeIYInEE();
204 
205  Int_t MaxDeeInEEPlus();
206  Int_t MaxDeeInEEMinus();
207  Int_t MaxDeeInEE();
208 
209  Int_t MaxSCIXInEE();
210  Int_t MaxSCIYInEE();
211 
212  Int_t MaxSCIXInDee();
213  Int_t MaxSCIYInDee();
214  Int_t MaxSCEcnaInDee();
215  Int_t MaxSCForConsInDee();
216 
217  Int_t MaxCrysIXInSC();
218  Int_t MaxCrysIYInSC();
219  Int_t MaxCrysInSC();
220 
221  Int_t MaxCrysIXInDee();
222  Int_t MaxCrysIYInDee();
223  Int_t MaxCrysEcnaInDee();
224  Int_t MaxCrysForConsInDee();
225 
226  Int_t MaxDSInEE();
227 
228  Int_t NumberOfNotConnectedSCs();
229  Int_t NumberOfNotCompleteSCs();
230 
231  //............................. Current subdetector (Stin-Stex-Stas)
232  Int_t MaxSampADC();
233  Int_t MaxEvtsInBurstPedRun();
234 
235  Int_t MaxStexHocoInStas();
236  Int_t MaxStexVecoInStas();
237 
238  Int_t MaxStexInStasPlus();
239  Int_t MaxStexInStasMinus();
240  Int_t MaxStexInStas();
241 
242  Int_t MaxStinHocoInStas();
243  Int_t MaxStinVecoInStas();
244  // Int_t MaxStinForConsInStas();
245 
246  Int_t MaxStinHocoInStex();
247  Int_t MaxStinVecoInStex();
248  Int_t MaxStinEcnaInStex();
249  Int_t MaxStinInStex();
250 
251  Int_t MaxCrysHocoInStex();
252  Int_t MaxCrysVecoInStex();
253  Int_t MaxCrysEcnaInStex();
254  Int_t MaxCrysInStex();
255 
256  Int_t MaxCrysHocoInStin();
257  Int_t MaxCrysVecoInStin();
258  Int_t MaxCrysInStin();
259 
260  ClassDef(TEcnaParEcal,1) //Init of ECAL parameters
261 };
262 #endif
Int_t fMaxDSInEEPlus
Definition: TEcnaParEcal.h:110
Int_t fMaxDeeInEEPlus
Definition: TEcnaParEcal.h:81
Int_t MaxCrysPhiInTow()
Int_t fgMaxCar
Definition: TEcnaParEcal.h:23
Int_t MaxCrysHocoInStex()
Int_t fMaxStinVecoInStex
Definition: TEcnaParEcal.h:134
Int_t fMaxCrysVecoInStex
Definition: TEcnaParEcal.h:146
Int_t MaxCrysInSM()
Int_t MaxCrysIYInDee()
Int_t MaxSCIYInDee()
Int_t MaxCrysEtaInTow()
Int_t MaxStexVecoInStas()
Int_t fMaxEvtsInBurstPedRun
Definition: TEcnaParEcal.h:121
Int_t fMaxCrysInStin
Definition: TEcnaParEcal.h:140
Int_t MaxCrysEcnaInDee()
Int_t fMaxCrysIYInSC
Definition: TEcnaParEcal.h:95
Int_t MaxSampADCEB()
Int_t fMaxCrysIYInDee
Definition: TEcnaParEcal.h:102
Int_t fMaxEvtsInBurstPedRunEB
Definition: TEcnaParEcal.h:41
Int_t MaxCrysVecoInStin()
Int_t fMaxSCIXInDee
Definition: TEcnaParEcal.h:88
Int_t MaxStinVecoInStex()
Int_t fMaxSMInEBMinus
Definition: TEcnaParEcal.h:47
Int_t fNumberOfNotConnectedSCs
Definition: TEcnaParEcal.h:114
Int_t fMaxCrysInStex
Definition: TEcnaParEcal.h:155
Int_t fMaxCrysForConsInDee
Definition: TEcnaParEcal.h:107
Int_t fMaxTowPhiInSM
Definition: TEcnaParEcal.h:54
Int_t MaxStinInStex()
TString fCodeEB
Definition: TEcnaParEcal.h:32
Int_t MaxStinHocoInStas()
Int_t MaxSMInEBPlus()
Int_t fMaxCrysIXInDee
Definition: TEcnaParEcal.h:99
Int_t fMaxSampADC
Definition: TEcnaParEcal.h:119
Int_t MaxDeeInEEMinus()
Int_t fMaxTowPhiInEB
Definition: TEcnaParEcal.h:51
Int_t MaxDeeIYInEE()
Int_t fMaxStinHocoInStas
Definition: TEcnaParEcal.h:130
Int_t MaxTowPhiInSM()
Int_t MaxSampADCEE()
Int_t fMaxCrysInSM
Definition: TEcnaParEcal.h:69
Int_t MaxSCIXInDee()
Int_t fMaxTowEtaInSM
Definition: TEcnaParEcal.h:53
Int_t fMaxStexVecoInStas
Definition: TEcnaParEcal.h:124
Int_t fMaxSCIYInDee
Definition: TEcnaParEcal.h:89
Int_t fMaxCrysEcnaInDee
Definition: TEcnaParEcal.h:105
Int_t MaxEvtsInBurstPedRunEE()
Int_t MaxCrysEtaInSM()
Int_t fMaxStinEcnaInStex
Definition: TEcnaParEcal.h:135
Int_t MaxCrysIXInDee()
Int_t MaxSMPhiInEB()
Int_t MaxEvtsInBurstPedRun()
Int_t fMaxCrysInTow
Definition: TEcnaParEcal.h:60
Int_t fMaxSCIYInEE
Definition: TEcnaParEcal.h:86
Int_t fMaxStinHocoInStex
Definition: TEcnaParEcal.h:133
Int_t fMaxStexInStasMinus
Definition: TEcnaParEcal.h:127
Int_t MaxCrysIXInSC()
Int_t fCdelete
Definition: TEcnaParEcal.h:27
TString fTTBELL
Definition: TEcnaParEcal.h:24
Int_t fMaxCrysPhiInTow
Definition: TEcnaParEcal.h:59
Int_t fMaxDeeIYInEE
Definition: TEcnaParEcal.h:79
Int_t MaxStexInStasPlus()
Int_t MaxStinVecoInStas()
Int_t fMaxSCForConsInDee
Definition: TEcnaParEcal.h:92
Int_t fMaxEvtsInBurstPedRunEE
Definition: TEcnaParEcal.h:76
Int_t fMaxStinVecoInStas
Definition: TEcnaParEcal.h:131
Int_t MaxSCIXInEE()
Int_t fMaxSMInEBPlus
Definition: TEcnaParEcal.h:46
Int_t MaxSMInEBMinus()
Int_t fMaxSampADCEB
Definition: TEcnaParEcal.h:39
Int_t MaxCrysInStex()
Int_t fMaxCrysEtaInTow
Definition: TEcnaParEcal.h:58
Int_t MaxCrysInStin()
Int_t MaxTowEtaInSM()
Int_t MaxSCEcnaInDee()
Int_t fNumberOfNotCompleteSCs
Definition: TEcnaParEcal.h:115
Int_t MaxSMEtaInEB()
Int_t fMaxDeeIXInEE
Definition: TEcnaParEcal.h:78
Int_t fMaxDSInEE
Definition: TEcnaParEcal.h:112
Int_t fMaxCrysInSC
Definition: TEcnaParEcal.h:96
Int_t fMaxSampADCEE
Definition: TEcnaParEcal.h:74
Int_t MaxDSInEE()
Int_t fMaxCrysPhiInSM
Definition: TEcnaParEcal.h:66
TString fCodeEE
Definition: TEcnaParEcal.h:33
Int_t fMaxSCEcnaInDee
Definition: TEcnaParEcal.h:90
Int_t MaxCrysIYInSC()
void SetEcalSubDetector(const TString)
Int_t fMaxCrysEcnaInStex
Definition: TEcnaParEcal.h:149
Int_t MaxCrysInTow()
Int_t MaxDeeInEEPlus()
Int_t NumberOfNotConnectedSCs()
Int_t fMaxStexInStasPlus
Definition: TEcnaParEcal.h:126
Int_t fMaxSMEtaInEB
Definition: TEcnaParEcal.h:43
Int_t fMaxCrysIXInSC
Definition: TEcnaParEcal.h:94
Int_t MaxStexInStasMinus()
Int_t fMaxCrysVecoInStin
Definition: TEcnaParEcal.h:139
Int_t MaxStexInStas()
Int_t fMaxDeeInEEMinus
Definition: TEcnaParEcal.h:82
Int_t MaxDeeIXInEE()
Int_t fMaxStexInStas
Definition: TEcnaParEcal.h:128
Int_t MaxCrysVecoInStex()
Int_t MaxSCForConsInDee()
Int_t MaxTowEtaInEB()
Int_t fMaxCrysHocoInStex
Definition: TEcnaParEcal.h:143
Int_t MaxTowPhiInEB()
Int_t fMaxStexHocoInStas
Definition: TEcnaParEcal.h:123
Int_t MaxCrysEcnaInStex()
Int_t fMaxCrysHocoInStin
Definition: TEcnaParEcal.h:138
Int_t MaxCrysHocoInStin()
Int_t MaxCrysInSC()
Int_t MaxSampADC()
Int_t MaxDeeInEE()
Int_t MaxSMInEB()
Int_t MaxStexHocoInStas()
Int_t fMaxSCIXInEE
Definition: TEcnaParEcal.h:85
Int_t MaxEvtsInBurstPedRunEB()
Int_t MaxStinEcnaInStex()
Int_t fMaxTowEtaInEB
Definition: TEcnaParEcal.h:50
TString GetEcalSubDetector()
Int_t fMaxStinInStex
Definition: TEcnaParEcal.h:152
Int_t fMaxTowInSM
Definition: TEcnaParEcal.h:55
Int_t fMaxSMPhiInEB
Definition: TEcnaParEcal.h:44
TString fFlagSubDet
Definition: TEcnaParEcal.h:31
Int_t fMaxDSInEEMinus
Definition: TEcnaParEcal.h:111
Int_t MaxStinHocoInStex()
Int_t MaxSCIYInEE()
Int_t NumberOfNotCompleteSCs()
Int_t fMaxDeeInEE
Definition: TEcnaParEcal.h:83
Int_t MaxCrysForConsInDee()
Int_t fMaxSMInEB
Definition: TEcnaParEcal.h:48
Int_t fMaxCrysEtaInSM
Definition: TEcnaParEcal.h:63
Int_t MaxCrysPhiInSM()
Int_t MaxTowInSM()