CMS 3D CMS Logo

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