CMS 3D CMS Logo

AnalyzerMinbias.cc
Go to the documentation of this file.
1 // system include files
2 #include <memory>
3 #include <string>
4 #include <iostream>
5 #include <fstream>
6 #include <sstream>
7 #include <vector>
8 #include <map>
9 
10 // user include files
15 
39 
41 
51 
56 
57 #include "TFile.h"
58 #include "TH1.h"
59 #include "TH2.h"
60 #include "TTree.h"
61 
62 namespace HcalMinbias {
63 }
64 
65 // constructors and destructor
67 
68 public:
69  explicit AnalyzerMinbias(const edm::ParameterSet&);
70  ~AnalyzerMinbias();
71 
72  virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
73  virtual void beginJob() override;
74  virtual void endJob() override;
75 
76 private:
77 
78  void analyzeHcal(const HcalRespCorrs* myRecalib,
79  const HBHERecHitCollection& HithbheNS,
80  const HBHERecHitCollection& HithbheMB,
81  const HFRecHitCollection& HithfNS,
82  const HFRecHitCollection& HithfMB, int algoBit, bool fill);
83 
84  struct myInfo{
85  double theMB0, theMB1, theMB2, theMB3, theMB4;
86  double theNS0, theNS1, theNS2, theNS3, theNS4;
87  double theDif0, theDif1, theDif2, runcheck;
88  myInfo() {
89  theMB0 = theMB1 = theMB2 = theMB3 = theMB4 = 0;
90  theNS0 = theNS1 = theNS2 = theNS3 = theNS4 = 0;
91  theDif0 = theDif1 = theDif2 = runcheck = 0;
92  }
93  };
94 
95  // ----------member data ---------------------------
96  std::string fOutputFileName, hcalfile_;
97  std::ofstream *myout_hcal;
98  TFile* hOutputFile ;
99  TTree* myTree;
100  TH1D *h_Noise[4], *h_Signal[4];
101  bool runNZS_, theRecalib_, ignoreL1_;
102  double rnnum;
103 
104  // Root tree members
105  double rnnumber;
106  int mydet, mysubd, depth, iphi, ieta, cells, trigbit;
107  float phi, eta;
108  float mom0_MB, mom1_MB, mom2_MB, mom3_MB, mom4_MB, occup;
109  float mom0_Noise, mom1_Noise, mom2_Noise, mom3_Noise, mom4_Noise;
110  float mom0_Diff, mom1_Diff, mom2_Diff, mom3_Diff, mom4_Diff;
111 
112  std::map<std::pair<int,HcalDetId>,myInfo> myMap_;
118 };
119 
121 
122  // get name of output file with histogramms
123  fOutputFileName = iConfig.getUntrackedParameter<std::string>("HistOutFile");
124 
125  // get token names of modules, producing object collections
126  tok_hbherecoMB_ = consumes<HBHERecHitCollection>(iConfig.getParameter<edm::InputTag>("hbheInputMB"));
127  tok_horecoMB_ = consumes<HORecHitCollection>(iConfig.getParameter<edm::InputTag>("hoInputMB"));
128  tok_hfrecoMB_ = consumes<HFRecHitCollection>(iConfig.getParameter<edm::InputTag>("hfInputMB"));
129 
130  tok_hbherecoNoise_= consumes<HBHERecHitCollection>(iConfig.getParameter<edm::InputTag>("hbheInputNoise"));
131  tok_horecoNoise_ = consumes<HORecHitCollection>(iConfig.getParameter<edm::InputTag>("hoInputNoise"));
132  tok_hfrecoNoise_ = consumes<HFRecHitCollection>(iConfig.getParameter<edm::InputTag>("hfInputNoise"));
133 
134  theRecalib_ = iConfig.getParameter<bool>("Recalib");
135  ignoreL1_ = iConfig.getUntrackedParameter<bool>("IgnoreL1", true);
136  runNZS_ = iConfig.getUntrackedParameter<bool>("RunNZS", true);
137 
138 
139  tok_hbheNormal_ = consumes<HBHERecHitCollection>(edm::InputTag("hbhereco"));
140  tok_hltL1GtMap_ = consumes<L1GlobalTriggerObjectMapRecord>(edm::InputTag("hltL1GtObjectMap"));
141 }
142 
144 
146 
147  std::string det[4] = {"HB", "HE", "HO", "HF"};
148  char name[80], title[80];
149  for (int subd=0; subd<4; ++subd) {
150  sprintf(name,"Noise_%s",det[subd].c_str());
151  sprintf(title,"Energy Distribution for Noise in %s",det[subd].c_str());
152  h_Noise[subd] = new TH1D(name,title,100,-10.,10.);
153  sprintf(name,"Signal_%s",det[subd].c_str());
154  sprintf(title,"Energy Distribution for Signal in %s",det[subd].c_str());
155  h_Signal[subd] = new TH1D(name,title,100,-10.,10.);
156  }
157 
158  hOutputFile = new TFile(fOutputFileName.c_str(), "RECREATE") ;
159  myTree = new TTree("RecJet","RecJet Tree");
160  myTree->Branch("mydet", &mydet, "mydet/I");
161  myTree->Branch("mysubd", &mysubd, "mysubd/I");
162  myTree->Branch("cells", &cells, "cells");
163  myTree->Branch("depth", &depth, "depth/I");
164  myTree->Branch("ieta", &ieta, "ieta/I");
165  myTree->Branch("iphi", &iphi, "iphi/I");
166  myTree->Branch("eta", &eta, "eta/F");
167  myTree->Branch("phi", &phi, "phi/F");
168  myTree->Branch("mom0_MB", &mom0_MB, "mom0_MB/F");
169  myTree->Branch("mom1_MB", &mom1_MB, "mom1_MB/F");
170  myTree->Branch("mom2_MB", &mom2_MB, "mom2_MB/F");
171  myTree->Branch("mom3_MB", &mom3_MB, "mom3_MB/F");
172  myTree->Branch("mom4_MB", &mom4_MB, "mom4_MB/F");
173  myTree->Branch("mom0_Noise", &mom0_Noise, "mom0_Noise/F");
174  myTree->Branch("mom1_Noise", &mom1_Noise, "mom1_Noise/F");
175  myTree->Branch("mom2_Noise", &mom2_Noise, "mom2_Noise/F");
176  myTree->Branch("mom3_Noise", &mom3_Noise, "mom3_Noise/F");
177  myTree->Branch("mom4_Noise", &mom4_Noise, "mom4_Noise/F");
178  myTree->Branch("mom0_Diff", &mom0_Diff, "mom0_Diff/F");
179  myTree->Branch("mom1_Diff", &mom1_Diff, "mom1_Diff/F");
180  myTree->Branch("mom2_Diff", &mom2_Diff, "mom2_Diff/F");
181  myTree->Branch("occup", &occup, "occup/F");
182  myTree->Branch("trigbit", &trigbit, "trigbit/I");
183  myTree->Branch("rnnumber", &rnnumber, "rnnumber/D");
184 
185  myMap_.clear();
186 }
187 
188 // EndJob
189 //
191 
192  int ii=0;
193  for (std::map<std::pair<int,HcalDetId>,myInfo>::const_iterator itr=myMap_.begin(); itr != myMap_.end(); ++itr) {
194  LogDebug("AnalyzerMB") << "Fired trigger bit number " << itr->first.first;
195  myInfo info = itr->second;
196  if (info.theMB0 > 0) {
197  mom0_MB = info.theMB0;
198  mom1_MB = info.theMB1;
199  mom2_MB = info.theMB2;
200  mom3_MB = info.theMB3;
201  mom4_MB = info.theMB4;
202  mom0_Noise = info.theNS0;
203  mom1_Noise = info.theNS1;
204  mom2_Noise = info.theNS2;
205  mom3_Noise = info.theNS3;
206  mom4_Noise = info.theNS4;
207  mom0_Diff = info.theDif0;
208  mom1_Diff = info.theDif1;
209  mom2_Diff = info.theDif2;
210  rnnumber = info.runcheck;
211  trigbit = itr->first.first;
212  mysubd = itr->first.second.subdet();
213  depth = itr->first.second.depth();
214  ieta = itr->first.second.ieta();
215  iphi = itr->first.second.iphi();
216 
217  LogDebug("AnalyzerMB") << " Result= " << trigbit << " " << mysubd
218  << " " << ieta << " " << iphi << " mom0 "
219  << mom0_MB << " mom1 " << mom1_MB << " mom2 "
220  << mom2_MB << " mom3 " << mom3_MB << " mom4 "
221  << mom4_MB << " mom0_Noise " << mom0_Noise
222  << " mom1_Noise " << mom1_Noise << " mom2_Noise "
223  << mom2_Noise << " mom3_Noise " << mom3_Noise
224  << " mom4_Noise " << mom4_Noise << " mom0_Diff "
225  << mom0_Diff << " mom1_Diff " << mom1_Diff
226  << " mom2_Diff " << mom2_Diff;
227  myTree->Fill();
228  ii++;
229  }
230  }
231  cells = ii;
232  LogDebug("AnalyzerMB") << "cells" << " " << cells;
233  hOutputFile->Write();
234  hOutputFile->cd();
235  myTree->Write();
236  for(int i=0; i<4; i++){
237  h_Noise[i]->Write();
238  h_Signal[i]->Write();
239  }
240  hOutputFile->Close() ;
241 }
242 
243 
244 //
245 // member functions
246 //
247 
248 // ------------ method called to produce the data ------------
249 
251 
252  rnnum = (float)iEvent.run();
253  const HcalRespCorrs* myRecalib=0;
254  if (theRecalib_) {
255  edm::ESHandle <HcalRespCorrs> recalibCorrs;
256  iSetup.get<HcalRespCorrsRcd>().get("recalibrate",recalibCorrs);
257  myRecalib = recalibCorrs.product();
258  } // theRecalib
259 
261  iEvent.getByToken(tok_hbheNormal_, hbheNormal);
262  if (!hbheNormal.isValid()) {
263  edm::LogInfo("AnalyzerMB") << " hbheNormal failed";
264  } else {
265  edm::LogInfo("AnalyzerMB") << " The size of the normal collection "
266  << hbheNormal->size();
267  }
268 
270  iEvent.getByToken(tok_hbherecoNoise_, hbheNS);
271  if (!hbheNS.isValid()) {
272  edm::LogWarning("AnalyzerMB") << "HcalCalibAlgos: Error! can't get hbheNoise product!";
273  return ;
274  }
275  const HBHERecHitCollection HithbheNS = *(hbheNS.product());
276  edm::LogInfo("AnalyzerMB") << "HBHE NS size of collection " << HithbheNS.size();
277  if (runNZS_ && HithbheNS.size() != 5184) {
278  edm::LogWarning("AnalyzerMB") << "HBHE NS problem " << rnnum << " size "
279  << HithbheNS.size();
280  return;
281  }
282 
284  iEvent.getByToken(tok_hbherecoMB_, hbheMB);
285  if (!hbheMB.isValid()) {
286  edm::LogWarning("AnalyzerMB") << "HcalCalibAlgos: Error! can't get hbhe product!";
287  return ;
288  }
289  const HBHERecHitCollection HithbheMB = *(hbheMB.product());
290  edm::LogInfo("AnalyzerMB") << "HBHE MB size of collection " << HithbheMB.size();
291  if (runNZS_ && HithbheMB.size() != 5184) {
292  edm::LogWarning("AnalyzerMB") << "HBHE problem " << rnnum << " size "
293  << HithbheMB.size();
294  return;
295  }
296 
298  iEvent.getByToken(tok_hfrecoNoise_, hfNS);
299  if (!hfNS.isValid()) {
300  edm::LogWarning("AnalyzerMB") << "HcalCalibAlgos: Error! can't get hfNoise product!";
301  return ;
302  }
303  const HFRecHitCollection HithfNS = *(hfNS.product());
304  edm::LogInfo("AnalyzerMB") << "HF NS size of collection "<< HithfNS.size();
305  if (runNZS_ && HithfNS.size() != 1728) {
306  edm::LogWarning("AnalyzerMB") << "HF NS problem " << rnnum << " size "
307  << HithfNS.size();
308  return;
309  }
310 
312  iEvent.getByToken(tok_hfrecoMB_, hfMB);
313  if (!hfMB.isValid()) {
314  edm::LogWarning("AnalyzerMB") << "HcalCalibAlgos: Error! can't get hf product!";
315  return ;
316  }
317  const HFRecHitCollection HithfMB = *(hfMB.product());
318  edm::LogInfo("AnalyzerMB") << "HF MB size of collection " << HithfMB.size();
319  if(runNZS_ && HithfMB.size() != 1728) {
320  edm::LogWarning("AnalyzerMB") << "HF problem " << rnnum << " size "
321  << HithfMB.size();
322  return;
323  }
324 
325  if (ignoreL1_) {
326  analyzeHcal(myRecalib,HithbheNS,HithbheMB,HithfNS,HithfMB,1,true);
327  } else {
329  iEvent.getByToken(tok_hltL1GtMap_, gtObjectMapRecord);
330  if (gtObjectMapRecord.isValid()) {
331  const std::vector<L1GlobalTriggerObjectMap>& objMapVec = gtObjectMapRecord->gtObjectMap();
332  int ii(0);
333  bool ok(false), fill(true);
334  for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itMap = objMapVec.begin();
335  itMap != objMapVec.end(); ++itMap, ++ii) {
336  bool resultGt = (*itMap).algoGtlResult();
337  if (resultGt == 1) {
338  ok = true;
339  int algoBit = (*itMap).algoBitNumber();
340  analyzeHcal(myRecalib,HithbheNS,HithbheMB,HithfNS,HithfMB,algoBit,fill);
341  fill = false;
342  std::string algoNameStr = (*itMap).algoName();
343  LogDebug("AnalyzerMB") << "Trigger[" << ii << "] " << algoNameStr
344  << " bit " << algoBit << " entered";
345  }
346  }
347  if (!ok) edm::LogInfo("AnalyzerMB") << "No passed L1 Triggers";
348  }
349  }
350 }
351 
353  const HBHERecHitCollection& HithbheNS,
354  const HBHERecHitCollection& HithbheMB,
355  const HFRecHitCollection& HithfNS,
356  const HFRecHitCollection& HithfMB,
357  int algoBit, bool fill) {
358 
359  // Noise part for HB HE
360  std::map<std::pair<int,HcalDetId>,myInfo> tmpMap;
361  tmpMap.clear();
362 
363  for (HBHERecHitCollection::const_iterator hbheItr=HithbheNS.begin();
364  hbheItr!=HithbheNS.end(); hbheItr++) {
365 
366  // Recalibration of energy
367  float icalconst=1.;
368  DetId mydetid = hbheItr->id().rawId();
369  if (theRecalib_) icalconst=myRecalib->getValues(mydetid)->getValue();
370 
371  HBHERecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
372  double energyhit = aHit.energy();
373 
374  DetId id = (*hbheItr).detid();
375  HcalDetId hid=HcalDetId(id);
376  std::map<std::pair<int,HcalDetId>,myInfo>::iterator itr1 = myMap_.find(std::pair<int,HcalDetId>(algoBit,hid));
377  if (itr1 == myMap_.end()) {
378  myInfo info;
379  myMap_[std::pair<int,HcalDetId>(algoBit,hid)] = info;
380  itr1 = myMap_.find(std::pair<int,HcalDetId>(algoBit,hid));
381  }
382  itr1->second.theNS0++;
383  itr1->second.theNS1 += energyhit;
384  itr1->second.theNS2 += (energyhit*energyhit);
385  itr1->second.theNS3 += (energyhit*energyhit*energyhit);
386  itr1->second.theNS4 += (energyhit*energyhit*energyhit*energyhit);
387  itr1->second.runcheck = rnnum;
388  if (fill) h_Noise[hid.subdet()-1]->Fill(energyhit);
389 
390  std::map<std::pair<int,HcalDetId>,myInfo>::iterator itr2 = tmpMap.find(std::pair<int,HcalDetId>(algoBit,hid));
391  if (itr2 == tmpMap.end()) {
392  myInfo info;
393  tmpMap[std::pair<int,HcalDetId>(algoBit,hid)] = info;
394  itr2 = tmpMap.find(std::pair<int,HcalDetId>(algoBit,hid));
395  }
396  itr2->second.theNS0++;
397  itr2->second.theNS1 += energyhit;
398  itr2->second.theNS2 += (energyhit*energyhit);
399  itr2->second.theNS3 += (energyhit*energyhit*energyhit);
400  itr2->second.theNS4 += (energyhit*energyhit*energyhit*energyhit);
401  itr2->second.runcheck = rnnum;
402 
403  } // HBHE_NS
404 
405  // Signal part for HB HE
406 
407  for (HBHERecHitCollection::const_iterator hbheItr=HithbheMB.begin();
408  hbheItr!=HithbheMB.end(); hbheItr++) {
409  // Recalibration of energy
410  float icalconst=1.;
411  DetId mydetid = hbheItr->id().rawId();
412  if (theRecalib_) icalconst=myRecalib->getValues(mydetid)->getValue();
413 
414  HBHERecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
415  double energyhit = aHit.energy();
416 
417  DetId id = (*hbheItr).detid();
418  HcalDetId hid=HcalDetId(id);
419 
420  std::map<std::pair<int,HcalDetId>,myInfo>::iterator itr1 = myMap_.find(std::pair<int,HcalDetId>(algoBit,hid));
421  std::map<std::pair<int,HcalDetId>,myInfo>::iterator itr2 = tmpMap.find(std::pair<int,HcalDetId>(algoBit,hid));
422 
423  if (itr1 == myMap_.end()) {
424  myInfo info;
425  myMap_[std::pair<int,HcalDetId>(algoBit,hid)] = info;
426  itr1 = myMap_.find(std::pair<int,HcalDetId>(algoBit,hid));
427  }
428  itr1->second.theMB0++;
429  itr1->second.theDif0 = 0;
430  itr1->second.theMB1 += energyhit;
431  itr1->second.theMB2 += (energyhit*energyhit);
432  itr1->second.theMB3 += (energyhit*energyhit*energyhit);
433  itr1->second.theMB4 += (energyhit*energyhit*energyhit*energyhit);
434  itr1->second.runcheck = rnnum;
435  float mydiff = 0.0;
436  if (itr2 !=tmpMap.end()) {
437  mydiff = energyhit - (itr2->second.theNS1);
438  itr1->second.theDif0++;
439  itr1->second.theDif1 += mydiff;
440  itr1->second.theDif2 += (mydiff*mydiff);
441  if (fill) h_Signal[hid.subdet()-1]->Fill(mydiff);
442  }
443  } // HBHE_MB
444 
445  // HF
446 
447  for (HFRecHitCollection::const_iterator hbheItr=HithfNS.begin();
448  hbheItr!=HithfNS.end(); hbheItr++) {
449  // Recalibration of energy
450  float icalconst=1.;
451  DetId mydetid = hbheItr->id().rawId();
452  if (theRecalib_) icalconst=myRecalib->getValues(mydetid)->getValue();
453 
454  HFRecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
455  double energyhit = aHit.energy();
456  // Remove PMT hits
457  if(fabs(energyhit) > 40. ) continue;
458  DetId id = (*hbheItr).detid();
459  HcalDetId hid=HcalDetId(id);
460 
461  std::map<std::pair<int,HcalDetId>,myInfo>::iterator itr1 = myMap_.find(std::pair<int,HcalDetId>(algoBit,hid));
462 
463  if (itr1 == myMap_.end()) {
464  myInfo info;
465  myMap_[std::pair<int,HcalDetId>(algoBit,hid)] = info;
466  itr1 = myMap_.find(std::pair<int,HcalDetId>(algoBit,hid));
467  }
468  itr1->second.theNS0++;
469  itr1->second.theNS1 += energyhit;
470  itr1->second.theNS2 += (energyhit*energyhit);
471  itr1->second.theNS3 += (energyhit*energyhit*energyhit);
472  itr1->second.theNS4 += (energyhit*energyhit*energyhit*energyhit);
473  itr1->second.runcheck = rnnum;
474  if (fill) h_Noise[hid.subdet()-1]->Fill(energyhit);
475 
476  std::map<std::pair<int,HcalDetId>,myInfo>::iterator itr2 = tmpMap.find(std::pair<int,HcalDetId>(algoBit,hid));
477  if (itr2 == tmpMap.end()) {
478  myInfo info;
479  tmpMap[std::pair<int,HcalDetId>(algoBit,hid)] = info;
480  itr2 = tmpMap.find(std::pair<int,HcalDetId>(algoBit,hid));
481  }
482  itr2->second.theNS0++;
483  itr2->second.theNS1 += energyhit;
484  itr2->second.theNS2 += (energyhit*energyhit);
485  itr2->second.theNS3 += (energyhit*energyhit*energyhit);
486  itr2->second.theNS4 += (energyhit*energyhit*energyhit*energyhit);
487  itr2->second.runcheck = rnnum;
488 
489  } // HF_NS
490 
491 
492  // Signal part for HF
493 
494  for (HFRecHitCollection::const_iterator hbheItr=HithfMB.begin();
495  hbheItr!=HithfMB.end(); hbheItr++) {
496  // Recalibration of energy
497  float icalconst=1.;
498  DetId mydetid = hbheItr->id().rawId();
499  if (theRecalib_) icalconst=myRecalib->getValues(mydetid)->getValue();
500  HFRecHit aHit(hbheItr->id(),hbheItr->energy()*icalconst,hbheItr->time());
501 
502  double energyhit = aHit.energy();
503  // Remove PMT hits
504  if(fabs(energyhit) > 40. ) continue;
505 
506  DetId id = (*hbheItr).detid();
507  HcalDetId hid=HcalDetId(id);
508 
509  std::map<std::pair<int,HcalDetId>,myInfo>::iterator itr1 = myMap_.find(std::pair<int,HcalDetId>(algoBit,hid));
510  std::map<std::pair<int,HcalDetId>,myInfo>::iterator itr2 = tmpMap.find(std::pair<int,HcalDetId>(algoBit,hid));
511 
512  if (itr1 == myMap_.end()) {
513  myInfo info;
514  myMap_[std::pair<int,HcalDetId>(algoBit,hid)] = info;
515  itr1 = myMap_.find(std::pair<int,HcalDetId>(algoBit,hid));
516  }
517  itr1->second.theMB0++;
518  itr1->second.theDif0 = 0;
519  itr1->second.theMB1 += energyhit;
520  itr1->second.theMB2 += (energyhit*energyhit);
521  itr1->second.theMB3 += (energyhit*energyhit*energyhit);
522  itr1->second.theMB4 += (energyhit*energyhit*energyhit*energyhit);
523  itr1->second.runcheck = rnnum;
524  float mydiff = 0.0;
525  if (itr2 !=tmpMap.end()) {
526  mydiff = energyhit - (itr2->second.theNS1);
527  itr1->second.theDif0++;
528  itr1->second.theDif1 += mydiff;
529  itr1->second.theDif2 += (mydiff*mydiff);
530  if (fill) h_Signal[hid.subdet()-1]->Fill(mydiff);
531  }
532  }
533 }
534 
535 //define this as a plug-in
#define LogDebug(id)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< HBHERecHitCollection > tok_hbheNormal_
static const TGPicture * info(bool iBackgroundIsBlack)
edm::EDGetTokenT< HFRecHitCollection > tok_hfrecoNoise_
HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:49
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:460
def analyze(function, filename, filter=None)
Definition: Profiling.py:11
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
std::string hcalfile_
std::vector< HBHERecHit >::const_iterator const_iterator
const Item * getValues(DetId fId, bool throwOnFail=true) const
AnalyzerMinbias(const edm::ParameterSet &)
edm::EDGetTokenT< HORecHitCollection > tok_horecoNoise_
virtual void beginJob() override
void beginJob()
Definition: Breakpoints.cc:15
const std::vector< L1GlobalTriggerObjectMap > & gtObjectMap() const
get / set the vector of object maps
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
std::map< std::pair< int, HcalDetId >, myInfo > myMap_
int iEvent
Definition: GenABIO.cc:230
float energy() const
Definition: CaloRecHit.h:17
edm::EDGetTokenT< L1GlobalTriggerObjectMapRecord > tok_hltL1GtMap_
RunNumber_t run() const
Definition: Event.h:94
bool isValid() const
Definition: HandleBase.h:74
std::ofstream * myout_hcal
ii
Definition: cuy.py:588
const_iterator end() const
Definition: DetId.h:18
T const * product() const
Definition: Handle.h:81
const T & get() const
Definition: EventSetup.h:55
return(e1-e2)*(e1-e2)+dp *dp
float getValue() const
Definition: HcalRespCorr.h:20
size_type size() const
virtual void endJob() override
void analyzeHcal(const HcalRespCorrs *myRecalib, const HBHERecHitCollection &HithbheNS, const HBHERecHitCollection &HithbheMB, const HFRecHitCollection &HithfNS, const HFRecHitCollection &HithfMB, int algoBit, bool fill)
T const * product() const
Definition: ESHandle.h:86
edm::EDGetTokenT< HBHERecHitCollection > tok_hbherecoNoise_
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
const_iterator begin() const