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