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* dbe, 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(double v1, double v2)
107  {fillElements(meAll10slices, v1, v2);}
108 
109  void fillmeAll10slices1D(double v1, double v2)
110  {fillElements(meAll10slices1D, v1, v2);}
111 
112  void fillmeBin5Frac(double v1)
113  {fillElement(meBin5Frac, v1);}
114  void fillmeBin67Frac(double v1)
115  {fillElement(meBin67Frac, v1);}
116 
117  void fillmeDigiSimhit(double v1, double v2)
118  {fillElements(meDigiSimhit, v1, v2);}
119  void fillmeDigiSimhit1(double v1, double v2)
120  {fillElements(meDigiSimhit1, v1, v2);}
121  void fillmeDigiSimhit2(double v1, double v2)
122  {fillElements(meDigiSimhit2, v1, v2);}
123  void fillmeDigiSimhit3(double v1, double v2)
124  {fillElements(meDigiSimhit3, v1, v2);}
125  void fillmeDigiSimhit4(double v1, double v2)
126  {fillElements(meDigiSimhit4, v1, v2);}
127 
128  void fillmeDigiSimhitProfile(double v1, double v2)
130  void fillmeDigiSimhitProfile1(double v1, double v2)
132  void fillmeDigiSimhitProfile2(double v1, double v2)
134  void fillmeDigiSimhitProfile3(double v1, double v2)
136  void fillmeDigiSimhitProfile4(double v1, double v2)
138 
139  void fillmeRatioDigiSimhit(double v1)
141  void fillmeRatioDigiSimhit1(double v1)
143  void fillmeRatioDigiSimhit2(double v1)
145  void fillmeRatioDigiSimhit3(double v1)
147  void fillmeRatioDigiSimhit4(double v1)
149 
150 
151  // DB constants
152 
153  void fillmeGain0Depth1(double v1)
154  {fillElement(meGain0Depth1, v1);}
155  void fillmeGain1Depth1(double v1)
156  {fillElement(meGain1Depth1, v1);}
157  void fillmeGain2Depth1(double v1)
158  {fillElement(meGain2Depth1, v1);}
159  void fillmeGain3Depth1(double v1)
160  {fillElement(meGain3Depth1, v1);}
161  void fillmeGain0Depth2(double v1)
162  {fillElement(meGain0Depth2, v1);}
163  void fillmeGain1Depth2(double v1)
164  {fillElement(meGain1Depth2, v1);}
165  void fillmeGain2Depth2(double v1)
166  {fillElement(meGain2Depth2, v1);}
167  void fillmeGain3Depth2(double v1)
168  {fillElement(meGain3Depth2, v1);}
169  void fillmeGain0Depth3(double v1)
170  {fillElement(meGain0Depth3, v1);}
171  void fillmeGain1Depth3(double v1)
172  {fillElement(meGain1Depth3, v1);}
173  void fillmeGain2Depth3(double v1)
174  {fillElement(meGain2Depth3, v1);}
175  void fillmeGain3Depth3(double v1)
176  {fillElement(meGain3Depth3, v1);}
177  void fillmeGain0Depth4(double v1)
178  {fillElement(meGain0Depth4, v1);}
179  void fillmeGain1Depth4(double v1)
180  {fillElement(meGain1Depth4, v1);}
181  void fillmeGain2Depth4(double v1)
182  {fillElement(meGain2Depth4, v1);}
183  void fillmeGain3Depth4(double v1)
184  {fillElement(meGain3Depth4, v1);}
185 
186  void fillmeGainWidth0Depth1(double v1)
188  void fillmeGainWidth1Depth1(double v1)
190  void fillmeGainWidth2Depth1(double v1)
192  void fillmeGainWidth3Depth1(double v1)
194  void fillmeGainWidth0Depth2(double v1)
196  void fillmeGainWidth1Depth2(double v1)
198  void fillmeGainWidth2Depth2(double v1)
200  void fillmeGainWidth3Depth2(double v1)
202  void fillmeGainWidth0Depth3(double v1)
204  void fillmeGainWidth1Depth3(double v1)
206  void fillmeGainWidth2Depth3(double v1)
208  void fillmeGainWidth3Depth3(double v1)
210  void fillmeGainWidth0Depth4(double v1)
212  void fillmeGainWidth1Depth4(double v1)
214  void fillmeGainWidth2Depth4(double v1)
216  void fillmeGainWidth3Depth4(double v1)
218 
219  void fillmePed0Depth1(double v1)
220  {fillElement(mePed0Depth1, v1);}
221  void fillmePed1Depth1(double v1)
222  {fillElement(mePed1Depth1, v1);}
223  void fillmePed2Depth1(double v1)
224  {fillElement(mePed2Depth1, v1);}
225  void fillmePed3Depth1(double v1)
226  {fillElement(mePed3Depth1, v1);}
227  void fillmePed0Depth2(double v1)
228  {fillElement(mePed0Depth2, v1);}
229  void fillmePed1Depth2(double v1)
230  {fillElement(mePed1Depth2, v1);}
231  void fillmePed2Depth2(double v1)
232  {fillElement(mePed2Depth2, v1);}
233  void fillmePed3Depth2(double v1)
234  {fillElement(mePed3Depth2, v1);}
235  void fillmePed0Depth3(double v1)
236  {fillElement(mePed0Depth3, v1);}
237  void fillmePed1Depth3(double v1)
238  {fillElement(mePed1Depth3, v1);}
239  void fillmePed2Depth3(double v1)
240  {fillElement(mePed2Depth3, v1);}
241  void fillmePed3Depth3(double v1)
242  {fillElement(mePed3Depth3, v1);}
243  void fillmePed0Depth4(double v1)
244  {fillElement(mePed0Depth4, v1);}
245  void fillmePed1Depth4(double v1)
246  {fillElement(mePed1Depth4, v1);}
247  void fillmePed2Depth4(double v1)
248  {fillElement(mePed2Depth4, v1);}
249  void fillmePed3Depth4(double v1)
250  {fillElement(mePed3Depth4, v1);}
251 
252 
253  void fillmePedWidth0Depth1(double v1)
255  void fillmePedWidth1Depth1(double v1)
257  void fillmePedWidth2Depth1(double v1)
259  void fillmePedWidth3Depth1(double v1)
261  void fillmePedWidth0Depth2(double v1)
263  void fillmePedWidth1Depth2(double v1)
265  void fillmePedWidth2Depth2(double v1)
267  void fillmePedWidth3Depth2(double v1)
269  void fillmePedWidth0Depth3(double v1)
271  void fillmePedWidth1Depth3(double v1)
273  void fillmePedWidth2Depth3(double v1)
275  void fillmePedWidth3Depth3(double v1)
277  void fillmePedWidth0Depth4(double v1)
279  void fillmePedWidth1Depth4(double v1)
281  void fillmePedWidth2Depth4(double v1)
283  void fillmePedWidth3Depth4(double v1)
285 
286  void fillmeGainMap1(double v1, double v2, double v3)
287  {fillElements(meGainMap1, v1, v2, v3);}
288  void fillmeGainMap2(double v1, double v2, double v3)
289  {fillElements(meGainMap2, v1, v2, v3);}
290  void fillmeGainMap3(double v1, double v2, double v3)
291  {fillElements(meGainMap3, v1, v2, v3);}
292  void fillmeGainMap4(double v1, double v2, double v3)
293  {fillElements(meGainMap4, v1, v2, v3);}
294 
295  void fillmePwidthMap1(double v1, double v2, double v3)
296  {fillElements(mePwidthMap1, v1, v2, v3);}
297  void fillmePwidthMap2(double v1, double v2, double v3)
298  {fillElements(mePwidthMap2, v1, v2, v3);}
299  void fillmePwidthMap3(double v1, double v2, double v3)
300  {fillElements(mePwidthMap3, v1, v2, v3);}
301  void fillmePwidthMap4(double v1, double v2, double v3)
302  {fillElements(mePwidthMap4, v1, v2, v3);}
303 
304 private:
305 
306  void fillElement(MonitorElement* me, double value)
307  {
308  if(me) me->Fill(value);
309  }
310  void fillElements(MonitorElement* me, double v1, double v2)
311  {
312  if(me) me->Fill(v1, v2);
313  }
314  void fillElements(MonitorElement* me, double v1, double v2, double v3)
315  {
316  if(me) me->Fill(v1, v2, v3);
317  }
318 
319  double getMeElementBinContent(MonitorElement* me, int i, int j)
320  {
321  double tmp = 0.;
322  if(me) tmp = me->getBinContent(i,j);
323  return tmp;
324  }
325 
326  void setMeElementBinContent(MonitorElement* me, int i, int j, double v)
327  {
328  if(me) me->setBinContent(i,j,v);
329  }
330 
331 
332  // little embedded struct
333  struct HistLim
334  {
335  HistLim(int nbin, float mini, float maxi)
336  : n(nbin), min(mini), max(maxi) {}
337  int n;
338  float min;
339  float max;
340  };
341 
342  // utilities to create MonitorElements
343  MonitorElement * book1D(const std::string & name, HistLim lim);
344  MonitorElement * book2D(const std::string & name, HistLim lim1,
345  HistLim lim2);
346  MonitorElement * bookProfile(const std::string & name, HistLim lim1,
347  HistLim lim2);
348 
350  std::string subdet_;
351  int noise_;
352 
354 
363 
364 
371 
380 
386 
392 
398 
404 
410 
411  // DB constants
412 
429 
446 
463 
480 
481 
482  // CapID-0 only
491 
492 };
493 
494 #endif
495 
void fillmePed0Depth1(double v1)
void fillmeAll10slices1D(double v1, double v2)
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
MonitorElement * book1D(const std::string &name, HistLim lim)
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 * 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)
HcalSubdetDigiMonitor(DQMStore *dbe, const std::string &subdet, int noise)
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 fillmeGain3Depth2(double v1)
MonitorElement * meGainWidth3Depth1
MonitorElement * meRatioDigiSimhit2
void fillmePed1Depth2(double v1)
MonitorElement * mePedWidth2Depth4
void fillmeRatioDigiSimhit2(double v1)
MonitorElement * meRatioDigiSimhit3
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 fillmeDigiSimhitProfile2(double v1, double v2)
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)
void fillmeGain1Depth2(double v1)
MonitorElement * meGainWidth0Depth4
MonitorElement * meAll10slices1D
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)
MonitorElement * meAll10slices
void fillmeOccupancy_vs_ieta_depth3(double v1, double v2)
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)
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
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)
MonitorElement * bookProfile(const std::string &name, HistLim lim1, HistLim lim2)
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 * book2D(const std::string &name, HistLim lim1, HistLim lim2)
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 fillmeAll10slices(double v1, double v2)
void fillmeGainWidth1Depth3(double v1)
void fillmePwidthMap2(double v1, double v2, double v3)
MonitorElement * meGainWidth0Depth1
void fillmePedWidth0Depth3(double v1)
mathSSE::Vec4< T > v
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