test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalSubdetDigiMonitor.h
Go to the documentation of this file.
1 #ifndef HcalDigis_HcalSubdetDigiMonitor_h
2 #define HcalDigis_HcalSubdetDigiMonitor_h
3 
5 #include <string>
7 
9 {
10 public:
11 
12  HcalSubdetDigiMonitor(DQMStore::IBooker & ibooker, const std::string & subdet, int noise);
13 
14  // Ndigis
15  void fillmeNdigis(double v1)
16  {fillElement(meNdigis, v1);}
17 
18  // occupancies filling
19  void fillmeOccupancy_map_depth1(double v1, double v2)
21  void fillmeOccupancy_map_depth2(double v1, double v2)
23  void fillmeOccupancy_map_depth3(double v1, double v2)
25  void fillmeOccupancy_map_depth4(double v1, double v2)
27 
28  void fillmeOccupancy_vs_ieta_depth1(double v1, double v2)
30  void fillmeOccupancy_vs_ieta_depth2(double v1, double v2)
32  void fillmeOccupancy_vs_ieta_depth3(double v1, double v2)
34  void fillmeOccupancy_vs_ieta_depth4(double v1, double v2)
36 
37  // occupancies handling
38  double getBinContent_depth1(int i, int j)
40  double getBinContent_depth2(int i, int j)
42  double getBinContent_depth3(int i, int j)
44  double getBinContent_depth4(int i, int j)
46 
47  void setBinContent_depth1(int i, int j, double v)
49  void setBinContent_depth2(int i, int j, double v)
51  void setBinContent_depth3(int i, int j, double v)
53  void setBinContent_depth4(int i, int j, double v)
55 
56 
57  //
58  void fillmeAmplIetaIphi1(double v1, double v2, double v3)
59  {fillElements(meAmplIetaIphi1, v1, v2, v3);}
60  void fillmeAmplIetaIphi2(double v1, double v2, double v3)
61  {fillElements(meAmplIetaIphi2, v1, v2, v3);}
62  void fillmeAmplIetaIphi3(double v1, double v2, double v3)
63  {fillElements(meAmplIetaIphi3, v1, v2, v3);}
64  void fillmeAmplIetaIphi4(double v1, double v2, double v3)
65  {fillElements(meAmplIetaIphi4, v1, v2, v3);}
66 
67 
68  void fillmeSumAmp(double v1)
69  {fillElement(meSumAmp, v1);}
70 
71  void fillmenDigis(double v1)
72  {fillElement(menDigis, v1 );}
73 
74  void fillmeADC0_depth1(double v1)
75  {fillElement(meADC0_depth1, v1 );}
76  void fillmeADC0_depth2(double v1)
77  {fillElement(meADC0_depth2, v1 );}
78  void fillmeADC0_depth3(double v1)
80  void fillmeADC0_depth4(double v1)
82 
83  void fillmeADC0fC_depth1(double v1)
85  void fillmeADC0fC_depth2(double v1)
87  void fillmeADC0fC_depth3(double v1)
89  void fillmeADC0fC_depth4(double v1)
91 
92  void fillmeSignalAmp(double v1)
93  {fillElement(meSignalAmp, v1);}
94  void fillmeSignalAmp1(double v1)
96  void fillmeSignalAmp2(double v1)
98  void fillmeSignalAmp3(double v1)
100  void fillmeSignalAmp4(double v1)
101  {fillElement(meSignalAmp4, v1);}
102 
103  void fillmeSignalTimeSlice(double v1, double v2)
104  {fillElements(meSignalTimeSlice, v1, v2);}
105 
106  void fillmeAll10slices_depth1(double v1, double v2)
108  void fillmeAll10slices_depth2(double v1, double v2)
110 
111  void fillmeAll10slices1D_depth1(double v1, double v2)
113  void fillmeAll10slices1D_depth2(double v1, double v2)
115 
116  void fillmeBin5Frac(double v1)
117  {fillElement(meBin5Frac, v1);}
118  void fillmeBin67Frac(double v1)
119  {fillElement(meBin67Frac, v1);}
120 
121  void fillmeDigiSimhit(double v1, double v2)
122  {fillElements(meDigiSimhit, v1, v2);}
123  void fillmeDigiSimhit1(double v1, double v2)
124  {fillElements(meDigiSimhit1, v1, v2);}
125  void fillmeDigiSimhit2(double v1, double v2)
126  {fillElements(meDigiSimhit2, v1, v2);}
127  void fillmeDigiSimhit3(double v1, double v2)
128  {fillElements(meDigiSimhit3, v1, v2);}
129  void fillmeDigiSimhit4(double v1, double v2)
130  {fillElements(meDigiSimhit4, v1, v2);}
131 
132  void fillmeDigiSimhitProfile(double v1, double v2)
134  void fillmeDigiSimhitProfile1(double v1, double v2)
136  void fillmeDigiSimhitProfile2(double v1, double v2)
138  void fillmeDigiSimhitProfile3(double v1, double v2)
140  void fillmeDigiSimhitProfile4(double v1, double v2)
142 
143  void fillmeRatioDigiSimhit(double v1)
145  void fillmeRatioDigiSimhit1(double v1)
147  void fillmeRatioDigiSimhit2(double v1)
149  void fillmeRatioDigiSimhit3(double v1)
151  void fillmeRatioDigiSimhit4(double v1)
153 
154 
155  // DB constants
156 
157  void fillmeGain0Depth1(double v1)
158  {fillElement(meGain0Depth1, v1);}
159  void fillmeGain1Depth1(double v1)
160  {fillElement(meGain1Depth1, v1);}
161  void fillmeGain2Depth1(double v1)
162  {fillElement(meGain2Depth1, v1);}
163  void fillmeGain3Depth1(double v1)
164  {fillElement(meGain3Depth1, v1);}
165  void fillmeGain0Depth2(double v1)
166  {fillElement(meGain0Depth2, v1);}
167  void fillmeGain1Depth2(double v1)
168  {fillElement(meGain1Depth2, v1);}
169  void fillmeGain2Depth2(double v1)
170  {fillElement(meGain2Depth2, v1);}
171  void fillmeGain3Depth2(double v1)
172  {fillElement(meGain3Depth2, v1);}
173  void fillmeGain0Depth3(double v1)
174  {fillElement(meGain0Depth3, v1);}
175  void fillmeGain1Depth3(double v1)
176  {fillElement(meGain1Depth3, v1);}
177  void fillmeGain2Depth3(double v1)
178  {fillElement(meGain2Depth3, v1);}
179  void fillmeGain3Depth3(double v1)
180  {fillElement(meGain3Depth3, v1);}
181  void fillmeGain0Depth4(double v1)
182  {fillElement(meGain0Depth4, v1);}
183  void fillmeGain1Depth4(double v1)
184  {fillElement(meGain1Depth4, v1);}
185  void fillmeGain2Depth4(double v1)
186  {fillElement(meGain2Depth4, v1);}
187  void fillmeGain3Depth4(double v1)
188  {fillElement(meGain3Depth4, v1);}
189 
190  void fillmeGainWidth0Depth1(double v1)
192  void fillmeGainWidth1Depth1(double v1)
194  void fillmeGainWidth2Depth1(double v1)
196  void fillmeGainWidth3Depth1(double v1)
198  void fillmeGainWidth0Depth2(double v1)
200  void fillmeGainWidth1Depth2(double v1)
202  void fillmeGainWidth2Depth2(double v1)
204  void fillmeGainWidth3Depth2(double v1)
206  void fillmeGainWidth0Depth3(double v1)
208  void fillmeGainWidth1Depth3(double v1)
210  void fillmeGainWidth2Depth3(double v1)
212  void fillmeGainWidth3Depth3(double v1)
214  void fillmeGainWidth0Depth4(double v1)
216  void fillmeGainWidth1Depth4(double v1)
218  void fillmeGainWidth2Depth4(double v1)
220  void fillmeGainWidth3Depth4(double v1)
222 
223  void fillmePed0Depth1(double v1)
224  {fillElement(mePed0Depth1, v1);}
225  void fillmePed1Depth1(double v1)
226  {fillElement(mePed1Depth1, v1);}
227  void fillmePed2Depth1(double v1)
228  {fillElement(mePed2Depth1, v1);}
229  void fillmePed3Depth1(double v1)
230  {fillElement(mePed3Depth1, v1);}
231  void fillmePed0Depth2(double v1)
232  {fillElement(mePed0Depth2, v1);}
233  void fillmePed1Depth2(double v1)
234  {fillElement(mePed1Depth2, v1);}
235  void fillmePed2Depth2(double v1)
236  {fillElement(mePed2Depth2, v1);}
237  void fillmePed3Depth2(double v1)
238  {fillElement(mePed3Depth2, v1);}
239  void fillmePed0Depth3(double v1)
240  {fillElement(mePed0Depth3, v1);}
241  void fillmePed1Depth3(double v1)
242  {fillElement(mePed1Depth3, v1);}
243  void fillmePed2Depth3(double v1)
244  {fillElement(mePed2Depth3, v1);}
245  void fillmePed3Depth3(double v1)
246  {fillElement(mePed3Depth3, v1);}
247  void fillmePed0Depth4(double v1)
248  {fillElement(mePed0Depth4, v1);}
249  void fillmePed1Depth4(double v1)
250  {fillElement(mePed1Depth4, v1);}
251  void fillmePed2Depth4(double v1)
252  {fillElement(mePed2Depth4, v1);}
253  void fillmePed3Depth4(double v1)
254  {fillElement(mePed3Depth4, v1);}
255 
256 
257  void fillmePedWidth0Depth1(double v1)
259  void fillmePedWidth1Depth1(double v1)
261  void fillmePedWidth2Depth1(double v1)
263  void fillmePedWidth3Depth1(double v1)
265  void fillmePedWidth0Depth2(double v1)
267  void fillmePedWidth1Depth2(double v1)
269  void fillmePedWidth2Depth2(double v1)
271  void fillmePedWidth3Depth2(double v1)
273  void fillmePedWidth0Depth3(double v1)
275  void fillmePedWidth1Depth3(double v1)
277  void fillmePedWidth2Depth3(double v1)
279  void fillmePedWidth3Depth3(double v1)
281  void fillmePedWidth0Depth4(double v1)
283  void fillmePedWidth1Depth4(double v1)
285  void fillmePedWidth2Depth4(double v1)
287  void fillmePedWidth3Depth4(double v1)
289 
290  void fillmeGainMap1(double v1, double v2, double v3)
291  {fillElements(meGainMap1, v1, v2, v3);}
292  void fillmeGainMap2(double v1, double v2, double v3)
293  {fillElements(meGainMap2, v1, v2, v3);}
294  void fillmeGainMap3(double v1, double v2, double v3)
295  {fillElements(meGainMap3, v1, v2, v3);}
296  void fillmeGainMap4(double v1, double v2, double v3)
297  {fillElements(meGainMap4, v1, v2, v3);}
298 
299  void fillmePwidthMap1(double v1, double v2, double v3)
300  {fillElements(mePwidthMap1, v1, v2, v3);}
301  void fillmePwidthMap2(double v1, double v2, double v3)
302  {fillElements(mePwidthMap2, v1, v2, v3);}
303  void fillmePwidthMap3(double v1, double v2, double v3)
304  {fillElements(mePwidthMap3, v1, v2, v3);}
305  void fillmePwidthMap4(double v1, double v2, double v3)
306  {fillElements(mePwidthMap4, v1, v2, v3);}
307 
308 private:
309 
311  {
312  if(me) me->Fill(value);
313  }
314  void fillElements(MonitorElement* me, double v1, double v2)
315  {
316  if(me) me->Fill(v1, v2);
317  }
318  void fillElements(MonitorElement* me, double v1, double v2, double v3)
319  {
320  if(me) me->Fill(v1, v2, v3);
321  }
322 
324  {
325  double tmp = 0.;
326  if(me) tmp = me->getBinContent(i,j);
327  return tmp;
328  }
329 
330  void setMeElementBinContent(MonitorElement* me, int i, int j, double v)
331  {
332  if(me) me->setBinContent(i,j,v);
333  }
334 
335 
336  // little embedded struct
337  struct HistLim
338  {
339  HistLim(int nbin, float mini, float maxi)
340  : n(nbin), min(mini), max(maxi) {}
341  int n;
342  float min;
343  float max;
344  };
345 
346  // utilities to create MonitorElements
349  HistLim lim2);
351  HistLim lim2);
352 
354  int noise_;
355 
357 
366 
367 
374 
383 
389 
397 
403 
409 
415 
416  // DB constants
417 
434 
451 
468 
485 
486 
487  // CapID-0 only
496 
497 };
498 
499 #endif
500 
void fillmePed0Depth1(double v1)
void fillmeGain0Depth4(double v1)
MonitorElement * meDigiSimhit1
void fillmeGainWidth0Depth2(double v1)
MonitorElement * meADC0fC_depth1
void setBinContent_depth2(int i, int j, double v)
void fillmePedWidth2Depth1(double v1)
void fillmeGain2Depth2(double v1)
MonitorElement * meAmplIetaIphi3
void fillmeGain1Depth1(double v1)
void fillmePedWidth1Depth3(double v1)
void fillmeGainWidth2Depth1(double v1)
int i
Definition: DBlmapReader.cc:9
void fillmeAmplIetaIphi4(double v1, double v2, double v3)
void fillmeADC0_depth1(double v1)
void fillmeDigiSimhitProfile3(double v1, double v2)
void setBinContent(int binx, double content)
set content of bin (1-D)
void fillmeGainWidth0Depth4(double v1)
MonitorElement * meGainWidth1Depth4
MonitorElement * meSignalTimeSlice
MonitorElement * meDigiSimhit3
MonitorElement * mePedWidth3Depth1
void fillmePed2Depth4(double v1)
MonitorElement * meAmplIetaIphi2
int ib
Definition: cuy.py:660
void fillmePedWidth1Depth1(double v1)
void fillmeGainWidth2Depth4(double v1)
MonitorElement * meGain1Depth3
MonitorElement * meADC0_depth1
void fillmeGainMap2(double v1, double v2, double v3)
void fillmePwidthMap3(double v1, double v2, double v3)
void fillmeDigiSimhit4(double v1, double v2)
void fillmePed1Depth4(double v1)
MonitorElement * meOccupancy_map_depth3
MonitorElement * meDigiSimhitProfile4
void fillmeOccupancy_map_depth2(double v1, double v2)
void fillmeGainWidth3Depth4(double v1)
MonitorElement * meRatioDigiSimhit4
void fillmeGain2Depth4(double v1)
void fillmeDigiSimhit3(double v1, double v2)
double getBinContent_depth4(int i, int j)
MonitorElement * bookProfile(DQMStore::IBooker &ib, const std::string &name, HistLim lim1, HistLim lim2)
MonitorElement * meDigiSimhit2
MonitorElement * meGain0Depth2
void fillmeADC0fC_depth2(double v1)
MonitorElement * meGain2Depth4
void fillmeGainWidth1Depth1(double v1)
void fillmeRatioDigiSimhit4(double v1)
void fillElements(MonitorElement *me, double v1, double v2)
MonitorElement * meOccupancy_vs_ieta_depth4
void fillmeDigiSimhit2(double v1, double v2)
void fillmeRatioDigiSimhit(double v1)
void fillmePedWidth1Depth4(double v1)
MonitorElement * meDigiSimhitProfile1
void fillmeGainWidth1Depth4(double v1)
void setBinContent_depth3(int i, int j, double v)
MonitorElement * meGainWidth1Depth1
MonitorElement * meOccupancy_vs_ieta_depth1
void fillmeAll10slices1D_depth1(double v1, double v2)
void fillmeGain3Depth2(double v1)
MonitorElement * meGainWidth3Depth1
MonitorElement * meRatioDigiSimhit2
void fillmePed1Depth2(double v1)
void fillmeAll10slices_depth2(double v1, double v2)
MonitorElement * mePedWidth2Depth4
void fillmeRatioDigiSimhit2(double v1)
MonitorElement * meRatioDigiSimhit3
MonitorElement * meAll10slices1D_depth1
MonitorElement * meAll10slices_depth1
void fillmeAmplIetaIphi2(double v1, double v2, double v3)
void fillmePwidthMap1(double v1, double v2, double v3)
MonitorElement * meDigiSimhitProfile2
MonitorElement * meDigiSimhit4
void fillmeGainWidth1Depth2(double v1)
double getBinContent_depth2(int i, int j)
void fillmeOccupancy_vs_ieta_depth2(double v1, double v2)
void fillmeGainWidth2Depth2(double v1)
void fillElements(MonitorElement *me, double v1, double v2, double v3)
MonitorElement * meGain0Depth3
MonitorElement * meADC0fC_depth4
void fillmeGainWidth3Depth2(double v1)
MonitorElement * meGain1Depth2
MonitorElement * meGain3Depth4
void Fill(long long x)
MonitorElement * meGain2Depth3
MonitorElement * mePedWidth1Depth2
void fillmeSignalAmp4(double v1)
MonitorElement * meGainWidth2Depth2
MonitorElement * meGain1Depth4
void fillmeAll10slices1D_depth2(double v1, double v2)
void fillmeDigiSimhitProfile2(double v1, double v2)
MonitorElement * book1D(DQMStore::IBooker &ib, const std::string &name, HistLim lim)
void fillmePed0Depth4(double v1)
void fillmeOccupancy_vs_ieta_depth4(double v1, double v2)
MonitorElement * meGainWidth2Depth1
MonitorElement * meGain3Depth3
void fillmeGain3Depth3(double v1)
void fillmePed0Depth3(double v1)
void fillmeGainMap4(double v1, double v2, double v3)
void fillmePed3Depth3(double v1)
void fillmeDigiSimhit(double v1, double v2)
void fillmeRatioDigiSimhit1(double v1)
MonitorElement * mePedWidth0Depth3
void fillmeOccupancy_map_depth1(double v1, double v2)
MonitorElement * meAll10slices1D_depth2
void fillmeGain1Depth2(double v1)
MonitorElement * meGainWidth0Depth4
void fillmeGain1Depth3(double v1)
void fillmeGainWidth0Depth1(double v1)
void fillmeGainWidth2Depth3(double v1)
void fillmeSignalAmp1(double v1)
MonitorElement * meADC0fC_depth2
MonitorElement * meGainWidth1Depth3
MonitorElement * mePedWidth1Depth1
void fillmeGain3Depth4(double v1)
double getBinContent_depth1(int i, int j)
void fillmeADC0_depth2(double v1)
MonitorElement * mePedWidth2Depth3
MonitorElement * meDigiSimhitProfile3
void fillElement(MonitorElement *me, double value)
MonitorElement * mePedWidth0Depth4
MonitorElement * meADC0_depth2
MonitorElement * meADC0_depth3
void fillmeGain3Depth1(double v1)
MonitorElement * meGain1Depth1
void fillmeDigiSimhitProfile4(double v1, double v2)
void fillmeAmplIetaIphi3(double v1, double v2, double v3)
void fillmeADC0_depth4(double v1)
MonitorElement * mePedWidth3Depth3
void fillmePedWidth2Depth2(double v1)
void fillmeGainMap1(double v1, double v2, double v3)
void fillmeGainWidth0Depth3(double v1)
int j
Definition: DBlmapReader.cc:9
MonitorElement * meADC0_depth4
MonitorElement * mePedWidth2Depth1
MonitorElement * mePedWidth0Depth1
void fillmeOccupancy_vs_ieta_depth1(double v1, double v2)
void fillmePedWidth2Depth4(double v1)
void fillmePedWidth1Depth2(double v1)
void fillmePedWidth2Depth3(double v1)
MonitorElement * meGainWidth0Depth2
HistLim(int nbin, float mini, float maxi)
MonitorElement * meGain0Depth4
void fillmeSignalTimeSlice(double v1, double v2)
void fillmePedWidth0Depth1(double v1)
MonitorElement * meGainWidth3Depth4
MonitorElement * mePedWidth2Depth2
void fillmePedWidth3Depth2(double v1)
void setBinContent_depth4(int i, int j, double v)
void fillmeOccupancy_vs_ieta_depth3(double v1, double v2)
MonitorElement * meAll10slices_depth2
void fillmePedWidth3Depth4(double v1)
void fillmeADC0fC_depth4(double v1)
void setBinContent_depth1(int i, int j, double v)
MonitorElement * mePedWidth3Depth2
double getMeElementBinContent(MonitorElement *me, int i, int j)
MonitorElement * meOccupancy_vs_ieta_depth3
void fillmeSignalAmp(double v1)
MonitorElement * meGain3Depth2
void fillmeGainMap3(double v1, double v2, double v3)
MonitorElement * book2D(DQMStore::IBooker &ib, const std::string &name, HistLim lim1, HistLim lim2)
void fillmePedWidth3Depth1(double v1)
void setMeElementBinContent(MonitorElement *me, int i, int j, double v)
void fillmeDigiSimhitProfile(double v1, double v2)
MonitorElement * meOccupancy_map_depth2
double getBinContent_depth3(int i, int j)
MonitorElement * meGainWidth2Depth4
void fillmePed3Depth2(double v1)
void fillmeGain2Depth1(double v1)
void fillmeOccupancy_map_depth4(double v1, double v2)
MonitorElement * meOccupancy_map_depth4
MonitorElement * meGainWidth0Depth3
void fillmePed2Depth2(double v1)
void fillmePed3Depth4(double v1)
MonitorElement * meRatioDigiSimhit
void fillmePedWidth0Depth4(double v1)
MonitorElement * meGainWidth3Depth2
HcalSubdetDigiMonitor(DQMStore::IBooker &ibooker, const std::string &subdet, int noise)
MonitorElement * mePedWidth3Depth4
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
void fillmeSignalAmp3(double v1)
double getBinContent(int binx) const
get content of bin (1-D)
MonitorElement * meDigiSimhitProfile
MonitorElement * meGain3Depth1
void fillmePed0Depth2(double v1)
void fillmePwidthMap4(double v1, double v2, double v3)
void fillmeDigiSimhit1(double v1, double v2)
void fillmeADC0fC_depth1(double v1)
MonitorElement * mePedWidth1Depth3
void fillmeGain0Depth2(double v1)
MonitorElement * meGainWidth2Depth3
void fillmeADC0_depth3(double v1)
void fillmePed2Depth3(double v1)
void fillmeGainWidth3Depth1(double v1)
void fillmePed2Depth1(double v1)
MonitorElement * mePedWidth1Depth4
void fillmeRatioDigiSimhit3(double v1)
void fillmeGain2Depth3(double v1)
void fillmePedWidth3Depth3(double v1)
MonitorElement * meADC0fC_depth3
MonitorElement * mePedWidth0Depth2
void fillmeGain0Depth1(double v1)
void fillmeDigiSimhitProfile1(double v1, double v2)
MonitorElement * meGain2Depth2
MonitorElement * meGain2Depth1
void fillmeOccupancy_map_depth3(double v1, double v2)
void fillmePed1Depth1(double v1)
MonitorElement * meAmplIetaIphi4
void fillmePedWidth0Depth2(double v1)
void fillmeSignalAmp2(double v1)
MonitorElement * meOccupancy_map_depth1
void fillmeGainWidth1Depth3(double v1)
void fillmePwidthMap2(double v1, double v2, double v3)
MonitorElement * meGainWidth0Depth1
void fillmePedWidth0Depth3(double v1)
void fillmeAll10slices_depth1(double v1, double v2)
MonitorElement * meAmplIetaIphi1
void fillmeADC0fC_depth3(double v1)
MonitorElement * meGainWidth1Depth2
void fillmeGain1Depth4(double v1)
void fillmeAmplIetaIphi1(double v1, double v2, double v3)
MonitorElement * meGain0Depth1
MonitorElement * meGainWidth3Depth3
MonitorElement * meOccupancy_vs_ieta_depth2
void fillmePed3Depth1(double v1)
void fillmePed1Depth3(double v1)
void fillmeGain0Depth3(double v1)
void fillmeGainWidth3Depth3(double v1)
MonitorElement * meRatioDigiSimhit1