CMS 3D CMS Logo

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