CMS 3D CMS Logo

LaserDQM.cc
Go to the documentation of this file.
1 
11 
15 
17  : tTopoToken(esConsumes()),
18  tGeoToken(esConsumes()),
19  theDebugLevel(theConf.getUntrackedParameter<int>("DebugLevel", 0)),
20  theSearchPhiTIB(theConf.getUntrackedParameter<double>("SearchWindowPhiTIB", 0.05)),
21  theSearchPhiTOB(theConf.getUntrackedParameter<double>("SearchWindowPhiTOB", 0.05)),
22  theSearchPhiTEC(theConf.getUntrackedParameter<double>("SearchWindowPhiTEC", 0.05)),
23  theSearchZTIB(theConf.getUntrackedParameter<double>("SearchWindowZTIB", 1.0)),
24  theSearchZTOB(theConf.getUntrackedParameter<double>("SearchWindowZTOB", 1.0)),
25  theDigiProducersList(theConf.getParameter<Parameters>("DigiProducersList")),
26  theDQMFileName(theConf.getUntrackedParameter<std::string>("DQMFileName", "testDQM.root")),
27  theDaqMonitorBEI(),
28  theMEBeam0Ring4Disc1PosAdcCounts(nullptr),
29  theMEBeam0Ring4Disc2PosAdcCounts(nullptr),
30  theMEBeam0Ring4Disc3PosAdcCounts(nullptr),
31  theMEBeam0Ring4Disc4PosAdcCounts(nullptr),
32  theMEBeam0Ring4Disc5PosAdcCounts(nullptr),
33  theMEBeam0Ring4Disc6PosAdcCounts(nullptr),
34  theMEBeam0Ring4Disc7PosAdcCounts(nullptr),
35  theMEBeam0Ring4Disc8PosAdcCounts(nullptr),
36  theMEBeam0Ring4Disc9PosAdcCounts(nullptr),
37  // Adc counts for Beam 1 in Ring 4
38  theMEBeam1Ring4Disc1PosAdcCounts(nullptr),
39  theMEBeam1Ring4Disc2PosAdcCounts(nullptr),
40  theMEBeam1Ring4Disc3PosAdcCounts(nullptr),
41  theMEBeam1Ring4Disc4PosAdcCounts(nullptr),
42  theMEBeam1Ring4Disc5PosAdcCounts(nullptr),
43  theMEBeam1Ring4Disc6PosAdcCounts(nullptr),
44  theMEBeam1Ring4Disc7PosAdcCounts(nullptr),
45  theMEBeam1Ring4Disc8PosAdcCounts(nullptr),
46  theMEBeam1Ring4Disc9PosAdcCounts(nullptr),
47  // plots for TEC2TEC
48  theMEBeam1Ring4Disc1PosTEC2TECAdcCounts(nullptr),
49  theMEBeam1Ring4Disc2PosTEC2TECAdcCounts(nullptr),
50  theMEBeam1Ring4Disc3PosTEC2TECAdcCounts(nullptr),
51  theMEBeam1Ring4Disc4PosTEC2TECAdcCounts(nullptr),
52  theMEBeam1Ring4Disc5PosTEC2TECAdcCounts(nullptr),
53  // Adc counts for Beam 2 in Ring 4
54  theMEBeam2Ring4Disc1PosAdcCounts(nullptr),
55  theMEBeam2Ring4Disc2PosAdcCounts(nullptr),
56  theMEBeam2Ring4Disc3PosAdcCounts(nullptr),
57  theMEBeam2Ring4Disc4PosAdcCounts(nullptr),
58  theMEBeam2Ring4Disc5PosAdcCounts(nullptr),
59  theMEBeam2Ring4Disc6PosAdcCounts(nullptr),
60  theMEBeam2Ring4Disc7PosAdcCounts(nullptr),
61  theMEBeam2Ring4Disc8PosAdcCounts(nullptr),
62  theMEBeam2Ring4Disc9PosAdcCounts(nullptr),
63  // plots for TEC2TEC
64  theMEBeam2Ring4Disc1PosTEC2TECAdcCounts(nullptr),
65  theMEBeam2Ring4Disc2PosTEC2TECAdcCounts(nullptr),
66  theMEBeam2Ring4Disc3PosTEC2TECAdcCounts(nullptr),
67  theMEBeam2Ring4Disc4PosTEC2TECAdcCounts(nullptr),
68  theMEBeam2Ring4Disc5PosTEC2TECAdcCounts(nullptr),
69  // Adc counts for Beam 3 in Ring 4
70  theMEBeam3Ring4Disc1PosAdcCounts(nullptr),
71  theMEBeam3Ring4Disc2PosAdcCounts(nullptr),
72  theMEBeam3Ring4Disc3PosAdcCounts(nullptr),
73  theMEBeam3Ring4Disc4PosAdcCounts(nullptr),
74  theMEBeam3Ring4Disc5PosAdcCounts(nullptr),
75  theMEBeam3Ring4Disc6PosAdcCounts(nullptr),
76  theMEBeam3Ring4Disc7PosAdcCounts(nullptr),
77  theMEBeam3Ring4Disc8PosAdcCounts(nullptr),
78  theMEBeam3Ring4Disc9PosAdcCounts(nullptr),
79  // Adc counts for Beam 4 in Ring 4
80  theMEBeam4Ring4Disc1PosAdcCounts(nullptr),
81  theMEBeam4Ring4Disc2PosAdcCounts(nullptr),
82  theMEBeam4Ring4Disc3PosAdcCounts(nullptr),
83  theMEBeam4Ring4Disc4PosAdcCounts(nullptr),
84  theMEBeam4Ring4Disc5PosAdcCounts(nullptr),
85  theMEBeam4Ring4Disc6PosAdcCounts(nullptr),
86  theMEBeam4Ring4Disc7PosAdcCounts(nullptr),
87  theMEBeam4Ring4Disc8PosAdcCounts(nullptr),
88  theMEBeam4Ring4Disc9PosAdcCounts(nullptr),
89  // plots for TEC2TEC
90  theMEBeam4Ring4Disc1PosTEC2TECAdcCounts(nullptr),
91  theMEBeam4Ring4Disc2PosTEC2TECAdcCounts(nullptr),
92  theMEBeam4Ring4Disc3PosTEC2TECAdcCounts(nullptr),
93  theMEBeam4Ring4Disc4PosTEC2TECAdcCounts(nullptr),
94  theMEBeam4Ring4Disc5PosTEC2TECAdcCounts(nullptr),
95  // Adc counts for Beam 5 in Ring 4
96  theMEBeam5Ring4Disc1PosAdcCounts(nullptr),
97  theMEBeam5Ring4Disc2PosAdcCounts(nullptr),
98  theMEBeam5Ring4Disc3PosAdcCounts(nullptr),
99  theMEBeam5Ring4Disc4PosAdcCounts(nullptr),
100  theMEBeam5Ring4Disc5PosAdcCounts(nullptr),
101  theMEBeam5Ring4Disc6PosAdcCounts(nullptr),
102  theMEBeam5Ring4Disc7PosAdcCounts(nullptr),
103  theMEBeam5Ring4Disc8PosAdcCounts(nullptr),
104  theMEBeam5Ring4Disc9PosAdcCounts(nullptr),
105  // Adc counts for Beam 6 in Ring 4
106  theMEBeam6Ring4Disc1PosAdcCounts(nullptr),
107  theMEBeam6Ring4Disc2PosAdcCounts(nullptr),
108  theMEBeam6Ring4Disc3PosAdcCounts(nullptr),
109  theMEBeam6Ring4Disc4PosAdcCounts(nullptr),
110  theMEBeam6Ring4Disc5PosAdcCounts(nullptr),
111  theMEBeam6Ring4Disc6PosAdcCounts(nullptr),
112  theMEBeam6Ring4Disc7PosAdcCounts(nullptr),
113  theMEBeam6Ring4Disc8PosAdcCounts(nullptr),
114  theMEBeam6Ring4Disc9PosAdcCounts(nullptr),
115  // plots for TEC2TEC
116  theMEBeam6Ring4Disc1PosTEC2TECAdcCounts(nullptr),
117  theMEBeam6Ring4Disc2PosTEC2TECAdcCounts(nullptr),
118  theMEBeam6Ring4Disc3PosTEC2TECAdcCounts(nullptr),
119  theMEBeam6Ring4Disc4PosTEC2TECAdcCounts(nullptr),
120  theMEBeam6Ring4Disc5PosTEC2TECAdcCounts(nullptr),
121  // Adc counts for Beam 7 in Ring 4
122  theMEBeam7Ring4Disc1PosAdcCounts(nullptr),
123  theMEBeam7Ring4Disc2PosAdcCounts(nullptr),
124  theMEBeam7Ring4Disc3PosAdcCounts(nullptr),
125  theMEBeam7Ring4Disc4PosAdcCounts(nullptr),
126  theMEBeam7Ring4Disc5PosAdcCounts(nullptr),
127  theMEBeam7Ring4Disc6PosAdcCounts(nullptr),
128  theMEBeam7Ring4Disc7PosAdcCounts(nullptr),
129  theMEBeam7Ring4Disc8PosAdcCounts(nullptr),
130  theMEBeam7Ring4Disc9PosAdcCounts(nullptr),
131  // plots for TEC2TEC
132  theMEBeam7Ring4Disc1PosTEC2TECAdcCounts(nullptr),
133  theMEBeam7Ring4Disc2PosTEC2TECAdcCounts(nullptr),
134  theMEBeam7Ring4Disc3PosTEC2TECAdcCounts(nullptr),
135  theMEBeam7Ring4Disc4PosTEC2TECAdcCounts(nullptr),
136  theMEBeam7Ring4Disc5PosTEC2TECAdcCounts(nullptr),
137  // Adc counts for Beam 0 in Ring 6
138  theMEBeam0Ring6Disc1PosAdcCounts(nullptr),
139  theMEBeam0Ring6Disc2PosAdcCounts(nullptr),
140  theMEBeam0Ring6Disc3PosAdcCounts(nullptr),
141  theMEBeam0Ring6Disc4PosAdcCounts(nullptr),
142  theMEBeam0Ring6Disc5PosAdcCounts(nullptr),
143  theMEBeam0Ring6Disc6PosAdcCounts(nullptr),
144  theMEBeam0Ring6Disc7PosAdcCounts(nullptr),
145  theMEBeam0Ring6Disc8PosAdcCounts(nullptr),
146  theMEBeam0Ring6Disc9PosAdcCounts(nullptr),
147  // Adc counts for Beam 1 in Ring 6
148  theMEBeam1Ring6Disc1PosAdcCounts(nullptr),
149  theMEBeam1Ring6Disc2PosAdcCounts(nullptr),
150  theMEBeam1Ring6Disc3PosAdcCounts(nullptr),
151  theMEBeam1Ring6Disc4PosAdcCounts(nullptr),
152  theMEBeam1Ring6Disc5PosAdcCounts(nullptr),
153  theMEBeam1Ring6Disc6PosAdcCounts(nullptr),
154  theMEBeam1Ring6Disc7PosAdcCounts(nullptr),
155  theMEBeam1Ring6Disc8PosAdcCounts(nullptr),
156  theMEBeam1Ring6Disc9PosAdcCounts(nullptr),
157  // Adc counts for Beam 2 in Ring 6
158  theMEBeam2Ring6Disc1PosAdcCounts(nullptr),
159  theMEBeam2Ring6Disc2PosAdcCounts(nullptr),
160  theMEBeam2Ring6Disc3PosAdcCounts(nullptr),
161  theMEBeam2Ring6Disc4PosAdcCounts(nullptr),
162  theMEBeam2Ring6Disc5PosAdcCounts(nullptr),
163  theMEBeam2Ring6Disc6PosAdcCounts(nullptr),
164  theMEBeam2Ring6Disc7PosAdcCounts(nullptr),
165  theMEBeam2Ring6Disc8PosAdcCounts(nullptr),
166  theMEBeam2Ring6Disc9PosAdcCounts(nullptr),
167  // Adc counts for Beam 3 in Ring 6
168  theMEBeam3Ring6Disc1PosAdcCounts(nullptr),
169  theMEBeam3Ring6Disc2PosAdcCounts(nullptr),
170  theMEBeam3Ring6Disc3PosAdcCounts(nullptr),
171  theMEBeam3Ring6Disc4PosAdcCounts(nullptr),
172  theMEBeam3Ring6Disc5PosAdcCounts(nullptr),
173  theMEBeam3Ring6Disc6PosAdcCounts(nullptr),
174  theMEBeam3Ring6Disc7PosAdcCounts(nullptr),
175  theMEBeam3Ring6Disc8PosAdcCounts(nullptr),
176  theMEBeam3Ring6Disc9PosAdcCounts(nullptr),
177  // Adc counts for Beam 4 in Ring 6
178  theMEBeam4Ring6Disc1PosAdcCounts(nullptr),
179  theMEBeam4Ring6Disc2PosAdcCounts(nullptr),
180  theMEBeam4Ring6Disc3PosAdcCounts(nullptr),
181  theMEBeam4Ring6Disc4PosAdcCounts(nullptr),
182  theMEBeam4Ring6Disc5PosAdcCounts(nullptr),
183  theMEBeam4Ring6Disc6PosAdcCounts(nullptr),
184  theMEBeam4Ring6Disc7PosAdcCounts(nullptr),
185  theMEBeam4Ring6Disc8PosAdcCounts(nullptr),
186  theMEBeam4Ring6Disc9PosAdcCounts(nullptr),
187  // Adc counts for Beam 5 in Ring 6
188  theMEBeam5Ring6Disc1PosAdcCounts(nullptr),
189  theMEBeam5Ring6Disc2PosAdcCounts(nullptr),
190  theMEBeam5Ring6Disc3PosAdcCounts(nullptr),
191  theMEBeam5Ring6Disc4PosAdcCounts(nullptr),
192  theMEBeam5Ring6Disc5PosAdcCounts(nullptr),
193  theMEBeam5Ring6Disc6PosAdcCounts(nullptr),
194  theMEBeam5Ring6Disc7PosAdcCounts(nullptr),
195  theMEBeam5Ring6Disc8PosAdcCounts(nullptr),
196  theMEBeam5Ring6Disc9PosAdcCounts(nullptr),
197  // Adc counts for Beam 6 in Ring 6
198  theMEBeam6Ring6Disc1PosAdcCounts(nullptr),
199  theMEBeam6Ring6Disc2PosAdcCounts(nullptr),
200  theMEBeam6Ring6Disc3PosAdcCounts(nullptr),
201  theMEBeam6Ring6Disc4PosAdcCounts(nullptr),
202  theMEBeam6Ring6Disc5PosAdcCounts(nullptr),
203  theMEBeam6Ring6Disc6PosAdcCounts(nullptr),
204  theMEBeam6Ring6Disc7PosAdcCounts(nullptr),
205  theMEBeam6Ring6Disc8PosAdcCounts(nullptr),
206  theMEBeam6Ring6Disc9PosAdcCounts(nullptr),
207  // Adc counts for Beam 7 in Ring 6
208  theMEBeam7Ring6Disc1PosAdcCounts(nullptr),
209  theMEBeam7Ring6Disc2PosAdcCounts(nullptr),
210  theMEBeam7Ring6Disc3PosAdcCounts(nullptr),
211  theMEBeam7Ring6Disc4PosAdcCounts(nullptr),
212  theMEBeam7Ring6Disc5PosAdcCounts(nullptr),
213  theMEBeam7Ring6Disc6PosAdcCounts(nullptr),
214  theMEBeam7Ring6Disc7PosAdcCounts(nullptr),
215  theMEBeam7Ring6Disc8PosAdcCounts(nullptr),
216  theMEBeam7Ring6Disc9PosAdcCounts(nullptr),
217  /* Laser Beams in TEC- */
218  // Adc counts for Beam 0 in Ring 4
219  theMEBeam0Ring4Disc1NegAdcCounts(nullptr),
220  theMEBeam0Ring4Disc2NegAdcCounts(nullptr),
221  theMEBeam0Ring4Disc3NegAdcCounts(nullptr),
222  theMEBeam0Ring4Disc4NegAdcCounts(nullptr),
223  theMEBeam0Ring4Disc5NegAdcCounts(nullptr),
224  theMEBeam0Ring4Disc6NegAdcCounts(nullptr),
225  theMEBeam0Ring4Disc7NegAdcCounts(nullptr),
226  theMEBeam0Ring4Disc8NegAdcCounts(nullptr),
227  theMEBeam0Ring4Disc9NegAdcCounts(nullptr),
228  // Adc counts for Beam 1 in Ring 4
229  theMEBeam1Ring4Disc1NegAdcCounts(nullptr),
230  theMEBeam1Ring4Disc2NegAdcCounts(nullptr),
231  theMEBeam1Ring4Disc3NegAdcCounts(nullptr),
232  theMEBeam1Ring4Disc4NegAdcCounts(nullptr),
233  theMEBeam1Ring4Disc5NegAdcCounts(nullptr),
234  theMEBeam1Ring4Disc6NegAdcCounts(nullptr),
235  theMEBeam1Ring4Disc7NegAdcCounts(nullptr),
236  theMEBeam1Ring4Disc8NegAdcCounts(nullptr),
237  theMEBeam1Ring4Disc9NegAdcCounts(nullptr),
238  // plots for TEC2TEC
239  theMEBeam1Ring4Disc1NegTEC2TECAdcCounts(nullptr),
240  theMEBeam1Ring4Disc2NegTEC2TECAdcCounts(nullptr),
241  theMEBeam1Ring4Disc3NegTEC2TECAdcCounts(nullptr),
242  theMEBeam1Ring4Disc4NegTEC2TECAdcCounts(nullptr),
243  theMEBeam1Ring4Disc5NegTEC2TECAdcCounts(nullptr),
244  // Adc counts for Beam 2 in Ring 4
245  theMEBeam2Ring4Disc1NegAdcCounts(nullptr),
246  theMEBeam2Ring4Disc2NegAdcCounts(nullptr),
247  theMEBeam2Ring4Disc3NegAdcCounts(nullptr),
248  theMEBeam2Ring4Disc4NegAdcCounts(nullptr),
249  theMEBeam2Ring4Disc5NegAdcCounts(nullptr),
250  theMEBeam2Ring4Disc6NegAdcCounts(nullptr),
251  theMEBeam2Ring4Disc7NegAdcCounts(nullptr),
252  theMEBeam2Ring4Disc8NegAdcCounts(nullptr),
253  theMEBeam2Ring4Disc9NegAdcCounts(nullptr),
254  // plots for TEC2TEC
255  theMEBeam2Ring4Disc1NegTEC2TECAdcCounts(nullptr),
256  theMEBeam2Ring4Disc2NegTEC2TECAdcCounts(nullptr),
257  theMEBeam2Ring4Disc3NegTEC2TECAdcCounts(nullptr),
258  theMEBeam2Ring4Disc4NegTEC2TECAdcCounts(nullptr),
259  theMEBeam2Ring4Disc5NegTEC2TECAdcCounts(nullptr),
260  // Adc counts for Beam 3 in Ring 4
261  theMEBeam3Ring4Disc1NegAdcCounts(nullptr),
262  theMEBeam3Ring4Disc2NegAdcCounts(nullptr),
263  theMEBeam3Ring4Disc3NegAdcCounts(nullptr),
264  theMEBeam3Ring4Disc4NegAdcCounts(nullptr),
265  theMEBeam3Ring4Disc5NegAdcCounts(nullptr),
266  theMEBeam3Ring4Disc6NegAdcCounts(nullptr),
267  theMEBeam3Ring4Disc7NegAdcCounts(nullptr),
268  theMEBeam3Ring4Disc8NegAdcCounts(nullptr),
269  theMEBeam3Ring4Disc9NegAdcCounts(nullptr),
270  // Adc counts for Beam 4 in Ring 4
271  theMEBeam4Ring4Disc1NegAdcCounts(nullptr),
272  theMEBeam4Ring4Disc2NegAdcCounts(nullptr),
273  theMEBeam4Ring4Disc3NegAdcCounts(nullptr),
274  theMEBeam4Ring4Disc4NegAdcCounts(nullptr),
275  theMEBeam4Ring4Disc5NegAdcCounts(nullptr),
276  theMEBeam4Ring4Disc6NegAdcCounts(nullptr),
277  theMEBeam4Ring4Disc7NegAdcCounts(nullptr),
278  theMEBeam4Ring4Disc8NegAdcCounts(nullptr),
279  theMEBeam4Ring4Disc9NegAdcCounts(nullptr),
280  // plots for TEC2TEC
281  theMEBeam4Ring4Disc1NegTEC2TECAdcCounts(nullptr),
282  theMEBeam4Ring4Disc2NegTEC2TECAdcCounts(nullptr),
283  theMEBeam4Ring4Disc3NegTEC2TECAdcCounts(nullptr),
284  theMEBeam4Ring4Disc4NegTEC2TECAdcCounts(nullptr),
285  theMEBeam4Ring4Disc5NegTEC2TECAdcCounts(nullptr),
286  // Adc counts for Beam 5 in Ring 4
287  theMEBeam5Ring4Disc1NegAdcCounts(nullptr),
288  theMEBeam5Ring4Disc2NegAdcCounts(nullptr),
289  theMEBeam5Ring4Disc3NegAdcCounts(nullptr),
290  theMEBeam5Ring4Disc4NegAdcCounts(nullptr),
291  theMEBeam5Ring4Disc5NegAdcCounts(nullptr),
292  theMEBeam5Ring4Disc6NegAdcCounts(nullptr),
293  theMEBeam5Ring4Disc7NegAdcCounts(nullptr),
294  theMEBeam5Ring4Disc8NegAdcCounts(nullptr),
295  theMEBeam5Ring4Disc9NegAdcCounts(nullptr),
296  // Adc counts for Beam 6 in Ring 4
297  theMEBeam6Ring4Disc1NegAdcCounts(nullptr),
298  theMEBeam6Ring4Disc2NegAdcCounts(nullptr),
299  theMEBeam6Ring4Disc3NegAdcCounts(nullptr),
300  theMEBeam6Ring4Disc4NegAdcCounts(nullptr),
301  theMEBeam6Ring4Disc5NegAdcCounts(nullptr),
302  theMEBeam6Ring4Disc6NegAdcCounts(nullptr),
303  theMEBeam6Ring4Disc7NegAdcCounts(nullptr),
304  theMEBeam6Ring4Disc8NegAdcCounts(nullptr),
305  theMEBeam6Ring4Disc9NegAdcCounts(nullptr),
306  // plots for TEC2TEC
307  theMEBeam6Ring4Disc1NegTEC2TECAdcCounts(nullptr),
308  theMEBeam6Ring4Disc2NegTEC2TECAdcCounts(nullptr),
309  theMEBeam6Ring4Disc3NegTEC2TECAdcCounts(nullptr),
310  theMEBeam6Ring4Disc4NegTEC2TECAdcCounts(nullptr),
311  theMEBeam6Ring4Disc5NegTEC2TECAdcCounts(nullptr),
312  // Adc counts for Beam 7 in Ring 4
313  theMEBeam7Ring4Disc1NegAdcCounts(nullptr),
314  theMEBeam7Ring4Disc2NegAdcCounts(nullptr),
315  theMEBeam7Ring4Disc3NegAdcCounts(nullptr),
316  theMEBeam7Ring4Disc4NegAdcCounts(nullptr),
317  theMEBeam7Ring4Disc5NegAdcCounts(nullptr),
318  theMEBeam7Ring4Disc6NegAdcCounts(nullptr),
319  theMEBeam7Ring4Disc7NegAdcCounts(nullptr),
320  theMEBeam7Ring4Disc8NegAdcCounts(nullptr),
321  theMEBeam7Ring4Disc9NegAdcCounts(nullptr),
322  // plots for TEC2TEC
323  theMEBeam7Ring4Disc1NegTEC2TECAdcCounts(nullptr),
324  theMEBeam7Ring4Disc2NegTEC2TECAdcCounts(nullptr),
325  theMEBeam7Ring4Disc3NegTEC2TECAdcCounts(nullptr),
326  theMEBeam7Ring4Disc4NegTEC2TECAdcCounts(nullptr),
327  theMEBeam7Ring4Disc5NegTEC2TECAdcCounts(nullptr),
328  // Adc counts for Beam 0 in Ring 6
329  theMEBeam0Ring6Disc1NegAdcCounts(nullptr),
330  theMEBeam0Ring6Disc2NegAdcCounts(nullptr),
331  theMEBeam0Ring6Disc3NegAdcCounts(nullptr),
332  theMEBeam0Ring6Disc4NegAdcCounts(nullptr),
333  theMEBeam0Ring6Disc5NegAdcCounts(nullptr),
334  theMEBeam0Ring6Disc6NegAdcCounts(nullptr),
335  theMEBeam0Ring6Disc7NegAdcCounts(nullptr),
336  theMEBeam0Ring6Disc8NegAdcCounts(nullptr),
337  theMEBeam0Ring6Disc9NegAdcCounts(nullptr),
338  // Adc counts for Beam 1 in Ring 6
339  theMEBeam1Ring6Disc1NegAdcCounts(nullptr),
340  theMEBeam1Ring6Disc2NegAdcCounts(nullptr),
341  theMEBeam1Ring6Disc3NegAdcCounts(nullptr),
342  theMEBeam1Ring6Disc4NegAdcCounts(nullptr),
343  theMEBeam1Ring6Disc5NegAdcCounts(nullptr),
344  theMEBeam1Ring6Disc6NegAdcCounts(nullptr),
345  theMEBeam1Ring6Disc7NegAdcCounts(nullptr),
346  theMEBeam1Ring6Disc8NegAdcCounts(nullptr),
347  theMEBeam1Ring6Disc9NegAdcCounts(nullptr),
348  // Adc counts for Beam 2 in Ring 6
349  theMEBeam2Ring6Disc1NegAdcCounts(nullptr),
350  theMEBeam2Ring6Disc2NegAdcCounts(nullptr),
351  theMEBeam2Ring6Disc3NegAdcCounts(nullptr),
352  theMEBeam2Ring6Disc4NegAdcCounts(nullptr),
353  theMEBeam2Ring6Disc5NegAdcCounts(nullptr),
354  theMEBeam2Ring6Disc6NegAdcCounts(nullptr),
355  theMEBeam2Ring6Disc7NegAdcCounts(nullptr),
356  theMEBeam2Ring6Disc8NegAdcCounts(nullptr),
357  theMEBeam2Ring6Disc9NegAdcCounts(nullptr),
358  // Adc counts for Beam 3 in Ring 6
359  theMEBeam3Ring6Disc1NegAdcCounts(nullptr),
360  theMEBeam3Ring6Disc2NegAdcCounts(nullptr),
361  theMEBeam3Ring6Disc3NegAdcCounts(nullptr),
362  theMEBeam3Ring6Disc4NegAdcCounts(nullptr),
363  theMEBeam3Ring6Disc5NegAdcCounts(nullptr),
364  theMEBeam3Ring6Disc6NegAdcCounts(nullptr),
365  theMEBeam3Ring6Disc7NegAdcCounts(nullptr),
366  theMEBeam3Ring6Disc8NegAdcCounts(nullptr),
367  theMEBeam3Ring6Disc9NegAdcCounts(nullptr),
368  // Adc counts for Beam 4 in Ring 6
369  theMEBeam4Ring6Disc1NegAdcCounts(nullptr),
370  theMEBeam4Ring6Disc2NegAdcCounts(nullptr),
371  theMEBeam4Ring6Disc3NegAdcCounts(nullptr),
372  theMEBeam4Ring6Disc4NegAdcCounts(nullptr),
373  theMEBeam4Ring6Disc5NegAdcCounts(nullptr),
374  theMEBeam4Ring6Disc6NegAdcCounts(nullptr),
375  theMEBeam4Ring6Disc7NegAdcCounts(nullptr),
376  theMEBeam4Ring6Disc8NegAdcCounts(nullptr),
377  theMEBeam4Ring6Disc9NegAdcCounts(nullptr),
378  // Adc counts for Beam 5 in Ring 6
379  theMEBeam5Ring6Disc1NegAdcCounts(nullptr),
380  theMEBeam5Ring6Disc2NegAdcCounts(nullptr),
381  theMEBeam5Ring6Disc3NegAdcCounts(nullptr),
382  theMEBeam5Ring6Disc4NegAdcCounts(nullptr),
383  theMEBeam5Ring6Disc5NegAdcCounts(nullptr),
384  theMEBeam5Ring6Disc6NegAdcCounts(nullptr),
385  theMEBeam5Ring6Disc7NegAdcCounts(nullptr),
386  theMEBeam5Ring6Disc8NegAdcCounts(nullptr),
387  theMEBeam5Ring6Disc9NegAdcCounts(nullptr),
388  // Adc counts for Beam 6 in Ring 6
389  theMEBeam6Ring6Disc1NegAdcCounts(nullptr),
390  theMEBeam6Ring6Disc2NegAdcCounts(nullptr),
391  theMEBeam6Ring6Disc3NegAdcCounts(nullptr),
392  theMEBeam6Ring6Disc4NegAdcCounts(nullptr),
393  theMEBeam6Ring6Disc5NegAdcCounts(nullptr),
394  theMEBeam6Ring6Disc6NegAdcCounts(nullptr),
395  theMEBeam6Ring6Disc7NegAdcCounts(nullptr),
396  theMEBeam6Ring6Disc8NegAdcCounts(nullptr),
397  theMEBeam6Ring6Disc9NegAdcCounts(nullptr),
398  // Adc counts for Beam 7 in Ring 6
399  theMEBeam7Ring6Disc1NegAdcCounts(nullptr),
400  theMEBeam7Ring6Disc2NegAdcCounts(nullptr),
401  theMEBeam7Ring6Disc3NegAdcCounts(nullptr),
402  theMEBeam7Ring6Disc4NegAdcCounts(nullptr),
403  theMEBeam7Ring6Disc5NegAdcCounts(nullptr),
404  theMEBeam7Ring6Disc6NegAdcCounts(nullptr),
405  theMEBeam7Ring6Disc7NegAdcCounts(nullptr),
406  theMEBeam7Ring6Disc8NegAdcCounts(nullptr),
407  theMEBeam7Ring6Disc9NegAdcCounts(nullptr),
408  // TOB Beams
409  // Adc counts for Beam 0
410  theMEBeam0TOBPosition1AdcCounts(nullptr),
411  theMEBeam0TOBPosition2AdcCounts(nullptr),
412  theMEBeam0TOBPosition3AdcCounts(nullptr),
413  theMEBeam0TOBPosition4AdcCounts(nullptr),
414  theMEBeam0TOBPosition5AdcCounts(nullptr),
415  theMEBeam0TOBPosition6AdcCounts(nullptr),
416  // Adc counts for Beam 1
417  theMEBeam1TOBPosition1AdcCounts(nullptr),
418  theMEBeam1TOBPosition2AdcCounts(nullptr),
419  theMEBeam1TOBPosition3AdcCounts(nullptr),
420  theMEBeam1TOBPosition4AdcCounts(nullptr),
421  theMEBeam1TOBPosition5AdcCounts(nullptr),
422  theMEBeam1TOBPosition6AdcCounts(nullptr),
423  // Adc counts for Beam 2
424  theMEBeam2TOBPosition1AdcCounts(nullptr),
425  theMEBeam2TOBPosition2AdcCounts(nullptr),
426  theMEBeam2TOBPosition3AdcCounts(nullptr),
427  theMEBeam2TOBPosition4AdcCounts(nullptr),
428  theMEBeam2TOBPosition5AdcCounts(nullptr),
429  theMEBeam2TOBPosition6AdcCounts(nullptr),
430  // Adc counts for Beam 3
431  theMEBeam3TOBPosition1AdcCounts(nullptr),
432  theMEBeam3TOBPosition2AdcCounts(nullptr),
433  theMEBeam3TOBPosition3AdcCounts(nullptr),
434  theMEBeam3TOBPosition4AdcCounts(nullptr),
435  theMEBeam3TOBPosition5AdcCounts(nullptr),
436  theMEBeam3TOBPosition6AdcCounts(nullptr),
437  // Adc counts for Beam 4
438  theMEBeam4TOBPosition1AdcCounts(nullptr),
439  theMEBeam4TOBPosition2AdcCounts(nullptr),
440  theMEBeam4TOBPosition3AdcCounts(nullptr),
441  theMEBeam4TOBPosition4AdcCounts(nullptr),
442  theMEBeam4TOBPosition5AdcCounts(nullptr),
443  theMEBeam4TOBPosition6AdcCounts(nullptr),
444  // Adc counts for Beam 5
445  theMEBeam5TOBPosition1AdcCounts(nullptr),
446  theMEBeam5TOBPosition2AdcCounts(nullptr),
447  theMEBeam5TOBPosition3AdcCounts(nullptr),
448  theMEBeam5TOBPosition4AdcCounts(nullptr),
449  theMEBeam5TOBPosition5AdcCounts(nullptr),
450  theMEBeam5TOBPosition6AdcCounts(nullptr),
451  // Adc counts for Beam 6
452  theMEBeam6TOBPosition1AdcCounts(nullptr),
453  theMEBeam6TOBPosition2AdcCounts(nullptr),
454  theMEBeam6TOBPosition3AdcCounts(nullptr),
455  theMEBeam6TOBPosition4AdcCounts(nullptr),
456  theMEBeam6TOBPosition5AdcCounts(nullptr),
457  theMEBeam6TOBPosition6AdcCounts(nullptr),
458  // Adc counts for Beam 7
459  theMEBeam7TOBPosition1AdcCounts(nullptr),
460  theMEBeam7TOBPosition2AdcCounts(nullptr),
461  theMEBeam7TOBPosition3AdcCounts(nullptr),
462  theMEBeam7TOBPosition4AdcCounts(nullptr),
463  theMEBeam7TOBPosition5AdcCounts(nullptr),
464  theMEBeam7TOBPosition6AdcCounts(nullptr),
465  // TIB Beams
466  // Adc counts for Beam 0
467  theMEBeam0TIBPosition1AdcCounts(nullptr),
468  theMEBeam0TIBPosition2AdcCounts(nullptr),
469  theMEBeam0TIBPosition3AdcCounts(nullptr),
470  theMEBeam0TIBPosition4AdcCounts(nullptr),
471  theMEBeam0TIBPosition5AdcCounts(nullptr),
472  theMEBeam0TIBPosition6AdcCounts(nullptr),
473  // Adc counts for Beam 1
474  theMEBeam1TIBPosition1AdcCounts(nullptr),
475  theMEBeam1TIBPosition2AdcCounts(nullptr),
476  theMEBeam1TIBPosition3AdcCounts(nullptr),
477  theMEBeam1TIBPosition4AdcCounts(nullptr),
478  theMEBeam1TIBPosition5AdcCounts(nullptr),
479  theMEBeam1TIBPosition6AdcCounts(nullptr),
480  // Adc counts for Beam 2
481  theMEBeam2TIBPosition1AdcCounts(nullptr),
482  theMEBeam2TIBPosition2AdcCounts(nullptr),
483  theMEBeam2TIBPosition3AdcCounts(nullptr),
484  theMEBeam2TIBPosition4AdcCounts(nullptr),
485  theMEBeam2TIBPosition5AdcCounts(nullptr),
486  theMEBeam2TIBPosition6AdcCounts(nullptr),
487  // Adc counts for Beam 3
488  theMEBeam3TIBPosition1AdcCounts(nullptr),
489  theMEBeam3TIBPosition2AdcCounts(nullptr),
490  theMEBeam3TIBPosition3AdcCounts(nullptr),
491  theMEBeam3TIBPosition4AdcCounts(nullptr),
492  theMEBeam3TIBPosition5AdcCounts(nullptr),
493  theMEBeam3TIBPosition6AdcCounts(nullptr),
494  // Adc counts for Beam 4
495  theMEBeam4TIBPosition1AdcCounts(nullptr),
496  theMEBeam4TIBPosition2AdcCounts(nullptr),
497  theMEBeam4TIBPosition3AdcCounts(nullptr),
498  theMEBeam4TIBPosition4AdcCounts(nullptr),
499  theMEBeam4TIBPosition5AdcCounts(nullptr),
500  theMEBeam4TIBPosition6AdcCounts(nullptr),
501  // Adc counts for Beam 5
502  theMEBeam5TIBPosition1AdcCounts(nullptr),
503  theMEBeam5TIBPosition2AdcCounts(nullptr),
504  theMEBeam5TIBPosition3AdcCounts(nullptr),
505  theMEBeam5TIBPosition4AdcCounts(nullptr),
506  theMEBeam5TIBPosition5AdcCounts(nullptr),
507  theMEBeam5TIBPosition6AdcCounts(nullptr),
508  // Adc counts for Beam 6
509  theMEBeam6TIBPosition1AdcCounts(nullptr),
510  theMEBeam6TIBPosition2AdcCounts(nullptr),
511  theMEBeam6TIBPosition3AdcCounts(nullptr),
512  theMEBeam6TIBPosition4AdcCounts(nullptr),
513  theMEBeam6TIBPosition5AdcCounts(nullptr),
514  theMEBeam6TIBPosition6AdcCounts(nullptr),
515  // Adc counts for Beam 7
516  theMEBeam7TIBPosition1AdcCounts(nullptr),
517  theMEBeam7TIBPosition2AdcCounts(nullptr),
518  theMEBeam7TIBPosition3AdcCounts(nullptr),
519  theMEBeam7TIBPosition4AdcCounts(nullptr),
520  theMEBeam7TIBPosition5AdcCounts(nullptr),
521  theMEBeam7TIBPosition6AdcCounts(nullptr) {
522  // load the configuration from the ParameterSet
523  edm::LogInfo("LaserDQM") << "==========================================================="
524  << "\n=== Start configuration ==="
525  << "\n theDebugLevel = " << theDebugLevel
526  << "\n theSearchPhiTIB = " << theSearchPhiTIB
527  << "\n theSearchPhiTOB = " << theSearchPhiTOB
528  << "\n theSearchPhiTEC = " << theSearchPhiTEC
529  << "\n theSearchZTIB = " << theSearchZTIB
530  << "\n theSearchZTOB = " << theSearchZTOB
531  << "\n DQM filename = " << theDQMFileName
532  << "\n===========================================================";
533 }
534 
536 
537 void LaserDQM::analyze(edm::Event const &theEvent, edm::EventSetup const &theSetup) {
538  // do the Tracker Statistics
539  trackerStatistics(theEvent, theSetup);
540 }
541 
543  // get hold of DQM Backend interface
545 
546  // initialize the Monitor Elements
547  initMonitors();
548 }
549 
551 
554  edm::DetSet<SiStripDigi>::const_iterator digiRangeIteratorEnd) {
555  // get the ROOT object from the MonitorElement
556  TH1F *theMEHistogram = theMonitor->getTH1F();
557 
558  // loop over all the digis in this det
559  for (; digiRangeIterator != digiRangeIteratorEnd; ++digiRangeIterator) {
560  const SiStripDigi *digi = &*digiRangeIterator;
561 
562  if (theDebugLevel > 4) {
563  std::cout << " Channel " << digi->channel() << " has " << digi->adc() << " adc counts " << std::endl;
564  }
565 
566  // fill the number of adc counts in the histogram
567  if (digi->channel() < 512) {
568  Double_t theBinContent = theMEHistogram->GetBinContent(digi->channel()) + digi->adc();
569  theMEHistogram->SetBinContent(digi->channel(), theBinContent);
570  }
571  }
572 }
573 
574 // define the SEAL module
575 
double theSearchZTIB
Definition: LaserDQM.h:62
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
LaserDQM(edm::ParameterSet const &theConf)
constructor
Definition: LaserDQM.cc:16
double theSearchPhiTIB
Definition: LaserDQM.h:59
double theSearchPhiTOB
Definition: LaserDQM.h:60
std::string theDQMFileName
Definition: LaserDQM.h:69
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void fillAdcCounts(MonitorElement *theMonitor, edm::DetSet< SiStripDigi >::const_iterator digiRangeIterator, edm::DetSet< SiStripDigi >::const_iterator digiRangeIteratorEnd)
fill adc counts from the laser beam into a monitor histogram
Definition: LaserDQM.cc:552
void analyze(edm::Event const &theEvent, edm::EventSetup const &theSetup) override
this method will do the user analysis
Definition: LaserDQM.cc:537
void endJob(void) override
end job
Definition: LaserDQM.cc:550
const uint16_t & adc() const
Definition: SiStripDigi.h:34
~LaserDQM() override
destructor
Definition: LaserDQM.cc:535
void trackerStatistics(edm::Event const &theEvent, edm::EventSetup const &theSetup)
find dets which are hit by a laser beam and fill the monitors
A Digi for the silicon strip detector, containing both strip and adc information, and suitable for st...
Definition: SiStripDigi.h:12
std::vector< edm::ParameterSet > Parameters
Definition: LaserDQM.h:30
void beginJob() override
begin job
Definition: LaserDQM.cc:542
int theDebugLevel
Definition: LaserDQM.h:58
Log< level::Info, false > LogInfo
const uint16_t & channel() const
Definition: SiStripDigi.h:35
void initMonitors()
initialize monitors
virtual TH1F * getTH1F() const
DQMStore * theDaqMonitorBEI
Definition: LaserDQM.h:72
double theSearchZTOB
Definition: LaserDQM.h:63
DQM_DEPRECATED void save(std::string const &filename, std::string const &path="")
Definition: DQMStore.cc:784
double theSearchPhiTEC
Definition: LaserDQM.h:61
collection_type::const_iterator const_iterator
Definition: DetSet.h:31