CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalRecHitsAnalyzer.cc
Go to the documentation of this file.
4 
6  // DQM ROOT output
7  outputFile_ = conf.getUntrackedParameter<std::string>("outputFile", "myfile.root");
8 
9  if ( outputFile_.size() != 0 ) {
10  edm::LogInfo("OutputInfo") << " Hcal RecHit Task histograms will be saved to '" << outputFile_.c_str() << "'";
11  } else {
12  edm::LogInfo("OutputInfo") << " Hcal RecHit Task histograms will NOT be saved";
13  }
14 
15  nevtot = 0;
16 
17  dbe_ = 0;
18  // get hold of back-end interface
20 
21  Char_t histo[200];
22 
23  hcalselector_ = conf.getUntrackedParameter<std::string>("hcalselector", "all");
24  ecalselector_ = conf.getUntrackedParameter<std::string>("ecalselector", "yes");
25  eventype_ = conf.getUntrackedParameter<std::string>("eventype", "single");
26  sign_ = conf.getUntrackedParameter<std::string>("sign", "*");
27  useAllHistos_ = conf.getUntrackedParameter<bool>("useAllHistos", false);
28 
29  //Collections
30  theHBHERecHitCollectionLabel = conf.getUntrackedParameter<edm::InputTag>("HBHERecHitCollectionLabel");
31  theHFRecHitCollectionLabel = conf.getUntrackedParameter<edm::InputTag>("HFRecHitCollectionLabel");
32  theHORecHitCollectionLabel = conf.getUntrackedParameter<edm::InputTag>("HORecHitCollectionLabel");
33 
34  subdet_ = 5;
35  if (hcalselector_ == "noise") subdet_ = 0;
36  if (hcalselector_ == "HB" ) subdet_ = 1;
37  if (hcalselector_ == "HE" ) subdet_ = 2;
38  if (hcalselector_ == "HO" ) subdet_ = 3;
39  if (hcalselector_ == "HF" ) subdet_ = 4;
40  if (hcalselector_ == "all" ) subdet_ = 5;
41  if (hcalselector_ == "ZS" ) subdet_ = 6;
42 
43  etype_ = 1;
44  if (eventype_ == "multi") etype_ = 2;
45 
46  iz = 1;
47  if(sign_ == "-") iz = -1;
48  if(sign_ == "*") iz = 0;
49 
50  imc = 0;
51 
52  if ( dbe_ ) {
53  dbe_->setCurrentFolder("HcalRecHitsD/HcalRecHitTask");
54 
55  // General counters (drawn)
56  sprintf (histo, "N_HB" );
57  Nhb = dbe_->book1D(histo, histo, 2600,0.,2600.);
58  sprintf (histo, "N_HE" );
59  Nhe = dbe_->book1D(histo, histo, 2600,0.,2600.);
60  sprintf (histo, "N_HO" );
61  Nho = dbe_->book1D(histo, histo, 2200,0.,2200.);
62  sprintf (histo, "N_HF" );
63  Nhf = dbe_->book1D(histo, histo, 1800,0., 1800.);
64 
65  // ZS
66  if(subdet_ == 6) {
67 
68  for (unsigned int i1 = 0; i1 < 82; i1++) {
69  for (unsigned int i2 = 0; i2 < 72; i2++) {
70  for (unsigned int i3 = 0; i3 < 4; i3++) {
71  for (unsigned int i4 = 0; i4 < 4; i4++) {
72  emap_min [i1][i2][i3][i4] = 99999.;
73  }
74  }
75  }
76  }
77 
78  //None of the ZS histos are drawn
79  if (useAllHistos_){
80  sprintf (histo, "ZSmin_map_depth1" );
81  map_depth1 = dbe_->book2D(histo, histo, 82, -41., 41., 72, 0., 72.);
82  sprintf (histo, "ZSmin_map_depth2" );
83  map_depth2 = dbe_->book2D(histo, histo, 82, -41., 41., 72, 0., 72.);
84  sprintf (histo, "ZSmin_map_depth3" );
85  map_depth3 = dbe_->book2D(histo, histo, 82, -41., 41., 72, 0., 72.);
86  sprintf (histo, "ZSmin_map_depth4" );
87  map_depth4 = dbe_->book2D(histo, histo, 82, -41., 41., 72, 0., 72.);
88 
89 
90  sprintf (histo, "ZS_Nreco_HB1" );
91  ZS_nHB1 = dbe_->book1D(histo, histo, 2500, 0., 2500.);
92  sprintf (histo, "ZS_Nreco_HB2" );
93  ZS_nHB2 = dbe_->book1D(histo, histo, 500, 0., 500.);
94  sprintf (histo, "ZS_Nreco_HE1" );
95  ZS_nHE1 = dbe_->book1D(histo, histo, 2000, 0., 2000.);
96  sprintf (histo, "ZS_Nreco_HE2" );
97  ZS_nHE2 = dbe_->book1D(histo, histo, 2000, 0., 2000.);
98  sprintf (histo, "ZS_Nreco_HE3" );
99  ZS_nHE3 = dbe_->book1D(histo, histo, 500, 0., 500.);
100  sprintf (histo, "ZS_Nreco_HO" );
101  ZS_nHO = dbe_->book1D(histo, histo, 2500, 0., 2500.);
102  sprintf (histo, "ZS_Nreco_HF1" );
103  ZS_nHF1 = dbe_->book1D(histo, histo, 1000, 0., 1000.);
104  sprintf (histo, "ZS_Nreco_HF2" );
105  ZS_nHF2 = dbe_->book1D(histo, histo, 1000, 0., 1000.);
106 
107  sprintf (histo, "ZSmin_simple1D_HB1" );
108  ZS_HB1 = dbe_->book1D(histo, histo,120, -2., 10.);
109  sprintf (histo, "ZSmin_simple1D_HB2" );
110  ZS_HB2 = dbe_->book1D(histo, histo,120, -2., 10.);
111  sprintf (histo, "ZSmin_simple1D_HE1" );
112  ZS_HE1 = dbe_->book1D(histo, histo,120, -2., 10.);
113  sprintf (histo, "ZSmin_simple1D_HE2" );
114  ZS_HE2 = dbe_->book1D(histo, histo,120, -2., 10.);
115  sprintf (histo, "ZSmin_simple1D_HE3" );
116  ZS_HE3 = dbe_->book1D(histo, histo,120, -2., 10.);
117  sprintf (histo, "ZSmin_simple1D_HO" );
118  ZS_HO = dbe_->book1D(histo, histo,120, -2., 10.);
119  sprintf (histo, "ZSmin_simple1D_HF1" );
120  ZS_HF1 = dbe_->book1D(histo, histo,200, -10., 10.);
121  sprintf (histo, "ZSmin_simple1D_HF2" );
122  ZS_HF2 = dbe_->book1D(histo, histo,200, -10., 10.);
123 
124  sprintf (histo, "ZSmin_sequential1D_HB1" );
125  ZS_seqHB1 = dbe_->book1D(histo, histo,2400, -1200., 1200.);
126  sprintf (histo, "ZSmin_sequential1D_HB2" );
127  ZS_seqHB2 = dbe_->book1D(histo, histo,2400, -1200., 1200.);
128  sprintf (histo, "ZSmin_sequential1D_HE1" );
129  ZS_seqHE1 = dbe_->book1D(histo, histo,4400, -2200., 2200.);
130  sprintf (histo, "ZSmin_sequential1D_HE2" );
131  ZS_seqHE2 = dbe_->book1D(histo, histo,4400, -2200., 2200.);
132  sprintf (histo, "ZSmin_sequential1D_HE3" );
133  ZS_seqHE3 = dbe_->book1D(histo, histo,4400, -2200., 2200.);
134  sprintf (histo, "ZSmin_sequential1D_HO" );
135  ZS_seqHO = dbe_->book1D(histo, histo,2400, -1200., 1200.);
136  sprintf (histo, "ZSmin_sequential1D_HF1" );
137  ZS_seqHF1 = dbe_->book1D(histo, histo,6000, -3000., 3000.);
138  sprintf (histo, "ZSmin_sequential1D_HF2" );
139  ZS_seqHF2 = dbe_->book1D(histo, histo,6000, -3000., 3000.);
140  }
141  }
142 
143  // ALL others, except ZS
144  else {
145 
146  sprintf (histo, "emap_depth1" );
147  emap_depth1 = dbe_->book2D(histo, histo, 84, -42., 42., 72, 0., 72.);
148  sprintf (histo, "emap_depth2" );
149  emap_depth2 = dbe_->book2D(histo, histo, 84, -42., 42., 72, 0., 72.);
150  sprintf (histo, "emap_depth3" );
151  emap_depth3 = dbe_->book2D(histo, histo, 84, -42., 42., 72, 0., 72.);
152  sprintf (histo, "emap_depth4" );
153  emap_depth4 = dbe_->book2D(histo, histo, 84, -42., 42., 72, 0., 72.);
154 
155  if (useAllHistos_){
156 
157  if (ecalselector_ == "yes") {
158  sprintf (histo, "map_ecal" );
159  map_ecal = dbe_->book2D(histo, histo, 70, -3.045, 3.045, 72, -3.1415926536, 3.1415926536);
160  }
161  }
162 
163  //The mean energy histos are drawn, but not the RMS or emean seq
164  sprintf (histo, "emean_vs_ieta_HB1" );
165  emean_vs_ieta_HB1 = dbe_->bookProfile(histo, histo, 82, -41., 41., 2010, -10., 2000., "s");
166  sprintf (histo, "emean_vs_ieta_HB2" );
167  emean_vs_ieta_HB2 = dbe_->bookProfile(histo, histo, 82, -41., 41., 2010, -10., 2000., "s");
168  sprintf (histo, "emean_vs_ieta_HE1" );
169  emean_vs_ieta_HE1 = dbe_->bookProfile(histo, histo, 82, -41., 41., 2010, -10. ,2000., "s" );
170  sprintf (histo, "emean_vs_ieta_HE2" );
171  emean_vs_ieta_HE2 = dbe_->bookProfile(histo, histo, 82, -41., 41., 2010, -10., 2000., "s");
172  sprintf (histo, "emean_vs_ieta_HE3" );
173  emean_vs_ieta_HE3 = dbe_->bookProfile(histo, histo, 82, -41., 41., 2010, -10., 2000., "s" );
174  sprintf (histo, "emean_vs_ieta_HO" );
175  emean_vs_ieta_HO = dbe_->bookProfile(histo, histo, 82, -41., 41., 2010, -10., 2000., "s" );
176  sprintf (histo, "emean_vs_ieta_HF1" );
177  emean_vs_ieta_HF1 = dbe_->bookProfile(histo, histo, 82, -41., 41., 2010, -10., 2000., "s" );
178  sprintf (histo, "emean_vs_ieta_HF2" );
179  emean_vs_ieta_HF2 = dbe_->bookProfile(histo, histo, 82, -41., 41., 2010, -10., 2000., "s" );
180 
181  if (useAllHistos_){
182  sprintf (histo, "RMS_vs_ieta_HB1" );
183  RMS_vs_ieta_HB1 = dbe_->book1D(histo, histo, 82, -41., 41.);
184  sprintf (histo, "RMS_vs_ieta_HB2" );
185  RMS_vs_ieta_HB2 = dbe_->book1D(histo, histo, 82, -41., 41.);
186  sprintf (histo, "RMS_vs_ieta_HE1" );
187  RMS_vs_ieta_HE1 = dbe_->book1D(histo, histo, 82, -41., 41.);
188  sprintf (histo, "RMS_vs_ieta_HE2" );
189  RMS_vs_ieta_HE2 = dbe_->book1D(histo, histo, 82, -41., 41.);
190  sprintf (histo, "RMS_vs_ieta_HE3" );
191  RMS_vs_ieta_HE3 = dbe_->book1D(histo, histo, 82, -41., 41.);
192  sprintf (histo, "RMS_vs_ieta_HO" );
193  RMS_vs_ieta_HO = dbe_->book1D(histo, histo, 82, -41., 41.);
194  sprintf (histo, "RMS_vs_ieta_HF1" );
195  RMS_vs_ieta_HF1 = dbe_->book1D(histo, histo, 82, -41., 41.);
196  sprintf (histo, "RMS_vs_ieta_HF2" );
197  RMS_vs_ieta_HF2 = dbe_->book1D(histo, histo, 82, -41., 41.);
198 
199  // Sequential emean and RMS
200  sprintf (histo, "emean_seq_HB1" );
201  emean_seqHB1 = dbe_->bookProfile(histo, histo, 2400, -1200., 1200., 2010, -10., 2000., "s" );
202  sprintf (histo, "emean_seq_HB2" );
203  emean_seqHB2 = dbe_->bookProfile(histo, histo, 2400, -1200., 1200., 2010, -10., 2000., "s" );
204  sprintf (histo, "emean_seq_HE1" );
205  emean_seqHE1 = dbe_->bookProfile(histo, histo, 4400, -2200., 2200., 2010, -10., 2000., "s" );
206  sprintf (histo, "emean_seq_HE2" );
207  emean_seqHE2 = dbe_->bookProfile(histo, histo, 4400, -2200., 2200., 2010, -10., 2000., "s" );
208  sprintf (histo, "emean_seq_HE3" );
209  emean_seqHE3 = dbe_->bookProfile(histo, histo, 4400, -2200., 2200., 2010, -10., 2000., "s" );
210  sprintf (histo, "emean_seq_HO" );
211  emean_seqHO = dbe_->bookProfile(histo, histo, 2400, -1200., 1200., 2010, -10., 2000., "s" );
212  sprintf (histo, "emean_seq_HF1" );
213  emean_seqHF1 = dbe_->bookProfile(histo, histo, 6000, -3000., 3000., 2010, -10., 2000., "s" );
214  sprintf (histo, "emean_seq_HF2" );
215  emean_seqHF2 = dbe_->bookProfile(histo, histo, 6000, -3000., 3000., 2010, -10., 2000., "s" );
216 
217  sprintf (histo, "RMS_seq_HB1" );
218  RMS_seq_HB1 = dbe_->book1D(histo, histo, 2400, -1200., 1200.);
219  sprintf (histo, "RMS_seq_HB2" );
220  RMS_seq_HB2 = dbe_->book1D(histo, histo, 2400, -1200., 1200.);
221  sprintf (histo, "RMS_seq_HE1" );
222  RMS_seq_HE1 = dbe_->book1D(histo, histo, 4400, -2200., 2200.);
223  sprintf (histo, "RMS_seq_HE2" );
224  RMS_seq_HE2 = dbe_->book1D(histo, histo, 4400, -2200., 2200.);
225  sprintf (histo, "RMS_seq_HE3" );
226  RMS_seq_HE3 = dbe_->book1D(histo, histo, 4400, -2200., 2200.);
227  sprintf (histo, "RMS_seq_HO" );
228  RMS_seq_HO = dbe_->book1D(histo, histo, 2400, -1200., 1200.);
229  sprintf (histo, "RMS_seq_HF1" );
230  RMS_seq_HF1 = dbe_->book1D(histo, histo, 6000, -3000., 3000.);
231  sprintf (histo, "RMS_seq_HF2" );
232  RMS_seq_HF2 = dbe_->book1D(histo, histo, 6000, -3000., 3000.);
233  }
234  // Occupancy
235  //The only occupancy histos drawn are occupancy vs. ieta
236  //but the maps are needed because this is where the latter are filled from
237  sprintf (histo, "occupancy_map_HB1" );
238  occupancy_map_HB1 = dbe_->book2D(histo, histo, 82, -41., 41., 72, 0., 72.);
239  sprintf (histo, "occupancy_map_HB2" );
240  occupancy_map_HB2 = dbe_->book2D(histo, histo, 82, -41., 41., 72, 0., 72.);
241  sprintf (histo, "occupancy_map_HE1" );
242  occupancy_map_HE1 = dbe_->book2D(histo, histo, 82, -41., 41., 72, 0., 72.);
243  sprintf (histo, "occupancy_map_HE2" );
244  occupancy_map_HE2 = dbe_->book2D(histo, histo, 82, -41., 41., 72, 0., 72.);
245  sprintf (histo, "occupancy_map_HE3" );
246  occupancy_map_HE3 = dbe_->book2D(histo, histo, 82, -41., 41., 72, 0., 72.);
247  sprintf (histo, "occupancy_map_HO" );
248  occupancy_map_HO = dbe_->book2D(histo, histo, 82, -41., 41., 72, 0., 72.);
249  sprintf (histo, "occupancy_map_HF1" );
250  occupancy_map_HF1 = dbe_->book2D(histo, histo, 82, -41., 41., 72, 0., 72.);
251  sprintf (histo, "occupancy_map_HF2" );
252  occupancy_map_HF2 = dbe_->book2D(histo, histo, 82, -41., 41., 72, 0., 72.);
253 
254  //These are drawn
255  sprintf (histo, "occupancy_vs_ieta_HB1" );
256  occupancy_vs_ieta_HB1 = dbe_->book1D(histo, histo, 82, -41., 41.);
257  sprintf (histo, "occupancy_vs_ieta_HB2" );
258  occupancy_vs_ieta_HB2 = dbe_->book1D(histo, histo, 82, -41., 41.);
259  sprintf (histo, "occupancy_vs_ieta_HE1" );
260  occupancy_vs_ieta_HE1 = dbe_->book1D(histo, histo, 82, -41., 41.);
261  sprintf (histo, "occupancy_vs_ieta_HE2" );
262  occupancy_vs_ieta_HE2 = dbe_->book1D(histo, histo, 82, -41., 41.);
263  sprintf (histo, "occupancy_vs_ieta_HE3" );
264  occupancy_vs_ieta_HE3 = dbe_->book1D(histo, histo, 82, -41., 41.);
265  sprintf (histo, "occupancy_vs_ieta_HO" );
266  occupancy_vs_ieta_HO = dbe_->book1D(histo, histo, 82, -41., 41.);
267  sprintf (histo, "occupancy_vs_ieta_HF1" );
268  occupancy_vs_ieta_HF1 = dbe_->book1D(histo, histo, 82, -41., 41.);
269  sprintf (histo, "occupancy_vs_ieta_HF2" );
270  occupancy_vs_ieta_HF2 = dbe_->book1D(histo, histo, 82, -41., 41.);
271 
272  //These are not
273  if (useAllHistos_){
274  sprintf (histo, "occ_sequential1D_HB1" );
275  occupancy_seqHB1 = dbe_->book1D(histo, histo,2400, -1200., 1200.);
276  sprintf (histo, "occ_sequential1D_HB2" );
277  occupancy_seqHB2 = dbe_->book1D(histo, histo,2400, -1200., 1200.);
278  sprintf (histo, "occ_sequential1D_HE1" );
279  occupancy_seqHE1 = dbe_->book1D(histo, histo,4400, -2200., 2200.);
280  sprintf (histo, "occ_sequential1D_HE2" );
281  occupancy_seqHE2 = dbe_->book1D(histo, histo,4400, -2200., 2200.);
282  sprintf (histo, "occ_sequential1D_HE3" );
283  occupancy_seqHE3 = dbe_->book1D(histo, histo,4400, -2200., 2200.);
284  sprintf (histo, "occ_sequential1D_HO" );
285  occupancy_seqHO = dbe_->book1D(histo, histo,2400, -1200., 1200.);
286  sprintf (histo, "occ_sequential1D_HF1" );
287  occupancy_seqHF1 = dbe_->book1D(histo, histo,6000, -3000., 3000.);
288  sprintf (histo, "occ_sequential1D_HF2" );
289  occupancy_seqHF2 = dbe_->book1D(histo, histo,6000, -3000., 3000.);
290  }
291 
292  //All status word histos except HF67 are drawn
293  sprintf (histo, "HcalRecHitTask_RecHit_StatusWord_HB" ) ;
294  RecHit_StatusWord_HB = dbe_->book1D(histo, histo, 32 , -0.5, 31.5);
295 
296  sprintf (histo, "HcalRecHitTask_RecHit_StatusWord_HE" ) ;
297  RecHit_StatusWord_HE = dbe_->book1D(histo, histo, 32 , -0.5, 31.5);
298 
299  sprintf (histo, "HcalRecHitTask_RecHit_StatusWord_HF" ) ;
300  RecHit_StatusWord_HF = dbe_->book1D(histo, histo, 32 , -0.5, 31.5);
301 
302  if (useAllHistos_){
303  sprintf (histo, "HcalRecHitTask_RecHit_StatusWord_HF67" ) ;
304  RecHit_StatusWord_HF67 = dbe_->book1D(histo, histo, 3 , 0.5, 3.5);
305  }
306  sprintf (histo, "HcalRecHitTask_RecHit_StatusWord_HO" ) ;
307  RecHit_StatusWord_HO = dbe_->book1D(histo, histo, 32 , -0.5, 31.5);
308 
309  //Aux status word histos
310  sprintf (histo, "HcalRecHitTask_RecHit_Aux_StatusWord_HB" ) ;
311  RecHit_Aux_StatusWord_HB = dbe_->book1D(histo, histo, 32 , -0.5, 31.5);
312 
313  sprintf (histo, "HcalRecHitTask_RecHit_Aux_StatusWord_HE" ) ;
314  RecHit_Aux_StatusWord_HE = dbe_->book1D(histo, histo, 32 , -0.5, 31.5);
315 
316  sprintf (histo, "HcalRecHitTask_RecHit_Aux_StatusWord_HF" ) ;
317  RecHit_Aux_StatusWord_HF = dbe_->book1D(histo, histo, 32 , -0.5, 31.5);
318 
319  sprintf (histo, "HcalRecHitTask_RecHit_Aux_StatusWord_HO" ) ;
320  RecHit_Aux_StatusWord_HO = dbe_->book1D(histo, histo, 32 , -0.5, 31.5);
321 
322  } // end-of (subdet_ =! 6)
323 
324  //======================= Now various cases one by one ===================
325 
326  //Histograms drawn for single pion scan
327  if(subdet_ != 0 && imc != 0) { // just not for noise
328  sprintf (histo, "HcalRecHitTask_En_rechits_cone_profile_vs_ieta_all_depths");
329  meEnConeEtaProfile = dbe_->bookProfile(histo, histo, 82, -41., 41., 2100, -100., 2000.);
330 
331  sprintf (histo, "HcalRecHitTask_En_rechits_cone_profile_vs_ieta_all_depths_E");
332  meEnConeEtaProfile_E = dbe_->bookProfile(histo, histo, 82, -41., 41., 2100, -100., 2000.);
333 
334  sprintf (histo, "HcalRecHitTask_En_rechits_cone_profile_vs_ieta_all_depths_EH");
335  meEnConeEtaProfile_EH = dbe_->bookProfile(histo, histo, 82, -41., 41., 2100, -100., 2000.);
336  }
337  //The other cone profile, delta ieta/phi and noise histos are not drawn
338  if (useAllHistos_){
339  if(subdet_ != 0 && imc != 0) { // just not for noise
340 
341  // meEnConeEtaProfiel_depth1->Fill(eta_RecHit, HcalCone_d1);
342 
343  sprintf (histo, "HcalRecHitTask_En_rechits_cone_profile_vs_ieta_depth1");
344  meEnConeEtaProfile_depth1 = dbe_->bookProfile(histo, histo, 82, -41., 41., 2100, -100., 2000.);
345 
346  sprintf (histo, "HcalRecHitTask_En_rechits_cone_profile_vs_ieta_depth2");
347  meEnConeEtaProfile_depth2 = dbe_->bookProfile(histo, histo, 82, -41., 41., 2100, -100., 2000.);
348 
349  sprintf (histo, "HcalRecHitTask_En_rechits_cone_profile_vs_ieta_depth3");
350  meEnConeEtaProfile_depth3 = dbe_->bookProfile(histo, histo, 82, -41., 41., 2100, -100., 2000.);
351 
352  sprintf (histo, "HcalRecHitTask_En_rechits_cone_profile_vs_ieta_depth4");
353  meEnConeEtaProfile_depth4 = dbe_->bookProfile(histo, histo, 82, -41., 41., 2100, -100., 2000.);
354 
355  }
356 
357  if(etype_ == 1 && subdet_ != 0) { // single part., not for noise
358 
359  sprintf (histo, "Delta_phi_cluster-MC");
360  meDeltaPhi = dbe_->book2D(histo, histo, 520, -5.2, 5.2, 60, -0.6, 0.6);
361 
362  sprintf (histo, "Delta_eta_cluster-MC");
363  meDeltaEta = dbe_->book2D(histo, histo, 520, -5.2, 5.2, 60, -0.6, 0.6);
364 
365  }
366  // NOISE-specific
367 
368  if (hcalselector_ == "noise" ){
369 
370  sprintf (histo, "e_hb" ) ;
371  e_hb = dbe_->book1D(histo, histo,1000, -5., 5.);
372  sprintf (histo, "e_he" ) ;
373  e_he = dbe_->book1D(histo, histo,1000, -5., 5.);
374  sprintf (histo, "e_ho" ) ;
375  e_ho = dbe_->book1D(histo, histo,1000, -5., 5.);
376  sprintf (histo, "e_hfl" ) ;
377  e_hfl = dbe_->book1D(histo, histo,2000, -10., 10.);
378  sprintf (histo, "e_hfs" ) ;
379  e_hfs = dbe_->book1D(histo, histo,2000, -10., 10.);
380  }
381  }
382  // ************** HB **********************************
383  if (subdet_ == 1 || subdet_ == 5 ){
384 
385  //Only severity level, energy of rechits and overall HB timing histos are drawn
386  if (useAllHistos_){
387  if(etype_ == 1 && subdet_ == 1 ) {
388  if(imc != 0) {
389  sprintf (histo, "HcalRecHitTask_number_of_rechits_in_cone_HB" ) ;
390  meNumRecHitsConeHB = dbe_->book1D(histo, histo, 100, 0., 100.);
391 
392  sprintf (histo, "HcalRecHitTask_sum_of_rechits_energy_in_cone_HB" ) ;
393  meSumRecHitsEnergyConeHB = dbe_->book1D(histo,histo, 60 ,-20., 280.);
394  }
395 
396  sprintf (histo, "HcalRecHitTask_number_of_rechits_above_1GeV_HB");
397  meNumRecHitsThreshHB = dbe_->book1D(histo, histo, 30, 0., 30.);
398 
399  sprintf (histo, "HcalRecHitTask_sum_of_rechits_energy_HB" ) ;
400  meSumRecHitsEnergyHB = dbe_->book1D(histo,histo, 60 , -20., 280.);
401 
402  if (ecalselector_ == "yes") {
403  if(imc != 0) {
404  sprintf (histo, "HcalRecHitTask_number_of_ecalrechits_in_cone_HB");
405  meNumEcalRecHitsConeHB = dbe_->book1D(histo, histo, 300, 0., 300.);
406  sprintf (histo, "HcalRecHitTask_energy_ecal_plus_hcal_in_cone_HB");
407  meEcalHcalEnergyConeHB = dbe_->book1D(histo,histo, 60 , -20., 280.);
408  }
409 
410  sprintf (histo, "HcalRecHitTask_energy_hcal_vs_ecal_HB");
411  meEnergyHcalVsEcalHB = dbe_->book2D(histo, histo, 300, 0., 150., 300, 0., 150.);
412  sprintf (histo, "HcalRecHitTask_energy_ecal_plus_hcal_HB" ) ;
413  meEcalHcalEnergyHB = dbe_->book1D(histo,histo, 60 , -20., 280.);
414  }
415  }
416  }
417 
418  sprintf(histo, "HcalRecHitTask_severityLevel_HB");
419  sevLvl_HB = dbe_->book1D(histo, histo, 25, -0.5, 24.5);
420 
421  sprintf (histo, "HcalRecHitTask_energy_of_rechits_HB" ) ;
422  meRecHitsEnergyHB = dbe_->book1D(histo, histo, 2010 , -10. , 2000.);
423 
424  sprintf (histo, "HcalRecHitTask_timing_HB" ) ;
425  meTimeHB = dbe_->book1D(histo, histo, 70, -48., 92.);
426 
427  //High, medium and low histograms to reduce RAM usage
428  sprintf (histo, "HcalRecHitTask_timing_vs_energy_Low_HB" ) ;
429  meTE_Low_HB = dbe_->book2D(histo, histo, 50, -5., 45., 70, -48., 92.);
430 
431  sprintf (histo, "HcalRecHitTask_timing_vs_energy_HB" ) ;
432  meTE_HB = dbe_->book2D(histo, histo, 150, -5., 295., 70, -48., 92.);
433 
434  sprintf (histo, "HcalRecHitTask_timing_vs_energy_High_HB" ) ;
435  meTE_High_HB = dbe_->book2D(histo, histo, 150, -5., 2995., 70, -48., 92.);
436 
437  sprintf (histo, "HcalRecHitTask_timing_vs_energy_profile_Low_HB" ) ;
438  meTEprofileHB_Low = dbe_->bookProfile(histo, histo, 50, -5., 45., 70, -48., 92.);
439 
440  sprintf (histo, "HcalRecHitTask_timing_vs_energy_profile_HB" ) ;
441  meTEprofileHB = dbe_->bookProfile(histo, histo, 150, -5., 295., 70, -48., 92.);
442 
443  sprintf (histo, "HcalRecHitTask_timing_vs_energy_profile_High_HB" ) ;
444  meTEprofileHB_High = dbe_->bookProfile(histo, histo, 150, -5., 2995., 70, -48., 92.);
445 
446  }
447 
448  // ********************** HE ************************************
449  if ( subdet_ == 2 || subdet_ == 5 ){
450 
451  //None of these are drawn
452  if (useAllHistos_){
453  if(etype_ == 1 && subdet_ == 2 ) {
454 
455  if(imc != 0) {
456  sprintf (histo, "HcalRecHitTask_number_of_rechits_in_cone_HE" ) ;
457  meNumRecHitsConeHE = dbe_->book1D(histo, histo, 100, 0., 100.);
458 
459  sprintf (histo, "HcalRecHitTask_sum_of_rechits_energy_in_cone_HE" ) ;
460  meSumRecHitsEnergyConeHE = dbe_->book1D(histo,histo, 60 ,-20., 280.);
461  }
462 
463  sprintf (histo, "HcalRecHitTask_number_of_rechits_above_1GeV_HE");
464  meNumRecHitsThreshHE = dbe_->book1D(histo, histo, 30, 0., 30.);
465 
466  sprintf (histo, "HcalRecHitTask_sum_of_rechits_energy_HE" ) ;
467  meSumRecHitsEnergyHE = dbe_->book1D(histo,histo, 60 , -20., 280.);
468 
469  if (ecalselector_ == "yes") {
470  sprintf (histo, "HcalRecHitTask_energy_ecal_plus_hcal_HE" ) ;
471  meEcalHcalEnergyHE = dbe_->book1D(histo,histo, 80, -20., 380.);
472 
473  sprintf (histo, "HcalRecHitTask_energy_hcal_vs_ecal_HE");
474  meEnergyHcalVsEcalHE = dbe_->book2D(histo, histo, 300, 0., 150., 300, 0., 150.);
475  if(imc != 0) {
476  sprintf (histo, "HcalRecHitTask_number_of_ecalrechits_in_cone_HE");
477  meNumEcalRecHitsConeHE = dbe_->book1D(histo, histo, 300, 0., 300.);
478  sprintf (histo, "HcalRecHitTask_energy_ecal_plus_hcal_in_cone_HE");
479  meEcalHcalEnergyConeHE = dbe_->book1D(histo,histo, 60,-20., 280.);
480  }
481  }
482  }
483  }
484 
485  //Only severity level, energy of rechits and overall HB timing histos are drawn
486  sprintf(histo, "HcalRecHitTask_severityLevel_HE");
487  sevLvl_HE = dbe_->book1D(histo, histo, 25, -0.5, 24.5);
488 
489  sprintf (histo, "HcalRecHitTask_energy_of_rechits_HE" ) ;
490  meRecHitsEnergyHE = dbe_->book1D(histo, histo, 510, -10., 500.);
491 
492  sprintf (histo, "HcalRecHitTask_timing_HE" ) ;
493  meTimeHE = dbe_->book1D(histo, histo, 70, -48., 92.);
494 
495  sprintf (histo, "HcalRecHitTask_timing_vs_energy_Low_HE" ) ;
496  meTE_Low_HE = dbe_->book2D(histo, histo, 80, -5., 75., 70, -48., 92.);
497 
498  sprintf (histo, "HcalRecHitTask_timing_vs_energy_HE" ) ;
499  meTE_HE = dbe_->book2D(histo, histo, 200, -5., 395., 70, -48., 92.);
500 
501  sprintf (histo, "HcalRecHitTask_timing_vs_energy_profile_Low_HE" ) ;
502  meTEprofileHE_Low = dbe_->bookProfile(histo, histo, 80, -5., 75., 70, -48., 92.);
503 
504  sprintf (histo, "HcalRecHitTask_timing_vs_energy_profile_HE" ) ;
505  meTEprofileHE = dbe_->bookProfile(histo, histo, 200, -5., 395., 70, -48., 92.);
506 
507  }
508 
509  // ************** HO ****************************************
510  if ( subdet_ == 3 || subdet_ == 5 ){
511 
512  //Only severity level, energy of rechits and overall HB timing histos are drawn
513  if (useAllHistos_){
514  if(etype_ == 1 && subdet_ == 3) {
515  if (imc != 0) {
516  sprintf (histo, "HcalRecHitTask_number_of_rechits_in_cone_HO" ) ;
517  meNumRecHitsConeHO = dbe_->book1D(histo, histo, 100, 0 , 100.);
518 
519  sprintf (histo, "HcalRecHitTask_sum_of_rechits_energy_in_cone_HO" ) ;
520  meSumRecHitsEnergyConeHO = dbe_->book1D(histo,histo, 80 ,-20., 380.);
521  }
522 
523  sprintf (histo, "HcalRecHitTask_number_of_rechits_above_1GeV_HO");
524  meNumRecHitsThreshHO = dbe_->book1D(histo, histo, 100, 0., 100.);
525 
526  sprintf (histo, "HcalRecHitTask_sum_of_rechits_energy_HO" ) ;
527  meSumRecHitsEnergyHO = dbe_->book1D(histo,histo, 80 , -20., 380.);
528  }
529  }
530 
531  sprintf(histo, "HcalRecHitTask_severityLevel_HO");
532  sevLvl_HO = dbe_->book1D(histo, histo, 25, -0.5, 24.5);
533 
534  sprintf (histo, "HcalRecHitTask_energy_of_rechits_HO" ) ;
535  meRecHitsEnergyHO = dbe_->book1D(histo, histo, 510 , -10. , 500.);
536 
537  sprintf (histo, "HcalRecHitTask_timing_HO" ) ;
538  meTimeHO = dbe_->book1D(histo, histo, 70, -48., 92.);
539 
540  sprintf (histo, "HcalRecHitTask_timing_vs_energy_HO" ) ;
541  meTE_HO= dbe_->book2D(histo, histo, 60, -5., 55., 70, -48., 92.);
542 
543  sprintf (histo, "HcalRecHitTask_timing_vs_energy_High_HO" ) ;
544  meTE_High_HO= dbe_->book2D(histo, histo, 100, -5., 995., 70, -48., 92.);
545 
546  sprintf (histo, "HcalRecHitTask_timing_vs_energy_profile_HO" ) ;
547  meTEprofileHO = dbe_->bookProfile(histo, histo, 60, -5., 55., 70, -48., 92.);
548 
549  sprintf (histo, "HcalRecHitTask_timing_vs_energy_profile_High_HO" ) ;
550  meTEprofileHO_High = dbe_->bookProfile(histo, histo, 100, -5., 995., 70, -48., 92.);
551 
552  }
553 
554  // ********************** HF ************************************
555  if ( subdet_ == 4 || subdet_ == 5 ){
556 
557  //Only severity level, energy of rechits and overall HB timing histos are drawn
558  if (useAllHistos_){
559  if(etype_ == 1 && subdet_ == 4) {
560 
561  if(imc != 0) {
562  sprintf (histo, "HcalRecHitTask_number_of_rechits_in_cone_HF" ) ;
563  meNumRecHitsConeHF = dbe_->book1D(histo, histo, 30, 0 , 30.);
564 
565  sprintf (histo, "HcalRecHitTask_sum_of_rechits_energy_in_cone_HF" ) ;
566  meSumRecHitsEnergyConeHF = dbe_->book1D(histo,histo,100, -20., 180.);
567 
568  sprintf (histo, "HcalRecHitTask_sum_of_rechits_energy_in_cone_HFL" );
569  meSumRecHitsEnergyConeHFL = dbe_->book1D(histo,histo,100,-20., 180.);
570 
571  sprintf (histo, "HcalRecHitTask_sum_of_rechits_energy_in_cone_HFS");
572  meSumRecHitsEnergyConeHFS = dbe_->book1D(histo,histo,100,-20., 180.);
573  }
574  sprintf (histo, "HcalRecHitTask_sum_of_rechits_energy_HF" ) ;
575  meSumRecHitsEnergyHF = dbe_->book1D(histo,histo, 80 , -20., 380.);
576  }
577  }
578 
579  sprintf(histo, "HcalRecHitTask_severityLevel_HF");
580  sevLvl_HF = dbe_->book1D(histo, histo, 25, -0.5, 24.5);
581 
582  sprintf (histo, "HcalRecHitTask_energy_of_rechits_HF" ) ;
583  meRecHitsEnergyHF = dbe_->book1D(histo, histo, 1010 , -10. , 1000.);
584 
585  sprintf (histo, "HcalRecHitTask_timing_HF" ) ;
586  meTimeHF = dbe_->book1D(histo, histo, 70, -48., 92.);
587 
588  sprintf (histo, "HcalRecHitTask_timing_vs_energy_Low_HF" ) ;
589  meTE_Low_HF = dbe_->book2D(histo, histo, 100, -5., 195., 70, -48., 92.);
590 
591  sprintf (histo, "HcalRecHitTask_timing_vs_energy_HF" ) ;
592  meTE_HF = dbe_->book2D(histo, histo, 200, -5., 995., 70, -48., 92.);
593 
594  sprintf (histo, "HcalRecHitTask_timing_vs_energy_profile_Low_HF" ) ;
595  meTEprofileHF_Low = dbe_->bookProfile(histo, histo, 100, -5., 195., 70, -48., 92.);
596 
597  sprintf (histo, "HcalRecHitTask_timing_vs_energy_profile_HF" ) ;
598  meTEprofileHF = dbe_->bookProfile(histo, histo, 200, -5., 995., 70, -48., 92.);
599 
600  }
601  } //end-of if(_dbe)
602 
603 }
604 
605 
607 
609 
610 
612 
614 
615  using namespace edm;
616 
617  // cuts for each subdet_ector mimiking "Scheme B"
618  // double cutHB = 0.9, cutHE = 1.4, cutHO = 1.1, cutHFL = 1.2, cutHFS = 1.8;
619 
620  // energy in HCAL
621  double eHcal = 0.;
622  double eHcalCone = 0.;
623  double eHcalConeHB = 0.;
624  double eHcalConeHE = 0.;
625  double eHcalConeHO = 0.;
626  double eHcalConeHF = 0.;
627  double eHcalConeHFL = 0.;
628  double eHcalConeHFS = 0.;
629  // Total numbet of RecHits in HCAL, in the cone, above 1 GeV theshold
630  int nrechits = 0;
631  int nrechitsCone = 0;
632  int nrechitsThresh = 0;
633 
634  // energy in ECAL
635  double eEcal = 0.;
636  double eEcalB = 0.;
637  double eEcalE = 0.;
638  double eEcalCone = 0.;
639  int numrechitsEcal = 0;
640 
641  // HCAL energy around MC eta-phi at all depths;
642  double partR = 0.3;
643 // double ehcal_coneMC_1 = 0.;
644 // double ehcal_coneMC_2 = 0.;
645 // double ehcal_coneMC_3 = 0.;
646 // double ehcal_coneMC_4 = 0.;
647 
648  // Cone size for serach of the hottest HCAL cell around MC
649 // double searchR = 1.0;
650  double eps = 0.001;
651 
652  // Single particle samples: actual eta-phi position of cluster around
653  // hottest cell
654  double etaHot = 99999.;
655  double phiHot = 99999.;
656 
657  // std::cout << "*** 2" << std::endl;
658  // previously was: c.get<IdealGeometryRecord>().get (geometry);
659  c.get<CaloGeometryRecord>().get (geometry);
660 
661  // HCAL channel status map ****************************************
663  c.get<HcalChannelQualityRcd>().get( hcalChStatus );
664  theHcalChStatus = hcalChStatus.product();
665  // Assignment of severity levels **********************************
666  edm::ESHandle<HcalSeverityLevelComputer> hcalSevLvlComputerHndl;
667  c.get<HcalSeverityLevelComputerRcd>().get(hcalSevLvlComputerHndl);
668  theHcalSevLvlComputer = hcalSevLvlComputerHndl.product();
669 
670  // Fill working vectors of HCAL RecHits quantities (all of these are drawn)
671  fillRecHitsTmp(subdet_, ev);
672 
673  // HB
674  if( subdet_ ==5 || subdet_ == 1 ){
675  for(unsigned int iv=0; iv<hcalHBSevLvlVec.size(); iv++){
677  }
678  }
679  // HE
680  if( subdet_ ==5 || subdet_ == 2 ){
681  for(unsigned int iv=0; iv<hcalHESevLvlVec.size(); iv++){
683  }
684  }
685  // HO
686  if( subdet_ ==5 || subdet_ == 3 ){
687  for(unsigned int iv=0; iv<hcalHOSevLvlVec.size(); iv++){
689  }
690  }
691  // HF
692  if( subdet_ ==5 || subdet_ == 4 ){
693  for(unsigned int iv=0; iv<hcalHFSevLvlVec.size(); iv++){
695  }
696  }
697 
698  // std::cout << "*** 3" << std::endl;
699 
700 
701  //===========================================================================
702  // IN ALL other CASES : ieta-iphi maps
703  //===========================================================================
704 
705  // ECAL
706  if(ecalselector_ == "yes" && (subdet_ == 1 || subdet_ == 2 || subdet_ == 5)) {
708 
709 
710  ev.getByLabel("ecalRecHit","EcalRecHitsEB", rhitEB);
711 
712  EcalRecHitCollection::const_iterator RecHit = rhitEB.product()->begin();
713  EcalRecHitCollection::const_iterator RecHitEnd = rhitEB.product()->end();
714 
715  for (; RecHit != RecHitEnd ; ++RecHit) {
716  EBDetId EBid = EBDetId(RecHit->id());
717 
718  const CaloCellGeometry* cellGeometry =
719  geometry->getSubdetectorGeometry (EBid)->getGeometry (EBid) ;
720  double eta = cellGeometry->getPosition ().eta () ;
721  double phi = cellGeometry->getPosition ().phi () ;
722  double en = RecHit->energy();
723  eEcal += en;
724  eEcalB += en;
725 
726  if (useAllHistos_) map_ecal->Fill(eta, phi, en);
727 
728  }
729 
730 
732 
733  ev.getByLabel("ecalRecHit","EcalRecHitsEE", rhitEE);
734 
735  RecHit = rhitEE.product()->begin();
736  RecHitEnd = rhitEE.product()->end();
737 
738  for (; RecHit != RecHitEnd ; ++RecHit) {
739  EEDetId EEid = EEDetId(RecHit->id());
740 
741  const CaloCellGeometry* cellGeometry =
742  geometry->getSubdetectorGeometry (EEid)->getGeometry (EEid) ;
743  double eta = cellGeometry->getPosition ().eta () ;
744  double phi = cellGeometry->getPosition ().phi () ;
745  double en = RecHit->energy();
746  eEcal += en;
747  eEcalE += en;
748 
749  if (useAllHistos_) map_ecal->Fill(eta, phi, en);
750 
751  }
752  } // end of ECAL selection
753 
754 
755  // std::cout << "*** 4" << std::endl;
756 
757 
758  // Counting, including ZS items
759  // Filling HCAL maps ----------------------------------------------------
760 // double maxE = -99999.;
761 
762  int nhb1 = 0;
763  int nhb2 = 0;
764  int nhe1 = 0;
765  int nhe2 = 0;
766  int nhe3 = 0;
767  int nho = 0;
768  int nhf1 = 0;
769  int nhf2 = 0;
770 
771  for (unsigned int i = 0; i < cen.size(); i++) {
772 
773  int sub = csub[i];
774  int depth = cdepth[i];
775  int ieta = cieta[i];
776  int iphi = ciphi[i];
777  double en = cen[i];
778  // double eta = ceta[i];
779  // double phi = cphi[i];
780  uint32_t stwd = cstwd[i];
781  uint32_t auxstwd = cauxstwd[i];
782  // double z = cz[i];
783 
784  int index = ieta * 72 + iphi; // for sequential histos
785 
786  /*
787  std::cout << "*** point 4-1" << " ieta, iphi, depth, sub = "
788  << ieta << ", " << iphi << ", " << depth << ", " << sub
789  << std::endl;
790  */
791 
792 
793  if( sub == 1 && depth == 1) nhb1++;
794  if( sub == 1 && depth == 2) nhb2++;
795  if( sub == 2 && depth == 1) nhe1++;
796  if( sub == 2 && depth == 2) nhe2++;
797  if( sub == 2 && depth == 3) nhe3++;
798  if( sub == 3 && depth == 4) nho++;
799  if( sub == 4 && depth == 1) nhf1++;
800  if( sub == 4 && depth == 2) nhf2++;
801 
802  if( subdet_ == 6) { // ZS specific
803  if( en < emap_min[ieta+41][iphi][depth-1][sub-1] )
804  emap_min[ieta+41][iphi][depth-1][sub-1] = en;
805  }
806 
807 // double emin = 1.;
808 // if(fabs(eta) > 3.) emin = 5.;
809 
810  /*
811  if(ieta == 27 ) {
812  std::cout << "*** ieta=28, iphi = " << iphi << " det = "
813  << sub << " depth = " << depth << std::endl;
814  }
815  */
816 
817  if( subdet_ != 6) {
818 
819  // std::cout << "*** 4-1" << std::endl;
820  //The emean_vs_ieta histos are drawn as well as the e_maps
821 
822 
823  // to distinguish HE and HF
824  if( depth == 1 || depth == 2 ) {
825  int ieta1 = ieta;
826  if(sub == 4) {
827  if (ieta1 < 0) ieta1--;
828  else ieta1++;
829  }
830  if (depth == 1) emap_depth1->Fill(double(ieta1), double(iphi), en);
831  if (depth == 2) emap_depth2->Fill(double(ieta1), double(iphi), en);
832  }
833 
834  if( depth == 3) emap_depth3->Fill(double(ieta), double(iphi), en);
835  if( depth == 4) emap_depth4->Fill(double(ieta), double(iphi), en);
836 
837  if (depth == 1 && sub == 1 ) {
838  emean_vs_ieta_HB1->Fill(double(ieta), en);
839  occupancy_map_HB1->Fill(double(ieta), double(iphi));
840  if(useAllHistos_){
841  emean_seqHB1->Fill(double(index), en);
842  }
843  }
844  if (depth == 2 && sub == 1) {
845  emean_vs_ieta_HB2->Fill(double(ieta), en);
846  occupancy_map_HB2->Fill(double(ieta), double(iphi));
847  if(useAllHistos_){
848  emean_seqHB2->Fill(double(index), en);
849  }
850  }
851  if (depth == 1 && sub == 2) {
852  emean_vs_ieta_HE1->Fill(double(ieta), en);
853  occupancy_map_HE1->Fill(double(ieta), double(iphi));
854  if(useAllHistos_){
855  emean_seqHE1->Fill(double(index), en);
856  }
857  }
858  if (depth == 2 && sub == 2) {
859  emean_vs_ieta_HE2->Fill(double(ieta), en);
860  occupancy_map_HE2->Fill(double(ieta), double(iphi));
861  if(useAllHistos_){
862  emean_seqHE2->Fill(double(index), en);
863  }
864  }
865  if (depth == 3 && sub == 2) {
866  emean_vs_ieta_HE3->Fill(double(ieta), en);
867  occupancy_map_HE3->Fill(double(ieta), double(iphi));
868  if(useAllHistos_){
869  emean_seqHE3->Fill(double(index), en);
870  }
871  }
872  if (depth == 4 ) {
873  emean_vs_ieta_HO->Fill(double(ieta), en);
874  occupancy_map_HO->Fill(double(ieta), double(iphi));
875  if(useAllHistos_){
876  emean_seqHO->Fill(double(index), en);
877  }
878  }
879  if (depth == 1 && sub == 4) {
880  emean_vs_ieta_HF1->Fill(double(ieta), en);
881  occupancy_map_HF1->Fill(double(ieta), double(iphi));
882  if(useAllHistos_){
883  emean_seqHF1->Fill(double(index), en);
884  }
885  }
886  if (depth == 2 && sub == 4) {
887  emean_vs_ieta_HF2->Fill(double(ieta), en);
888  occupancy_map_HF2->Fill(double(ieta), double(iphi));
889  if(useAllHistos_){
890  emean_seqHF2->Fill(double(index), en);
891  }
892  }
893  }
894 
895 
896 // if( r < partR ) {
897 // if (depth == 1) ehcal_coneMC_1 += en;
898 // if (depth == 2) ehcal_coneMC_2 += en;
899 // if (depth == 3) ehcal_coneMC_3 += en;
900 // if (depth == 4) ehcal_coneMC_4 += en;
901 // }
902 
903  //32-bit status word
904  uint32_t statadd;
905  unsigned int isw67 = 0;
906  for (unsigned int isw = 0; isw < 32; isw++){
907  statadd = 0x1<<(isw);
908  if (stwd & statadd){
909  if (sub == 1) RecHit_StatusWord_HB->Fill(isw);
910  else if (sub == 2) RecHit_StatusWord_HE->Fill(isw);
911  else if (sub == 3) RecHit_StatusWord_HO->Fill(isw);
912  else if (sub == 4){
914  if (isw == 6) isw67 += 1;
915  if (isw == 7) isw67 += 2;
916  }
917  }
918  }
919  if (isw67 != 0 && useAllHistos_) RecHit_StatusWord_HF67->Fill(isw67); //This one is not drawn
920 
921  for (unsigned int isw =0; isw < 32; isw++){
922  statadd = 0x1<<(isw);
923  if( auxstwd & statadd ){
924  if (sub == 1) RecHit_Aux_StatusWord_HB->Fill(isw);
925  else if (sub == 2) RecHit_Aux_StatusWord_HE->Fill(isw);
926  else if (sub == 3) RecHit_Aux_StatusWord_HO->Fill(isw);
927  else if (sub == 4) RecHit_Aux_StatusWord_HF->Fill(isw);
928  }
929 
930  }
931 
932  }
933 
934  // std::cout << "*** 4-2" << std::endl;
935 
936  if( subdet_ == 6 && useAllHistos_) { // ZS plots; not drawn
937  ZS_nHB1->Fill(double(nhb1));
938  ZS_nHB2->Fill(double(nhb2));
939  ZS_nHE1->Fill(double(nhe1));
940  ZS_nHE2->Fill(double(nhe2));
941  ZS_nHE3->Fill(double(nhe3));
942  ZS_nHO ->Fill(double(nho));
943  ZS_nHF1->Fill(double(nhf1));
944  ZS_nHF2->Fill(double(nhf2));
945  }
946  else{
947  Nhb->Fill(double(nhb1 + nhb2));
948  Nhe->Fill(double(nhe1 + nhe2 + nhe3));
949  Nho->Fill(double(nho));
950  Nhf->Fill(double(nhf1 + nhf2));
951 
952  }
953 
954  // std::cout << "*** 5" << std::endl;
955 
956 
957  // NOISE =================================================================
958  //Not drawn
959  if (hcalselector_ == "noise" && useAllHistos_) {
960  for (unsigned int i = 0; i < cen.size(); i++) {
961 
962  int sub = csub[i];
963  int depth = cdepth[i];
964  double en = cen[i];
965 
966  if (sub == 1) e_hb->Fill(en);
967  if (sub == 2) e_he->Fill(en);
968  if (sub == 3) e_ho->Fill(en);
969  if (sub == 4) {
970  if(depth == 1)
971  e_hfl->Fill(en);
972  else
973  e_hfs->Fill(en);
974  }
975  }
976  }
977 
978  //===========================================================================
979  // SUBSYSTEMS,
980  //===========================================================================
981 
982  else if ((subdet_ != 6) && (subdet_ != 0)) {
983 
984  // std::cout << "*** 6" << std::endl;
985 
986 
987  double clusEta = 999.;
988  double clusPhi = 999.;
989  double clusEn = 0.;
990 
991  double HcalCone_d1 = 0.;
992  double HcalCone_d2 = 0.;
993  double HcalCone_d3 = 0.;
994  double HcalCone_d4 = 0.;
995  double HcalCone = 0.;
996 
997  int ietaMax1 = 9999;
998  int ietaMax2 = 9999;
999  int ietaMax3 = 9999;
1000  int ietaMax4 = 9999;
1001  int ietaMax = 9999;
1002  // double enMax1 = -9999.;
1003  // double enMax2 = -9999.;
1004  // double enMax3 = -9999.;
1005  // double enMax4 = -9999.;
1006  // double enMax = -9999.;
1007  // double etaMax = 9999.;
1008 
1009  // CYCLE over cells ====================================================
1010 
1011  for (unsigned int i = 0; i < cen.size(); i++) {
1012  int sub = csub[i];
1013  int depth = cdepth[i];
1014  double eta = ceta[i];
1015  double phi = cphi[i];
1016  double en = cen[i];
1017  double t = ctime[i];
1018 // int ieta = cieta[i];
1019 
1020  double rhot = dR(etaHot, phiHot, eta, phi);
1021  if(rhot < partR && en > 1.) {
1022  clusEta = (clusEta * clusEn + eta * en)/(clusEn + en);
1023  clusPhi = phi12(clusPhi, clusEn, phi, en);
1024  clusEn += en;
1025  }
1026 
1027  nrechits++;
1028  eHcal += en;
1029  if(en > 1. ) nrechitsThresh++;
1030 
1031  //The energy and overall timing histos are drawn while
1032  //the ones split by depth are not
1033  if(sub == 1 && (subdet_ == 1 || subdet_ == 5)) {
1034  meTimeHB->Fill(t);
1035  meRecHitsEnergyHB->Fill(en);
1036 
1037  meTE_Low_HB->Fill( en, t);
1038  meTE_HB->Fill( en, t);
1039  meTE_High_HB->Fill( en, t);
1040  meTEprofileHB_Low->Fill(en, t);
1041  meTEprofileHB->Fill(en, t);
1042  meTEprofileHB_High->Fill(en, t);
1043 
1044  if (useAllHistos_){
1045  if (depth == 1) meTE_HB1->Fill( en, t);
1046  else if (depth == 2) meTE_HB2->Fill( en, t);
1047  }
1048  }
1049  if(sub == 2 && (subdet_ == 2 || subdet_ == 5)) {
1050  meTimeHE->Fill(t);
1051  meRecHitsEnergyHE->Fill(en);
1052 
1053  meTE_Low_HE->Fill( en, t);
1054  meTE_HE->Fill( en, t);
1055  meTEprofileHE_Low->Fill(en, t);
1056  meTEprofileHE->Fill(en, t);
1057 
1058  if (useAllHistos_){
1059  if (depth == 1) meTE_HE1->Fill( en, t);
1060  else if (depth == 2) meTE_HE2->Fill( en, t);
1061  }
1062  }
1063  if(sub == 4 && (subdet_ == 4 || subdet_ == 5)) {
1064  meTimeHF->Fill(t);
1065  meRecHitsEnergyHF->Fill(en);
1066 
1067  meTE_Low_HF->Fill(en, t);
1068  meTE_HF->Fill(en, t);
1069  meTEprofileHF_Low->Fill(en, t);
1070  meTEprofileHF->Fill(en, t);
1071 
1072  if (useAllHistos_){
1073  if (depth == 1) meTE_HFL->Fill( en, t);
1074  else meTE_HFS->Fill( en, t);
1075  }
1076  }
1077  if(sub == 3 && (subdet_ == 3 || subdet_ == 5)) {
1078  meTimeHO->Fill(t);
1079  meRecHitsEnergyHO->Fill(en);
1080 
1081  meTE_HO->Fill( en, t);
1082  meTE_High_HO->Fill( en, t);
1083  meTEprofileHO->Fill(en, t);
1084  meTEprofileHO_High->Fill(en, t);
1085  }
1086  }
1087 
1088  if(imc != 0) {
1089  //Cone by depth are not drawn, the others are used for pion scan
1090  if (useAllHistos_){
1091  meEnConeEtaProfile_depth1->Fill(double(ietaMax1), HcalCone_d1);
1092  meEnConeEtaProfile_depth2->Fill(double(ietaMax2), HcalCone_d2);
1093  meEnConeEtaProfile_depth3->Fill(double(ietaMax3), HcalCone_d3);
1094  meEnConeEtaProfile_depth4->Fill(double(ietaMax4), HcalCone_d4);
1095  }
1096  meEnConeEtaProfile ->Fill(double(ietaMax), HcalCone); //
1097  meEnConeEtaProfile_E ->Fill(double(ietaMax), eEcalCone);
1098  meEnConeEtaProfile_EH ->Fill(double(ietaMax), HcalCone+eEcalCone);
1099  }
1100 
1101  // std::cout << "*** 7" << std::endl;
1102 
1103 
1104  // Single particle samples ONLY ! ======================================
1105  // Fill up some histos for "integrated" subsustems.
1106  // These are not drawn
1107  if(etype_ == 1 && useAllHistos_) {
1108 
1109  /*
1110  std::cout << "*** point 7-1" << " eta_MC, phi_MC clusEta, clusPhi = "
1111  << eta_MC << ", " << phi_MC << " "
1112  << clusEta << ", " << clusPhi
1113  << std::endl;
1114  */
1115 
1116 // double phidev = dPhiWsign(clusPhi, phi_MC);
1117 // meDeltaPhi->Fill(eta_MC, phidev);
1118 // double etadev = clusEta - eta_MC;
1119 // meDeltaEta->Fill(eta_MC, etadev);
1120 
1121  if(subdet_ == 1) {
1122  meSumRecHitsEnergyHB->Fill(eHcal);
1123  if(imc != 0) meSumRecHitsEnergyConeHB->Fill(eHcalConeHB);
1124  if(imc != 0) meNumRecHitsConeHB->Fill(double(nrechitsCone));
1125  meNumRecHitsThreshHB->Fill(double(nrechitsThresh));
1126  }
1127 
1128  if(subdet_ == 2) {
1129  meSumRecHitsEnergyHE->Fill(eHcal);
1130  if(imc != 0) meSumRecHitsEnergyConeHE->Fill(eHcalConeHE);
1131  if(imc != 0) meNumRecHitsConeHE->Fill(double(nrechitsCone));
1132  meNumRecHitsThreshHE->Fill(double(nrechitsThresh));
1133  }
1134 
1135  if(subdet_ == 3) {
1136  meSumRecHitsEnergyHO->Fill(eHcal);
1137  if(imc != 0) meSumRecHitsEnergyConeHO->Fill(eHcalConeHO);
1138  if(imc != 0) meNumRecHitsConeHO->Fill(double(nrechitsCone));
1139  meNumRecHitsThreshHO->Fill(double(nrechitsThresh));
1140  }
1141 
1142  if(subdet_ == 4) {
1143  if(eHcalConeHF > eps ) {
1144  meSumRecHitsEnergyHF ->Fill(eHcal);
1145  if(imc != 0) {
1146  meSumRecHitsEnergyConeHF ->Fill(eHcalConeHF);
1147  meNumRecHitsConeHF->Fill(double(nrechitsCone));
1148  meSumRecHitsEnergyConeHFL ->Fill(eHcalConeHFL);
1149  meSumRecHitsEnergyConeHFS ->Fill(eHcalConeHFS);
1150  }
1151  }
1152  }
1153 
1154  // std::cout << "*** 8" << std::endl;
1155 
1156 
1157  // Also combine with ECAL if needed
1158  if(subdet_ == 1 && ecalselector_ == "yes") {
1159 
1160  /*
1161  std::cout << "*** point 8-1"
1162  << " eEcalB " << eEcalB << " eHcal " << eHcal
1163  << " eEcalCone " << eEcalCone << " eHcalCone "
1164  << eHcalCone
1165  << " numrechitsEcal " << numrechitsEcal
1166  << std::endl;
1167 
1168  */
1169 
1170  meEcalHcalEnergyHB->Fill(eEcalB+eHcal);
1171  meEcalHcalEnergyConeHB->Fill(eEcalCone+eHcalCone);
1172  meNumEcalRecHitsConeHB->Fill(double(numrechitsEcal));
1173 
1174  }
1175 
1176  if(subdet_ == 2 && ecalselector_ == "yes"){
1177 
1178  /*
1179  std::cout << "*** point 8-2a"
1180  << " eEcalE " << eEcalE << " eHcal " << eHcal
1181  << " eEcalCone " << eEcalCone << " eHcalCone "
1182  << eHcalCone
1183  << " numrechitsEcal " << numrechitsEcal
1184  << std::endl;
1185  */
1186 
1187  meEcalHcalEnergyHE->Fill(eEcalE+eHcal);
1188  if(imc != 0) meEcalHcalEnergyConeHE->Fill(eEcalCone+eHcalCone);
1189  if(imc != 0) meNumEcalRecHitsConeHE->Fill(double(numrechitsEcal));
1190  }
1191 
1192  // Banana plots finally
1193  if(imc != 0) {
1194  if(subdet_ == 1 && ecalselector_ == "yes")
1195  meEnergyHcalVsEcalHB -> Fill(eEcalCone,eHcalCone);
1196  if(subdet_ == 2 && ecalselector_ == "yes")
1197  meEnergyHcalVsEcalHE -> Fill(eEcalCone,eHcalCone);
1198  }
1199  }
1200  }
1201  // std::cout << "*** 9" << std::endl;
1202 
1203  nevtot++;
1204 }
1205 
1206 
1209 
1210  using namespace edm;
1211 
1212 
1213  // initialize data vectors
1214  csub.clear();
1215  cen.clear();
1216  ceta.clear();
1217  cphi.clear();
1218  ctime.clear();
1219  cieta.clear();
1220  ciphi.clear();
1221  cdepth.clear();
1222  cz.clear();
1223  cstwd.clear();
1224  cauxstwd.clear();
1225  hcalHBSevLvlVec.clear();
1226  hcalHESevLvlVec.clear();
1227  hcalHFSevLvlVec.clear();
1228  hcalHOSevLvlVec.clear();
1229 
1230  if( subdet_ == 1 || subdet_ == 2 || subdet_ == 5 || subdet_ == 6 || subdet_ == 0) {
1231 
1232  //HBHE
1235 
1236  for (HBHERecHitCollection::const_iterator j=hbhecoll->begin(); j != hbhecoll->end(); j++) {
1237  HcalDetId cell(j->id());
1238  const CaloCellGeometry* cellGeometry =
1239  geometry->getSubdetectorGeometry (cell)->getGeometry (cell) ;
1240  double eta = cellGeometry->getPosition().eta () ;
1241  double phi = cellGeometry->getPosition().phi () ;
1242  double zc = cellGeometry->getPosition().z ();
1243  int sub = cell.subdet();
1244  int depth = cell.depth();
1245  int inteta = cell.ieta();
1246  if(inteta > 0) inteta -= 1;
1247  int intphi = cell.iphi()-1;
1248  double en = j->energy();
1249  double t = j->time();
1250  int stwd = j->flags();
1251  int auxstwd = j->aux();
1252 
1253  int serivityLevel = hcalSevLvl( (CaloRecHit*) &*j );
1254  if( cell.subdet()==HcalBarrel ){
1255  hcalHBSevLvlVec.push_back(serivityLevel);
1256  }else if (cell.subdet()==HcalEndcap ){
1257  hcalHESevLvlVec.push_back(serivityLevel);
1258  }
1259 
1260  if((iz > 0 && eta > 0.) || (iz < 0 && eta <0.) || iz == 0) {
1261 
1262  csub.push_back(sub);
1263  cen.push_back(en);
1264  ceta.push_back(eta);
1265  cphi.push_back(phi);
1266  ctime.push_back(t);
1267  cieta.push_back(inteta);
1268  ciphi.push_back(intphi);
1269  cdepth.push_back(depth);
1270  cz.push_back(zc);
1271  cstwd.push_back(stwd);
1272  cauxstwd.push_back(auxstwd);
1273  }
1274  }
1275 
1276  }
1277 
1278  if( subdet_ == 4 || subdet_ == 5 || subdet_ == 6 || subdet_ == 0) {
1279 
1280  //HF
1283 
1284  for (HFRecHitCollection::const_iterator j = hfcoll->begin(); j != hfcoll->end(); j++) {
1285  HcalDetId cell(j->id());
1286  const CaloCellGeometry* cellGeometry =
1287  geometry->getSubdetectorGeometry (cell)->getGeometry (cell) ;
1288  double eta = cellGeometry->getPosition().eta () ;
1289  double phi = cellGeometry->getPosition().phi () ;
1290  double zc = cellGeometry->getPosition().z ();
1291  int sub = cell.subdet();
1292  int depth = cell.depth();
1293  int inteta = cell.ieta();
1294  if(inteta > 0) inteta -= 1;
1295  int intphi = cell.iphi()-1;
1296  double en = j->energy();
1297  double t = j->time();
1298  int stwd = j->flags();
1299  int auxstwd = j->aux();
1300 
1301  int serivityLevel = hcalSevLvl( (CaloRecHit*) &*j );
1302  if( cell.subdet()==HcalForward ){
1303  hcalHFSevLvlVec.push_back(serivityLevel);
1304  }
1305 
1306  if((iz > 0 && eta > 0.) || (iz < 0 && eta <0.) || iz == 0) {
1307 
1308  csub.push_back(sub);
1309  cen.push_back(en);
1310  ceta.push_back(eta);
1311  cphi.push_back(phi);
1312  ctime.push_back(t);
1313  cieta.push_back(inteta);
1314  ciphi.push_back(intphi);
1315  cdepth.push_back(depth);
1316  cz.push_back(zc);
1317  cstwd.push_back(stwd);
1318  cauxstwd.push_back(auxstwd);
1319  }
1320  }
1321  }
1322 
1323  //HO
1324  if( subdet_ == 3 || subdet_ == 5 || subdet_ == 6 || subdet_ == 0) {
1325 
1328 
1329  for (HORecHitCollection::const_iterator j = hocoll->begin(); j != hocoll->end(); j++) {
1330  HcalDetId cell(j->id());
1331  const CaloCellGeometry* cellGeometry =
1332  geometry->getSubdetectorGeometry (cell)->getGeometry (cell) ;
1333  double eta = cellGeometry->getPosition().eta () ;
1334  double phi = cellGeometry->getPosition().phi () ;
1335  double zc = cellGeometry->getPosition().z ();
1336  int sub = cell.subdet();
1337  int depth = cell.depth();
1338  int inteta = cell.ieta();
1339  if(inteta > 0) inteta -= 1;
1340  int intphi = cell.iphi()-1;
1341  double t = j->time();
1342  double en = j->energy();
1343  int stwd = j->flags();
1344  int auxstwd = j->aux();
1345 
1346  int serivityLevel = hcalSevLvl( (CaloRecHit*) &*j );
1347  if( cell.subdet()==HcalOuter ){
1348  hcalHOSevLvlVec.push_back(serivityLevel);
1349  }
1350 
1351  if((iz > 0 && eta > 0.) || (iz < 0 && eta <0.) || iz == 0) {
1352  csub.push_back(sub);
1353  cen.push_back(en);
1354  ceta.push_back(eta);
1355  cphi.push_back(phi);
1356  ctime.push_back(t);
1357  cieta.push_back(inteta);
1358  ciphi.push_back(intphi);
1359  cdepth.push_back(depth);
1360  cz.push_back(zc);
1361  cstwd.push_back(stwd);
1362  cauxstwd.push_back(auxstwd);
1363  }
1364  }
1365  }
1366 }
1367 
1368 double HcalRecHitsAnalyzer::dR(double eta1, double phi1, double eta2, double phi2) {
1369  double PI = 3.1415926535898;
1370  double deltaphi= phi1 - phi2;
1371  if( phi2 > phi1 ) { deltaphi= phi2 - phi1;}
1372  if(deltaphi > PI) { deltaphi = 2.*PI - deltaphi;}
1373  double deltaeta = eta2 - eta1;
1374  double tmp = sqrt(deltaeta* deltaeta + deltaphi*deltaphi);
1375  return tmp;
1376 }
1377 
1378 double HcalRecHitsAnalyzer::phi12(double phi1, double en1, double phi2, double en2) {
1379  // weighted mean value of phi1 and phi2
1380 
1381  double tmp;
1382  double PI = 3.1415926535898;
1383  double a1 = phi1; double a2 = phi2;
1384 
1385  if( a1 > 0.5*PI && a2 < 0.) a2 += 2*PI;
1386  if( a2 > 0.5*PI && a1 < 0.) a1 += 2*PI;
1387  tmp = (a1 * en1 + a2 * en2)/(en1 + en2);
1388  if(tmp > PI) tmp -= 2.*PI;
1389 
1390  return tmp;
1391 
1392 }
1393 
1394 double HcalRecHitsAnalyzer::dPhiWsign(double phi1, double phi2) {
1395  // clockwise phi2 w.r.t phi1 means "+" phi distance
1396  // anti-clockwise phi2 w.r.t phi1 means "-" phi distance
1397 
1398  double PI = 3.1415926535898;
1399  double a1 = phi1; double a2 = phi2;
1400  double tmp = a2 - a1;
1401  if( a1*a2 < 0.) {
1402  if(a1 > 0.5 * PI) tmp += 2.*PI;
1403  if(a2 > 0.5 * PI) tmp -= 2.*PI;
1404  }
1405  return tmp;
1406 
1407 }
1408 
1410 
1411  const DetId id = hit->detid();
1412 
1413  const uint32_t recHitFlag = hit->flags();
1414  const uint32_t dbStatusFlag = theHcalChStatus->getValues(id)->getValue();
1415 
1416  int severityLevel = theHcalSevLvlComputer->getSeverityLevel(id, recHitFlag, dbStatusFlag);
1417 
1418  return severityLevel;
1419 
1420 }
1421 
1423 
MonitorElement * map_depth4
MonitorElement * sevLvl_HF
MonitorElement * ZS_seqHE1
MonitorElement * ZS_seqHF2
MonitorElement * ZS_nHB1
MonitorElement * occupancy_map_HF1
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * meTEprofileHB_High
MonitorElement * RecHit_StatusWord_HE
int i
Definition: DBlmapReader.cc:9
MonitorElement * meTE_HB2
std::vector< int > csub
MonitorElement * occupancy_seqHE1
MonitorElement * occupancy_vs_ieta_HE1
MonitorElement * meTimeHF
std::vector< double > cphi
MonitorElement * occupancy_map_HE3
MonitorElement * emean_seqHE3
std::vector< int > hcalHOSevLvlVec
MonitorElement * RMS_vs_ieta_HE2
double dR(double eta1, double phi1, double eta2, double phi2)
MonitorElement * RecHit_StatusWord_HF
virtual void analyze(edm::Event const &ev, edm::EventSetup const &c)
MonitorElement * RMS_seq_HE3
MonitorElement * meSumRecHitsEnergyConeHO
MonitorElement * sevLvl_HE
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:717
edm::InputTag theHORecHitCollectionLabel
#define PI
edm::InputTag theHFRecHitCollectionLabel
MonitorElement * RecHit_Aux_StatusWord_HO
MonitorElement * RMS_seq_HE2
MonitorElement * RMS_vs_ieta_HB1
edm::InputTag theHBHERecHitCollectionLabel
MonitorElement * ZS_nHE2
double dPhiWsign(double phi1, double phi2)
const DetId & detid() const
Definition: CaloRecHit.h:22
MonitorElement * meNumEcalRecHitsConeHE
MonitorElement * ZS_HB2
MonitorElement * meTE_Low_HE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
double emap_min[82][72][4][4]
MonitorElement * emean_vs_ieta_HF2
MonitorElement * occupancy_map_HF2
MonitorElement * ZS_seqHB2
std::vector< int > cdepth
MonitorElement * meSumRecHitsEnergyHB
int hcalSevLvl(const CaloRecHit *hit)
MonitorElement * meSumRecHitsEnergyHF
std::vector< EcalRecHit >::const_iterator const_iterator
MonitorElement * RMS_seq_HF2
MonitorElement * meSumRecHitsEnergyConeHF
std::vector< int > hcalHBSevLvlVec
MonitorElement * meEnConeEtaProfile_depth1
MonitorElement * occupancy_map_HO
MonitorElement * occupancy_seqHO
std::vector< double > ceta
MonitorElement * ZS_nHO
MonitorElement * occupancy_seqHF2
MonitorElement * occupancy_vs_ieta_HF1
T eta() const
MonitorElement * emap_depth4
MonitorElement * emean_vs_ieta_HB2
MonitorElement * meEnConeEtaProfile_EH
std::vector< int > hcalHESevLvlVec
double phi12(double phi1, double en1, double phi2, double en2)
MonitorElement * emean_vs_ieta_HB1
MonitorElement * emean_seqHE1
MonitorElement * meTE_Low_HB
MonitorElement * meTEprofileHF_Low
MonitorElement * ZS_nHB2
const HcalSeverityLevelComputer * theHcalSevLvlComputer
MonitorElement * meTE_HB
MonitorElement * meSumRecHitsEnergyConeHB
MonitorElement * emap_depth1
MonitorElement * RMS_vs_ieta_HE3
void Fill(long long x)
MonitorElement * RMS_vs_ieta_HB2
MonitorElement * ZS_HF1
MonitorElement * sevLvl_HO
MonitorElement * ZS_nHE1
virtual void fillRecHitsTmp(int subdet_, edm::Event const &ev)
MonitorElement * occupancy_seqHF1
MonitorElement * meEcalHcalEnergyHB
MonitorElement * emean_seqHB1
MonitorElement * meEcalHcalEnergyHE
MonitorElement * ZS_HB1
MonitorElement * emean_seqHF2
MonitorElement * meSumRecHitsEnergyConeHE
MonitorElement * meTE_HO
MonitorElement * occupancy_seqHB2
MonitorElement * RMS_vs_ieta_HF2
const HcalChannelQuality * theHcalChStatus
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * meEnConeEtaProfile_E
T sqrt(T t)
Definition: SSEVec.h:46
MonitorElement * meTE_HFL
MonitorElement * meTEprofileHO
MonitorElement * meTEprofileHB
uint32_t flags() const
Definition: CaloRecHit.h:23
MonitorElement * RMS_vs_ieta_HE1
MonitorElement * ZS_HE1
MonitorElement * occupancy_map_HB1
MonitorElement * meTE_High_HO
MonitorElement * meRecHitsEnergyHO
int j
Definition: DBlmapReader.cc:9
MonitorElement * occupancy_seqHB1
MonitorElement * meTE_HE2
MonitorElement * meDeltaEta
MonitorElement * meTE_HF
std::vector< uint32_t > cauxstwd
MonitorElement * emap_depth3
MonitorElement * ZS_nHF2
MonitorElement * occupancy_vs_ieta_HO
MonitorElement * occupancy_vs_ieta_HE2
MonitorElement * meTEprofileHE_Low
MonitorElement * e_hfl
MonitorElement * RecHit_StatusWord_HO
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
Definition: DQMStore.cc:1031
MonitorElement * meRecHitsEnergyHB
MonitorElement * ZS_seqHO
std::vector< int > ciphi
MonitorElement * occupancy_vs_ieta_HB2
MonitorElement * RMS_seq_HF1
MonitorElement * emean_vs_ieta_HO
MonitorElement * ZS_seqHE3
MonitorElement * sevLvl_HB
MonitorElement * meDeltaPhi
std::vector< double > cz
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
MonitorElement * occupancy_seqHE3
MonitorElement * meNumRecHitsThreshHE
tuple conf
Definition: dbtoconf.py:185
MonitorElement * map_ecal
MonitorElement * map_depth3
MonitorElement * meTimeHE
std::vector< int > cieta
MonitorElement * meEcalHcalEnergyConeHE
MonitorElement * meSumRecHitsEnergyHE
MonitorElement * meTimeHO
MonitorElement * ZS_seqHF1
MonitorElement * emean_vs_ieta_HE1
MonitorElement * meRecHitsEnergyHF
Definition: DetId.h:20
MonitorElement * occupancy_vs_ieta_HB1
MonitorElement * ZS_HF2
MonitorElement * RMS_seq_HB1
HcalRecHitsAnalyzer(edm::ParameterSet const &conf)
MonitorElement * meEnConeEtaProfile
MonitorElement * meTEprofileHE
std::vector< uint32_t > cstwd
MonitorElement * RecHit_Aux_StatusWord_HB
MonitorElement * map_depth2
const T & get() const
Definition: EventSetup.h:55
MonitorElement * occupancy_map_HE1
MonitorElement * meEcalHcalEnergyConeHB
MonitorElement * emean_seqHE2
int getSeverityLevel(const DetId &myid, const uint32_t &myflag, const uint32_t &mystatus) const
MonitorElement * meNumRecHitsConeHO
MonitorElement * emean_vs_ieta_HE3
MonitorElement * ZS_nHF1
MonitorElement * ZS_nHE3
T const * product() const
Definition: Handle.h:74
MonitorElement * emean_seqHO
MonitorElement * meNumRecHitsConeHB
MonitorElement * meTE_HE1
MonitorElement * RecHit_StatusWord_HF67
MonitorElement * meNumRecHitsThreshHB
MonitorElement * occupancy_vs_ieta_HE3
MonitorElement * RMS_seq_HO
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
MonitorElement * emean_seqHF1
MonitorElement * ZS_seqHE2
MonitorElement * ZS_seqHB1
MonitorElement * meTE_High_HB
MonitorElement * occupancy_map_HB2
MonitorElement * emean_vs_ieta_HE2
MonitorElement * emean_vs_ieta_HF1
std::vector< int > hcalHFSevLvlVec
MonitorElement * RecHit_StatusWord_HB
MonitorElement * map_depth1
MonitorElement * meTEprofileHO_High
MonitorElement * meNumRecHitsThreshHO
MonitorElement * meEnConeEtaProfile_depth4
MonitorElement * meEnConeEtaProfile_depth2
MonitorElement * ZS_HO
MonitorElement * meEnergyHcalVsEcalHE
MonitorElement * meTEprofileHB_Low
std::vector< double > ctime
std::vector< double > cen
MonitorElement * occupancy_vs_ieta_HF2
MonitorElement * RMS_vs_ieta_HF1
MonitorElement * occupancy_seqHE2
MonitorElement * meNumRecHitsConeHF
MonitorElement * meTimeHB
MonitorElement * ZS_HE3
MonitorElement * meTEprofileHF
MonitorElement * occupancy_map_HE2
MonitorElement * RecHit_Aux_StatusWord_HF
MonitorElement * RecHit_Aux_StatusWord_HE
MonitorElement * e_hfs
uint32_t getValue() const
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:845
const Item * getValues(DetId fId) const
MonitorElement * meEnConeEtaProfile_depth3
MonitorElement * meEnergyHcalVsEcalHB
MonitorElement * emap_depth2
MonitorElement * RMS_vs_ieta_HO
MonitorElement * RMS_seq_HB2
MonitorElement * emean_seqHB2
MonitorElement * meNumRecHitsConeHE
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
edm::ESHandle< CaloGeometry > geometry
MonitorElement * ZS_HE2
MonitorElement * RMS_seq_HE1
MonitorElement * meSumRecHitsEnergyConeHFL
MonitorElement * meTE_HE
MonitorElement * meNumEcalRecHitsConeHB
MonitorElement * meTE_HB1
MonitorElement * meSumRecHitsEnergyHO
MonitorElement * meSumRecHitsEnergyConeHFS
MonitorElement * meTE_HFS
Definition: DDAxes.h:10
MonitorElement * meRecHitsEnergyHE
MonitorElement * meTE_Low_HF