CMS 3D CMS Logo

StudyCaloGen.cc
Go to the documentation of this file.
4 
10 
13 
21 //TFile Service
24 
31 
34 
36 
40 // track associator
42 
43 // root objects
44 #include "TROOT.h"
45 #include "TSystem.h"
46 #include "TFile.h"
47 #include "TH1I.h"
48 #include "TH2D.h"
49 #include "TTree.h"
50 
51 #include <cmath>
52 #include <iostream>
53 #include <iomanip>
54 #include <list>
55 #include <vector>
56 
57 class StudyCaloGen : public edm::one::EDAnalyzer<edm::one::SharedResources> {
58 public:
59  explicit StudyCaloGen(const edm::ParameterSet &);
60 
61  static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
62 
63 private:
64  void beginJob() override;
65  void analyze(const edm::Event &, const edm::EventSetup &) override;
66  void endJob() override {}
67 
68  void fillTrack(
69  GlobalPoint &posVec, math::XYZTLorentzVector &momVec, GlobalPoint &posECAL, int pdgId, bool okECAL, bool accpet);
70  void fillIsolatedTrack(math::XYZTLorentzVector &momVec, GlobalPoint &posECAL, int pdgId);
71  void bookHistograms();
72  void clearTreeVectors();
73  int particleCode(int);
74 
75  static constexpr int NPBins_ = 3;
76  static constexpr int NEtaBins_ = 4;
77  static constexpr int PBins_ = 32, EtaBins_ = 60, Particles = 12;
83 
86 
87  bool useHepMC_;
90 
91  TH1I *h_NEventProc;
92  TH2D *h_pEta[Particles];
93  TTree *tree_;
94 
95  std::vector<double> *t_isoTrkPAll;
96  std::vector<double> *t_isoTrkPtAll;
97  std::vector<double> *t_isoTrkPhiAll;
98  std::vector<double> *t_isoTrkEtaAll;
99  std::vector<double> *t_isoTrkPdgIdAll;
100  std::vector<double> *t_isoTrkDEtaAll;
101  std::vector<double> *t_isoTrkDPhiAll;
102 
103  std::vector<double> *t_isoTrkP;
104  std::vector<double> *t_isoTrkPt;
105  std::vector<double> *t_isoTrkEne;
106  std::vector<double> *t_isoTrkEta;
107  std::vector<double> *t_isoTrkPhi;
108  std::vector<double> *t_isoTrkEtaEC;
109  std::vector<double> *t_isoTrkPhiEC;
110  std::vector<double> *t_isoTrkPdgId;
111 
112  std::vector<double> *t_maxNearP31x31;
114  std::vector<double> *t_nHadronEne31x31;
115  std::vector<double> *t_photonEne31x31;
116  std::vector<double> *t_eleEne31x31;
117  std::vector<double> *t_muEne31x31;
118 
119  std::vector<double> *t_maxNearP25x25;
121  std::vector<double> *t_nHadronEne25x25;
122  std::vector<double> *t_photonEne25x25;
123  std::vector<double> *t_eleEne25x25;
124  std::vector<double> *t_muEne25x25;
125 
126  std::vector<double> *t_maxNearP21x21;
128  std::vector<double> *t_nHadronEne21x21;
129  std::vector<double> *t_photonEne21x21;
130  std::vector<double> *t_eleEne21x21;
131  std::vector<double> *t_muEne21x21;
132 
133  std::vector<double> *t_maxNearP15x15;
135  std::vector<double> *t_nHadronEne15x15;
136  std::vector<double> *t_photonEne15x15;
137  std::vector<double> *t_eleEne15x15;
138  std::vector<double> *t_muEne15x15;
139 
140  std::vector<double> *t_maxNearP11x11;
142  std::vector<double> *t_nHadronEne11x11;
143  std::vector<double> *t_photonEne11x11;
144  std::vector<double> *t_eleEne11x11;
145  std::vector<double> *t_muEne11x11;
146 
147  std::vector<double> *t_maxNearP9x9;
149  std::vector<double> *t_nHadronEne9x9;
150  std::vector<double> *t_photonEne9x9;
151  std::vector<double> *t_eleEne9x9;
152  std::vector<double> *t_muEne9x9;
153 
154  std::vector<double> *t_maxNearP7x7;
156  std::vector<double> *t_nHadronEne7x7;
157  std::vector<double> *t_photonEne7x7;
158  std::vector<double> *t_eleEne7x7;
159  std::vector<double> *t_muEne7x7;
160 
161  std::vector<double> *t_maxNearP3x3;
163  std::vector<double> *t_nHadronEne3x3;
164  std::vector<double> *t_photonEne3x3;
165  std::vector<double> *t_eleEne3x3;
166  std::vector<double> *t_muEne3x3;
167 
168  std::vector<double> *t_maxNearP1x1;
170  std::vector<double> *t_nHadronEne1x1;
171  std::vector<double> *t_photonEne1x1;
172  std::vector<double> *t_eleEne1x1;
173  std::vector<double> *t_muEne1x1;
174 
175  std::vector<double> *t_maxNearPHC1x1;
177  std::vector<double> *t_nHadronEneHC1x1;
178  std::vector<double> *t_photonEneHC1x1;
179  std::vector<double> *t_eleEneHC1x1;
180  std::vector<double> *t_muEneHC1x1;
181 
182  std::vector<double> *t_maxNearPHC3x3;
184  std::vector<double> *t_nHadronEneHC3x3;
185  std::vector<double> *t_photonEneHC3x3;
186  std::vector<double> *t_eleEneHC3x3;
187  std::vector<double> *t_muEneHC3x3;
188 
189  std::vector<double> *t_maxNearPHC5x5;
191  std::vector<double> *t_nHadronEneHC5x5;
192  std::vector<double> *t_photonEneHC5x5;
193  std::vector<double> *t_eleEneHC5x5;
194  std::vector<double> *t_muEneHC5x5;
195 
196  std::vector<double> *t_maxNearPHC7x7;
198  std::vector<double> *t_nHadronEneHC7x7;
199  std::vector<double> *t_photonEneHC7x7;
200  std::vector<double> *t_eleEneHC7x7;
201  std::vector<double> *t_muEneHC7x7;
202 
203  std::vector<double> *t_maxNearPR;
205  std::vector<double> *t_nHadronEneR;
206  std::vector<double> *t_photonEneR;
207  std::vector<double> *t_eleEneR;
208  std::vector<double> *t_muEneR;
209 
210  std::vector<double> *t_maxNearPIsoR;
212  std::vector<double> *t_nHadronEneIsoR;
213  std::vector<double> *t_photonEneIsoR;
214  std::vector<double> *t_eleEneIsoR;
215  std::vector<double> *t_muEneIsoR;
216 
217  std::vector<double> *t_maxNearPHCR;
219  std::vector<double> *t_nHadronEneHCR;
220  std::vector<double> *t_photonEneHCR;
221  std::vector<double> *t_eleEneHCR;
222  std::vector<double> *t_muEneHCR;
223 
224  std::vector<double> *t_maxNearPIsoHCR;
226  std::vector<double> *t_nHadronEneIsoHCR;
227  std::vector<double> *t_photonEneIsoHCR;
228  std::vector<double> *t_eleEneIsoHCR;
229  std::vector<double> *t_muEneIsoHCR;
230 
235 };
236 
238  : ptMin_(iConfig.getUntrackedParameter<double>("PTMin", 1.0)),
239  etaMax_(iConfig.getUntrackedParameter<double>("MaxChargedHadronEta", 2.5)),
240  pCutIsolate_(iConfig.getUntrackedParameter<double>("PMaxIsolation", 20.0)),
241  a_Isolation_(iConfig.getUntrackedParameter<bool>("UseConeIsolation", false)),
242  genSrc_(iConfig.getUntrackedParameter("GenSrc", std::string("generatorSmeared"))),
243  useHepMC_(iConfig.getUntrackedParameter<bool>("UseHepMC", false)),
244  a_coneR_(iConfig.getUntrackedParameter<double>("ConeRadius", 34.98)),
245  a_mipR_(iConfig.getUntrackedParameter<double>("ConeRadiusMIP", 14.0)),
246  verbosity_(iConfig.getUntrackedParameter<int>("Verbosity", 0)) {
247  usesResource(TFileService::kSharedResource);
248 
249  a_charIsoR_ = a_coneR_ + 28.9;
250  a_neutIsoR_ = a_charIsoR_ * 0.726;
251 
252  tok_hepmc_ = consumes<edm::HepMCProduct>(edm::InputTag(genSrc_));
253  tok_genParticles_ = consumes<reco::GenParticleCollection>(edm::InputTag(genSrc_));
254 
255  if (!strcmp("Dummy", genSrc_.c_str())) {
256  if (useHepMC_)
257  genSrc_ = "generatorSmeared";
258  else
259  genSrc_ = "genParticles";
260  }
261  edm::LogVerbatim("IsoTrack") << "Generator Source " << genSrc_ << " Use HepMC " << useHepMC_ << " ptMin " << ptMin_
262  << " etaMax " << etaMax_ << "\n a_coneR " << a_coneR_ << " a_charIsoR " << a_charIsoR_
263  << " a_neutIsoR " << a_neutIsoR_ << " a_mipR " << a_mipR_ << " debug " << verbosity_
264  << "\nIsolation Flag " << a_Isolation_ << " with cut " << pCutIsolate_ << " GeV";
265 }
266 
269  desc.addUntracked<std::string>("GenSrc", "genParticles");
270  desc.addUntracked<bool>("UseHepMC", false);
271  desc.addUntracked<double>("ChargedHadronSeedP", 1.0);
272  desc.addUntracked<double>("PTMin", 1.0);
273  desc.addUntracked<double>("MaxChargedHadronEta", 2.5);
274  desc.addUntracked<double>("ConeRadius", 34.98);
275  desc.addUntracked<double>("ConeRadiusMIP", 14.0);
276  desc.addUntracked<bool>("UseConeIsolation", true);
277  desc.addUntracked<double>("PMaxIsolation", 5.0);
278  desc.addUntracked<int>("Verbosity", 0);
279  descriptions.add("studyCaloGen", desc);
280 }
281 
284 
285  nEventProc++;
286 
288  iSetup.get<IdealMagneticFieldRecord>().get(bFieldH);
289  const MagneticField *bField = bFieldH.product();
290 
291  // get particle data table
293  iSetup.getData(pdt);
294 
295  // get handle to HEPMCProduct
298  if (useHepMC_)
299  iEvent.getByToken(tok_hepmc_, hepmc);
300  else
302 
304  iSetup.get<CaloGeometryRecord>().get(pG);
305  const CaloGeometry *geo = pG.product();
306 
307  edm::ESHandle<CaloTopology> theCaloTopology;
308  iSetup.get<CaloTopologyRecord>().get(theCaloTopology);
309  const CaloTopology *caloTopology = theCaloTopology.product();
310 
312  iSetup.get<HcalRecNumberingRecord>().get(htopo);
313  const HcalTopology *theHBHETopology = htopo.product();
314 
315  GlobalPoint posVec, posECAL;
317  if (verbosity_ > 0)
318  edm::LogVerbatim("IsoTrack") << "event number " << iEvent.id().event();
319  if (useHepMC_) {
320  const HepMC::GenEvent *myGenEvent = hepmc->GetEvent();
321  std::vector<spr::propagatedGenTrackID> trackIDs = spr::propagateCALO(myGenEvent, pdt, geo, bField, etaMax_, false);
322 
323  for (unsigned int indx = 0; indx < trackIDs.size(); ++indx) {
324  int charge = trackIDs[indx].charge;
325  HepMC::GenEvent::particle_const_iterator p = trackIDs[indx].trkItr;
326  momVec = math::XYZTLorentzVector(
327  (*p)->momentum().px(), (*p)->momentum().py(), (*p)->momentum().pz(), (*p)->momentum().e());
328  if (verbosity_ > 1)
329  edm::LogVerbatim("IsoTrack") << "trkIndx " << indx << " pdgid " << trackIDs[indx].pdgId << " charge " << charge
330  << " momVec " << momVec;
331  // only stable particles avoiding electrons and muons
332  if (trackIDs[indx].ok && (std::abs(trackIDs[indx].pdgId) < 11 || std::abs(trackIDs[indx].pdgId) >= 21)) {
333  // consider particles within a phased space
334  if (momVec.Pt() > ptMin_ && std::abs(momVec.eta()) < etaMax_) {
335  posVec = GlobalPoint(0.1 * (*p)->production_vertex()->position().x(),
336  0.1 * (*p)->production_vertex()->position().y(),
337  0.1 * (*p)->production_vertex()->position().z());
338  posECAL = trackIDs[indx].pointECAL;
339  fillTrack(posVec, momVec, posECAL, trackIDs[indx].pdgId, trackIDs[indx].okECAL, true);
340  if (verbosity_ > 1)
341  edm::LogVerbatim("IsoTrack") << "posECAL " << posECAL << " okECAL " << trackIDs[indx].okECAL << "okHCAL "
342  << trackIDs[indx].okHCAL;
343  if (trackIDs[indx].okECAL) {
344  if (std::abs(charge) > 0) {
345  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 0, 0, isoinfo1x1, false);
346  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 1, 1, isoinfo3x3, false);
347  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 3, 3, isoinfo7x7, false);
348  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 4, 4, isoinfo9x9, false);
349  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 5, 5, isoinfo11x11, false);
350  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 7, 7, isoinfo15x15, false);
351  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 10, 10, isoinfo21x21, false);
352  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 12, 12, isoinfo25x25, false);
353  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 15, 15, isoinfo31x31, false);
354  spr::eGenSimInfo(trackIDs[indx].detIdECAL,
355  p,
356  trackIDs,
357  geo,
358  caloTopology,
359  a_mipR_,
360  trackIDs[indx].directionECAL,
361  isoinfoR,
362  false);
363  spr::eGenSimInfo(trackIDs[indx].detIdECAL,
364  p,
365  trackIDs,
366  geo,
367  caloTopology,
368  a_neutIsoR_,
369  trackIDs[indx].directionECAL,
370  isoinfoIsoR,
371  false);
372  if (trackIDs[indx].okHCAL) {
373  spr::hGenSimInfo(trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 0, 0, isoinfoHC1x1, false);
374  spr::hGenSimInfo(trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 1, 1, isoinfoHC3x3, false);
375  spr::hGenSimInfo(trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 2, 2, isoinfoHC5x5, false);
376  spr::hGenSimInfo(trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 3, 3, isoinfoHC7x7, false);
377  spr::hGenSimInfo(trackIDs[indx].detIdHCAL,
378  p,
379  trackIDs,
380  geo,
381  theHBHETopology,
382  a_coneR_,
383  trackIDs[indx].directionHCAL,
384  isoinfoHCR,
385  false);
386  spr::hGenSimInfo(trackIDs[indx].detIdHCAL,
387  p,
388  trackIDs,
389  geo,
390  theHBHETopology,
391  a_charIsoR_,
392  trackIDs[indx].directionHCAL,
394  false);
395  }
396 
397  bool saveTrack = true;
398  if (a_Isolation_)
399  saveTrack = (isoinfoR.maxNearP < pCutIsolate_);
400  else
401  saveTrack = (isoinfo7x7.maxNearP < pCutIsolate_);
402  if (saveTrack)
403  fillIsolatedTrack(momVec, posECAL, trackIDs[indx].pdgId);
404  }
405  }
406  } else { // stabale particles within |eta|=2.5
407  fillTrack(posVec, momVec, posECAL, 0, false, false);
408  }
409  }
410  }
411 
412  unsigned int indx;
413  HepMC::GenEvent::particle_const_iterator p;
414  for (p = myGenEvent->particles_begin(), indx = 0; p != myGenEvent->particles_end(); ++p, ++indx) {
415  int pdgId = ((*p)->pdg_id());
416  int ix = particleCode(pdgId);
417  if (ix >= 0) {
418  double pp = (*p)->momentum().rho();
419  double eta = (*p)->momentum().eta();
420  h_pEta[ix]->Fill(pp, eta);
421  }
422  }
423  } else { // loop over gen particles
424  std::vector<spr::propagatedGenParticleID> trackIDs =
426 
427  for (unsigned int indx = 0; indx < trackIDs.size(); ++indx) {
428  int charge = trackIDs[indx].charge;
429  reco::GenParticleCollection::const_iterator p = trackIDs[indx].trkItr;
430 
431  momVec = math::XYZTLorentzVector(p->momentum().x(), p->momentum().y(), p->momentum().z(), p->energy());
432  if (verbosity_ > 1)
433  edm::LogVerbatim("IsoTrack") << "trkIndx " << indx << " pdgid " << trackIDs[indx].pdgId << " charge " << charge
434  << " momVec " << momVec;
435  // only stable particles avoiding electrons and muons
436  if (trackIDs[indx].ok && std::abs(trackIDs[indx].pdgId) > 21) {
437  // consider particles within a phased space
438  if (verbosity_ > 1)
439  edm::LogVerbatim("IsoTrack") << " pt " << momVec.Pt() << " eta " << momVec.eta();
440  if (momVec.Pt() > ptMin_ && std::abs(momVec.eta()) < etaMax_) {
441  posVec = GlobalPoint(p->vertex().x(), p->vertex().y(), p->vertex().z());
442  posECAL = trackIDs[indx].pointECAL;
443  if (verbosity_ > 0)
444  edm::LogVerbatim("IsoTrack") << "posECAL " << posECAL << " okECAL " << trackIDs[indx].okECAL << "okHCAL "
445  << trackIDs[indx].okHCAL;
446  fillTrack(posVec, momVec, posECAL, trackIDs[indx].pdgId, trackIDs[indx].okECAL, true);
447  if (trackIDs[indx].okECAL) {
448  if (std::abs(charge) > 0) {
450  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 0, 0, isoinfo1x1, verbosity_ > 1);
452  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 1, 1, isoinfo3x3, verbosity_ > 0);
454  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 3, 3, isoinfo7x7, verbosity_ > 1);
456  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 4, 4, isoinfo9x9, verbosity_ > 1);
458  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 5, 5, isoinfo11x11, verbosity_ > 1);
460  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 7, 7, isoinfo15x15, verbosity_ > 1);
462  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 10, 10, isoinfo21x21, verbosity_ > 1);
464  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 12, 12, isoinfo25x25, verbosity_ > 1);
466  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 15, 15, isoinfo31x31, verbosity_ > 1);
467  spr::eGenSimInfo(trackIDs[indx].detIdECAL,
468  p,
469  trackIDs,
470  geo,
471  caloTopology,
472  a_mipR_,
473  trackIDs[indx].directionECAL,
474  isoinfoR,
475  verbosity_ > 1);
476  spr::eGenSimInfo(trackIDs[indx].detIdECAL,
477  p,
478  trackIDs,
479  geo,
480  caloTopology,
481  a_neutIsoR_,
482  trackIDs[indx].directionECAL,
483  isoinfoIsoR,
484  verbosity_ > 1);
485  if (trackIDs[indx].okHCAL) {
487  trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 0, 0, isoinfoHC1x1, verbosity_ > 1);
489  trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 1, 1, isoinfoHC3x3, verbosity_ > 1);
491  trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 2, 2, isoinfoHC5x5, verbosity_ > 1);
493  trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 3, 3, isoinfoHC7x7, verbosity_ > 1);
494  spr::hGenSimInfo(trackIDs[indx].detIdHCAL,
495  p,
496  trackIDs,
497  geo,
498  theHBHETopology,
499  a_coneR_,
500  trackIDs[indx].directionHCAL,
501  isoinfoHCR,
502  verbosity_ > 1);
503  spr::hGenSimInfo(trackIDs[indx].detIdHCAL,
504  p,
505  trackIDs,
506  geo,
507  theHBHETopology,
508  a_charIsoR_,
509  trackIDs[indx].directionHCAL,
511  verbosity_ > 1);
512  }
513 
514  bool saveTrack = true;
515  if (a_Isolation_)
516  saveTrack = (isoinfoIsoR.maxNearP < pCutIsolate_);
517  else
518  saveTrack = (isoinfo7x7.maxNearP < pCutIsolate_);
519  if (saveTrack)
520  fillIsolatedTrack(momVec, posECAL, trackIDs[indx].pdgId);
521  }
522  }
523  } else { // stabale particles within |eta|=2.5
524  fillTrack(posVec, momVec, posECAL, 0, false, false);
525  }
526  }
527  } // loop over gen particles
528 
529  unsigned int indx;
530  reco::GenParticleCollection::const_iterator p;
531  for (p = genParticles->begin(), indx = 0; p != genParticles->end(); ++p, ++indx) {
532  int pdgId = (p->pdgId());
533  int ix = particleCode(pdgId);
534  if (ix >= 0) {
535  double pp = (p->momentum()).R();
536  double eta = (p->momentum()).Eta();
537  h_pEta[ix]->Fill(pp, eta);
538  }
539  }
540  }
541 
542  //t_nEvtProc->push_back(nEventProc);
543  h_NEventProc->SetBinContent(1, nEventProc);
544  tree_->Fill();
545 }
546 
548  nEventProc = 0;
549 
550  double tempgen_TH[NPBins_ + 1] = {0.0, 5.0, 12.0, 300.0};
551  for (int i = 0; i <= NPBins_; i++)
552  genPartPBins_[i] = tempgen_TH[i];
553 
554  double tempgen_Eta[NEtaBins_ + 1] = {0.0, 0.5, 1.1, 1.7, 2.3};
555  for (int i = 0; i <= NEtaBins_; i++)
556  genPartEtaBins_[i] = tempgen_Eta[i];
557 
558  bookHistograms();
559 }
560 
562  GlobalPoint &posVec, math::XYZTLorentzVector &momVec, GlobalPoint &posECAL, int pdgId, bool okECAL, bool accept) {
563  if (accept) {
564  t_isoTrkPAll->push_back(momVec.P());
565  t_isoTrkPtAll->push_back(momVec.Pt());
566  t_isoTrkPhiAll->push_back(momVec.phi());
567  t_isoTrkEtaAll->push_back(momVec.eta());
568  t_isoTrkPdgIdAll->push_back(pdgId);
569  if (okECAL) {
570  double phi1 = momVec.phi();
571  double phi2 = (posECAL - posVec).phi();
572  double dphi = reco::deltaPhi(phi1, phi2);
573  double deta = momVec.eta() - (posECAL - posVec).eta();
574  t_isoTrkDPhiAll->push_back(dphi);
575  t_isoTrkDEtaAll->push_back(deta);
576  } else {
577  t_isoTrkDPhiAll->push_back(999.0);
578  t_isoTrkDEtaAll->push_back(999.0);
579  }
580  } else {
581  t_isoTrkDPhiAll->push_back(-999.0);
582  t_isoTrkDEtaAll->push_back(-999.0);
583  }
584 }
585 
587  t_isoTrkP->push_back(momVec.P());
588  t_isoTrkPt->push_back(momVec.Pt());
589  t_isoTrkEne->push_back(momVec.E());
590  t_isoTrkEta->push_back(momVec.eta());
591  t_isoTrkPhi->push_back(momVec.phi());
592  t_isoTrkEtaEC->push_back(posECAL.eta());
593  t_isoTrkPhiEC->push_back(posECAL.phi());
594  t_isoTrkPdgId->push_back(pdgId);
595 
603  t_eleEne31x31->push_back(isoinfo31x31.eleEne);
604  t_muEne31x31->push_back(isoinfo31x31.muEne);
605 
613  t_eleEne25x25->push_back(isoinfo25x25.eleEne);
614  t_muEne25x25->push_back(isoinfo25x25.muEne);
615 
623  t_eleEne21x21->push_back(isoinfo21x21.eleEne);
624  t_muEne21x21->push_back(isoinfo21x21.muEne);
625 
633  t_eleEne15x15->push_back(isoinfo15x15.eleEne);
634  t_muEne15x15->push_back(isoinfo15x15.muEne);
635 
643  t_eleEne11x11->push_back(isoinfo11x11.eleEne);
644  t_muEne11x11->push_back(isoinfo11x11.muEne);
645 
646  t_maxNearP9x9->push_back(isoinfo9x9.maxNearP);
652  t_photonEne9x9->push_back(isoinfo9x9.photonEne);
653  t_eleEne9x9->push_back(isoinfo9x9.eleEne);
654  t_muEne9x9->push_back(isoinfo9x9.muEne);
655 
656  t_maxNearP7x7->push_back(isoinfo7x7.maxNearP);
662  t_photonEne7x7->push_back(isoinfo7x7.photonEne);
663  t_eleEne7x7->push_back(isoinfo7x7.eleEne);
664  t_muEne7x7->push_back(isoinfo7x7.muEne);
665 
666  t_maxNearP3x3->push_back(isoinfo3x3.maxNearP);
672  t_photonEne3x3->push_back(isoinfo3x3.photonEne);
673  t_eleEne3x3->push_back(isoinfo3x3.eleEne);
674  t_muEne3x3->push_back(isoinfo3x3.muEne);
675 
676  t_maxNearP1x1->push_back(isoinfo1x1.maxNearP);
682  t_photonEne1x1->push_back(isoinfo1x1.photonEne);
683  t_eleEne1x1->push_back(isoinfo1x1.eleEne);
684  t_muEne1x1->push_back(isoinfo1x1.muEne);
685 
693  t_eleEneHC1x1->push_back(isoinfoHC1x1.eleEne);
694  t_muEneHC1x1->push_back(isoinfoHC1x1.muEne);
695 
703  t_eleEneHC3x3->push_back(isoinfoHC3x3.eleEne);
704  t_muEneHC3x3->push_back(isoinfoHC3x3.muEne);
705 
713  t_eleEneHC5x5->push_back(isoinfoHC5x5.eleEne);
714  t_muEneHC5x5->push_back(isoinfoHC5x5.muEne);
715 
723  t_eleEneHC7x7->push_back(isoinfoHC7x7.eleEne);
724  t_muEneHC7x7->push_back(isoinfoHC7x7.muEne);
725 
726  t_maxNearPR->push_back(isoinfoR.maxNearP);
727  t_cHadronEneR->push_back(isoinfoR.cHadronEne);
728  t_cHadronEneR_1->push_back(isoinfoR.cHadronEne_[0]);
729  t_cHadronEneR_2->push_back(isoinfoR.cHadronEne_[1]);
730  t_cHadronEneR_3->push_back(isoinfoR.cHadronEne_[2]);
731  t_nHadronEneR->push_back(isoinfoR.nHadronEne);
732  t_photonEneR->push_back(isoinfoR.photonEne);
733  t_eleEneR->push_back(isoinfoR.eleEne);
734  t_muEneR->push_back(isoinfoR.muEne);
735 
736  t_maxNearPIsoR->push_back(isoinfoIsoR.maxNearP);
743  t_eleEneIsoR->push_back(isoinfoIsoR.eleEne);
744  t_muEneIsoR->push_back(isoinfoIsoR.muEne);
745 
746  t_maxNearPHCR->push_back(isoinfoHCR.maxNearP);
752  t_photonEneHCR->push_back(isoinfoHCR.photonEne);
753  t_eleEneHCR->push_back(isoinfoHCR.eleEne);
754  t_muEneHCR->push_back(isoinfoHCR.muEne);
755 
763  t_eleEneIsoHCR->push_back(isoinfoIsoHCR.eleEne);
764  t_muEneIsoHCR->push_back(isoinfoIsoHCR.muEne);
765 }
766 
769  //char hname[100], htit[100];
770 
771  h_NEventProc = fs->make<TH1I>("h_NEventProc", "h_NEventProc", 2, -0.5, 0.5);
772 
773  double pBin[PBins_ + 1] = {0.0, 2.0, 4.0, 6.0, 8.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0,
774  70.0, 80.0, 90.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0,
775  500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 900.0, 950.0, 1000.0};
776  double etaBin[EtaBins_ + 1] = {-3.0, -2.9, -2.8, -2.7, -2.6, -2.5, -2.4, -2.3, -2.2, -2.1, -2.0, -1.9, -1.8,
777  -1.7, -1.6, -1.5, -1.4, -1.3, -1.2, -1.1, -1.0, -0.9, -0.8, -0.7, -0.6, -0.5,
778  -0.4, -0.3, -0.2, -0.1, 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8,
779  0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1,
780  2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0};
781  std::string particle[Particles] = {
782  "electron", "positron", "#gamma", "#pi^+", "#pi^-", "K^+", "K^-", "p", "n", "pbar", "nbar", "K^0_L"};
783  TFileDirectory dir1 = fs->mkdir("pEta");
784  char name[20], title[50];
785  for (int i = 0; i < Particles; ++i) {
786  sprintf(name, "pEta%d", i);
787  sprintf(title, "#eta vs momentum for %s", particle[i].c_str());
788  h_pEta[i] = dir1.make<TH2D>(name, title, PBins_, pBin, EtaBins_, etaBin);
789  }
790 
791  // build the tree
792  tree_ = fs->make<TTree>("StudyCaloGen", "StudyCaloGen");
793 
794  t_isoTrkPAll = new std::vector<double>();
795  t_isoTrkPtAll = new std::vector<double>();
796  t_isoTrkPhiAll = new std::vector<double>();
797  t_isoTrkEtaAll = new std::vector<double>();
798  t_isoTrkDPhiAll = new std::vector<double>();
799  t_isoTrkDEtaAll = new std::vector<double>();
800  t_isoTrkPdgIdAll = new std::vector<double>();
801 
802  t_isoTrkP = new std::vector<double>();
803  t_isoTrkPt = new std::vector<double>();
804  t_isoTrkEne = new std::vector<double>();
805  t_isoTrkEta = new std::vector<double>();
806  t_isoTrkPhi = new std::vector<double>();
807  t_isoTrkEtaEC = new std::vector<double>();
808  t_isoTrkPhiEC = new std::vector<double>();
809  t_isoTrkPdgId = new std::vector<double>();
810 
811  t_maxNearP31x31 = new std::vector<double>();
812  t_cHadronEne31x31 = new std::vector<double>();
813  t_cHadronEne31x31_1 = new std::vector<double>();
814  t_cHadronEne31x31_2 = new std::vector<double>();
815  t_cHadronEne31x31_3 = new std::vector<double>();
816  t_nHadronEne31x31 = new std::vector<double>();
817  t_photonEne31x31 = new std::vector<double>();
818  t_eleEne31x31 = new std::vector<double>();
819  t_muEne31x31 = new std::vector<double>();
820 
821  t_maxNearP25x25 = new std::vector<double>();
822  t_cHadronEne25x25 = new std::vector<double>();
823  t_cHadronEne25x25_1 = new std::vector<double>();
824  t_cHadronEne25x25_2 = new std::vector<double>();
825  t_cHadronEne25x25_3 = new std::vector<double>();
826  t_nHadronEne25x25 = new std::vector<double>();
827  t_photonEne25x25 = new std::vector<double>();
828  t_eleEne25x25 = new std::vector<double>();
829  t_muEne25x25 = new std::vector<double>();
830 
831  t_maxNearP21x21 = new std::vector<double>();
832  t_cHadronEne21x21 = new std::vector<double>();
833  t_cHadronEne21x21_1 = new std::vector<double>();
834  t_cHadronEne21x21_2 = new std::vector<double>();
835  t_cHadronEne21x21_3 = new std::vector<double>();
836  t_nHadronEne21x21 = new std::vector<double>();
837  t_photonEne21x21 = new std::vector<double>();
838  t_eleEne21x21 = new std::vector<double>();
839  t_muEne21x21 = new std::vector<double>();
840 
841  t_maxNearP15x15 = new std::vector<double>();
842  t_cHadronEne15x15 = new std::vector<double>();
843  t_cHadronEne15x15_1 = new std::vector<double>();
844  t_cHadronEne15x15_2 = new std::vector<double>();
845  t_cHadronEne15x15_3 = new std::vector<double>();
846  t_nHadronEne15x15 = new std::vector<double>();
847  t_photonEne15x15 = new std::vector<double>();
848  t_eleEne15x15 = new std::vector<double>();
849  t_muEne15x15 = new std::vector<double>();
850 
851  t_maxNearP11x11 = new std::vector<double>();
852  t_cHadronEne11x11 = new std::vector<double>();
853  t_cHadronEne11x11_1 = new std::vector<double>();
854  t_cHadronEne11x11_2 = new std::vector<double>();
855  t_cHadronEne11x11_3 = new std::vector<double>();
856  t_nHadronEne11x11 = new std::vector<double>();
857  t_photonEne11x11 = new std::vector<double>();
858  t_eleEne11x11 = new std::vector<double>();
859  t_muEne11x11 = new std::vector<double>();
860 
861  t_maxNearP9x9 = new std::vector<double>();
862  t_cHadronEne9x9 = new std::vector<double>();
863  t_cHadronEne9x9_1 = new std::vector<double>();
864  t_cHadronEne9x9_2 = new std::vector<double>();
865  t_cHadronEne9x9_3 = new std::vector<double>();
866  t_nHadronEne9x9 = new std::vector<double>();
867  t_photonEne9x9 = new std::vector<double>();
868  t_eleEne9x9 = new std::vector<double>();
869  t_muEne9x9 = new std::vector<double>();
870 
871  t_maxNearP7x7 = new std::vector<double>();
872  t_cHadronEne7x7 = new std::vector<double>();
873  t_cHadronEne7x7_1 = new std::vector<double>();
874  t_cHadronEne7x7_2 = new std::vector<double>();
875  t_cHadronEne7x7_3 = new std::vector<double>();
876  t_nHadronEne7x7 = new std::vector<double>();
877  t_photonEne7x7 = new std::vector<double>();
878  t_eleEne7x7 = new std::vector<double>();
879  t_muEne7x7 = new std::vector<double>();
880 
881  t_maxNearP3x3 = new std::vector<double>();
882  t_cHadronEne3x3 = new std::vector<double>();
883  t_cHadronEne3x3_1 = new std::vector<double>();
884  t_cHadronEne3x3_2 = new std::vector<double>();
885  t_cHadronEne3x3_3 = new std::vector<double>();
886  t_nHadronEne3x3 = new std::vector<double>();
887  t_photonEne3x3 = new std::vector<double>();
888  t_eleEne3x3 = new std::vector<double>();
889  t_muEne3x3 = new std::vector<double>();
890 
891  t_maxNearP1x1 = new std::vector<double>();
892  t_cHadronEne1x1 = new std::vector<double>();
893  t_cHadronEne1x1_1 = new std::vector<double>();
894  t_cHadronEne1x1_2 = new std::vector<double>();
895  t_cHadronEne1x1_3 = new std::vector<double>();
896  t_nHadronEne1x1 = new std::vector<double>();
897  t_photonEne1x1 = new std::vector<double>();
898  t_eleEne1x1 = new std::vector<double>();
899  t_muEne1x1 = new std::vector<double>();
900 
901  t_maxNearPHC1x1 = new std::vector<double>();
902  t_cHadronEneHC1x1 = new std::vector<double>();
903  t_cHadronEneHC1x1_1 = new std::vector<double>();
904  t_cHadronEneHC1x1_2 = new std::vector<double>();
905  t_cHadronEneHC1x1_3 = new std::vector<double>();
906  t_nHadronEneHC1x1 = new std::vector<double>();
907  t_photonEneHC1x1 = new std::vector<double>();
908  t_eleEneHC1x1 = new std::vector<double>();
909  t_muEneHC1x1 = new std::vector<double>();
910 
911  t_maxNearPHC3x3 = new std::vector<double>();
912  t_cHadronEneHC3x3 = new std::vector<double>();
913  t_cHadronEneHC3x3_1 = new std::vector<double>();
914  t_cHadronEneHC3x3_2 = new std::vector<double>();
915  t_cHadronEneHC3x3_3 = new std::vector<double>();
916  t_nHadronEneHC3x3 = new std::vector<double>();
917  t_photonEneHC3x3 = new std::vector<double>();
918  t_eleEneHC3x3 = new std::vector<double>();
919  t_muEneHC3x3 = new std::vector<double>();
920 
921  t_maxNearPHC5x5 = new std::vector<double>();
922  t_cHadronEneHC5x5 = new std::vector<double>();
923  t_cHadronEneHC5x5_1 = new std::vector<double>();
924  t_cHadronEneHC5x5_2 = new std::vector<double>();
925  t_cHadronEneHC5x5_3 = new std::vector<double>();
926  t_nHadronEneHC5x5 = new std::vector<double>();
927  t_photonEneHC5x5 = new std::vector<double>();
928  t_eleEneHC5x5 = new std::vector<double>();
929  t_muEneHC5x5 = new std::vector<double>();
930 
931  t_maxNearPHC7x7 = new std::vector<double>();
932  t_cHadronEneHC7x7 = new std::vector<double>();
933  t_cHadronEneHC7x7_1 = new std::vector<double>();
934  t_cHadronEneHC7x7_2 = new std::vector<double>();
935  t_cHadronEneHC7x7_3 = new std::vector<double>();
936  t_nHadronEneHC7x7 = new std::vector<double>();
937  t_photonEneHC7x7 = new std::vector<double>();
938  t_eleEneHC7x7 = new std::vector<double>();
939  t_muEneHC7x7 = new std::vector<double>();
940 
941  t_maxNearPR = new std::vector<double>();
942  t_cHadronEneR = new std::vector<double>();
943  t_cHadronEneR_1 = new std::vector<double>();
944  t_cHadronEneR_2 = new std::vector<double>();
945  t_cHadronEneR_3 = new std::vector<double>();
946  t_nHadronEneR = new std::vector<double>();
947  t_photonEneR = new std::vector<double>();
948  t_eleEneR = new std::vector<double>();
949  t_muEneR = new std::vector<double>();
950 
951  t_maxNearPIsoR = new std::vector<double>();
952  t_cHadronEneIsoR = new std::vector<double>();
953  t_cHadronEneIsoR_1 = new std::vector<double>();
954  t_cHadronEneIsoR_2 = new std::vector<double>();
955  t_cHadronEneIsoR_3 = new std::vector<double>();
956  t_nHadronEneIsoR = new std::vector<double>();
957  t_photonEneIsoR = new std::vector<double>();
958  t_eleEneIsoR = new std::vector<double>();
959  t_muEneIsoR = new std::vector<double>();
960 
961  t_maxNearPHCR = new std::vector<double>();
962  t_cHadronEneHCR = new std::vector<double>();
963  t_cHadronEneHCR_1 = new std::vector<double>();
964  t_cHadronEneHCR_2 = new std::vector<double>();
965  t_cHadronEneHCR_3 = new std::vector<double>();
966  t_nHadronEneHCR = new std::vector<double>();
967  t_photonEneHCR = new std::vector<double>();
968  t_eleEneHCR = new std::vector<double>();
969  t_muEneHCR = new std::vector<double>();
970 
971  t_maxNearPIsoHCR = new std::vector<double>();
972  t_cHadronEneIsoHCR = new std::vector<double>();
973  t_cHadronEneIsoHCR_1 = new std::vector<double>();
974  t_cHadronEneIsoHCR_2 = new std::vector<double>();
975  t_cHadronEneIsoHCR_3 = new std::vector<double>();
976  t_nHadronEneIsoHCR = new std::vector<double>();
977  t_photonEneIsoHCR = new std::vector<double>();
978  t_eleEneIsoHCR = new std::vector<double>();
979  t_muEneIsoHCR = new std::vector<double>();
980 
981  tree_->Branch("t_isoTrkPAll", "std::vector<double>", &t_isoTrkPAll);
982  tree_->Branch("t_isoTrkPtAll", "std::vector<double>", &t_isoTrkPtAll);
983  tree_->Branch("t_isoTrkPhiAll", "std::vector<double>", &t_isoTrkPhiAll);
984  tree_->Branch("t_isoTrkEtaAll", "std::vector<double>", &t_isoTrkEtaAll);
985  tree_->Branch("t_isoTrkDPhiAll", "std::vector<double>", &t_isoTrkDPhiAll);
986  tree_->Branch("t_isoTrkDEtaAll", "std::vector<double>", &t_isoTrkDEtaAll);
987  tree_->Branch("t_isoTrkPdgIdAll", "std::vector<double>", &t_isoTrkPdgIdAll);
988 
989  tree_->Branch("t_isoTrkP", "std::vector<double>", &t_isoTrkP);
990  tree_->Branch("t_isoTrkPt", "std::vector<double>", &t_isoTrkPt);
991  tree_->Branch("t_isoTrkEne", "std::vector<double>", &t_isoTrkEne);
992  tree_->Branch("t_isoTrkEta", "std::vector<double>", &t_isoTrkEta);
993  tree_->Branch("t_isoTrkPhi", "std::vector<double>", &t_isoTrkPhi);
994  tree_->Branch("t_isoTrkEtaEC", "std::vector<double>", &t_isoTrkEtaEC);
995  tree_->Branch("t_isoTrkPhiEC", "std::vector<double>", &t_isoTrkPhiEC);
996  tree_->Branch("t_isoTrkPdgId", "std::vector<double>", &t_isoTrkPdgId);
997 
998  tree_->Branch("t_maxNearP31x31", "std::vector<double>", &t_maxNearP31x31);
999  tree_->Branch("t_cHadronEne31x31", "std::vector<double>", &t_cHadronEne31x31);
1000  tree_->Branch("t_cHadronEne31x31_1", "std::vector<double>", &t_cHadronEne31x31_1);
1001  tree_->Branch("t_cHadronEne31x31_2", "std::vector<double>", &t_cHadronEne31x31_2);
1002  tree_->Branch("t_cHadronEne31x31_3", "std::vector<double>", &t_cHadronEne31x31_3);
1003  tree_->Branch("t_nHadronEne31x31", "std::vector<double>", &t_nHadronEne31x31);
1004  tree_->Branch("t_photonEne31x31", "std::vector<double>", &t_photonEne31x31);
1005  tree_->Branch("t_eleEne31x31", "std::vector<double>", &t_eleEne31x31);
1006  tree_->Branch("t_muEne31x31", "std::vector<double>", &t_muEne31x31);
1007 
1008  tree_->Branch("t_maxNearP25x25", "std::vector<double>", &t_maxNearP25x25);
1009  tree_->Branch("t_cHadronEne25x25", "std::vector<double>", &t_cHadronEne25x25);
1010  tree_->Branch("t_cHadronEne25x25_1", "std::vector<double>", &t_cHadronEne25x25_1);
1011  tree_->Branch("t_cHadronEne25x25_2", "std::vector<double>", &t_cHadronEne25x25_2);
1012  tree_->Branch("t_cHadronEne25x25_3", "std::vector<double>", &t_cHadronEne25x25_3);
1013  tree_->Branch("t_nHadronEne25x25", "std::vector<double>", &t_nHadronEne25x25);
1014  tree_->Branch("t_photonEne25x25", "std::vector<double>", &t_photonEne25x25);
1015  tree_->Branch("t_eleEne25x25", "std::vector<double>", &t_eleEne25x25);
1016  tree_->Branch("t_muEne25x25", "std::vector<double>", &t_muEne25x25);
1017 
1018  tree_->Branch("t_maxNearP21x21", "std::vector<double>", &t_maxNearP21x21);
1019  tree_->Branch("t_cHadronEne21x21", "std::vector<double>", &t_cHadronEne21x21);
1020  tree_->Branch("t_cHadronEne21x21_1", "std::vector<double>", &t_cHadronEne21x21_1);
1021  tree_->Branch("t_cHadronEne21x21_2", "std::vector<double>", &t_cHadronEne21x21_2);
1022  tree_->Branch("t_cHadronEne21x21_3", "std::vector<double>", &t_cHadronEne21x21_3);
1023  tree_->Branch("t_nHadronEne21x21", "std::vector<double>", &t_nHadronEne21x21);
1024  tree_->Branch("t_photonEne21x21", "std::vector<double>", &t_photonEne21x21);
1025  tree_->Branch("t_eleEne21x21", "std::vector<double>", &t_eleEne21x21);
1026  tree_->Branch("t_muEne21x21", "std::vector<double>", &t_muEne21x21);
1027 
1028  tree_->Branch("t_maxNearP15x15", "std::vector<double>", &t_maxNearP15x15);
1029  tree_->Branch("t_cHadronEne15x15", "std::vector<double>", &t_cHadronEne15x15);
1030  tree_->Branch("t_cHadronEne15x15_1", "std::vector<double>", &t_cHadronEne15x15_1);
1031  tree_->Branch("t_cHadronEne15x15_2", "std::vector<double>", &t_cHadronEne15x15_2);
1032  tree_->Branch("t_cHadronEne15x15_3", "std::vector<double>", &t_cHadronEne15x15_3);
1033  tree_->Branch("t_nHadronEne15x15", "std::vector<double>", &t_nHadronEne15x15);
1034  tree_->Branch("t_photonEne15x15", "std::vector<double>", &t_photonEne15x15);
1035  tree_->Branch("t_eleEne15x15", "std::vector<double>", &t_eleEne15x15);
1036  tree_->Branch("t_muEne15x15", "std::vector<double>", &t_muEne15x15);
1037 
1038  tree_->Branch("t_maxNearP11x11", "std::vector<double>", &t_maxNearP11x11);
1039  tree_->Branch("t_cHadronEne11x11", "std::vector<double>", &t_cHadronEne11x11);
1040  tree_->Branch("t_cHadronEne11x11_1", "std::vector<double>", &t_cHadronEne11x11_1);
1041  tree_->Branch("t_cHadronEne11x11_2", "std::vector<double>", &t_cHadronEne11x11_2);
1042  tree_->Branch("t_cHadronEne11x11_3", "std::vector<double>", &t_cHadronEne11x11_3);
1043  tree_->Branch("t_nHadronEne11x11", "std::vector<double>", &t_nHadronEne11x11);
1044  tree_->Branch("t_photonEne11x11", "std::vector<double>", &t_photonEne11x11);
1045  tree_->Branch("t_eleEne11x11", "std::vector<double>", &t_eleEne11x11);
1046  tree_->Branch("t_muEne11x11", "std::vector<double>", &t_muEne11x11);
1047 
1048  tree_->Branch("t_maxNearP9x9", "std::vector<double>", &t_maxNearP9x9);
1049  tree_->Branch("t_cHadronEne9x9", "std::vector<double>", &t_cHadronEne9x9);
1050  tree_->Branch("t_cHadronEne9x9_1", "std::vector<double>", &t_cHadronEne9x9_1);
1051  tree_->Branch("t_cHadronEne9x9_2", "std::vector<double>", &t_cHadronEne9x9_2);
1052  tree_->Branch("t_cHadronEne9x9_3", "std::vector<double>", &t_cHadronEne9x9_3);
1053  tree_->Branch("t_nHadronEne9x9", "std::vector<double>", &t_nHadronEne9x9);
1054  tree_->Branch("t_photonEne9x9", "std::vector<double>", &t_photonEne9x9);
1055  tree_->Branch("t_eleEne9x9", "std::vector<double>", &t_eleEne9x9);
1056  tree_->Branch("t_muEne9x9", "std::vector<double>", &t_muEne9x9);
1057 
1058  tree_->Branch("t_maxNearP7x7", "std::vector<double>", &t_maxNearP7x7);
1059  tree_->Branch("t_cHadronEne7x7", "std::vector<double>", &t_cHadronEne7x7);
1060  tree_->Branch("t_cHadronEne7x7_1", "std::vector<double>", &t_cHadronEne7x7_1);
1061  tree_->Branch("t_cHadronEne7x7_2", "std::vector<double>", &t_cHadronEne7x7_2);
1062  tree_->Branch("t_cHadronEne7x7_3", "std::vector<double>", &t_cHadronEne7x7_3);
1063  tree_->Branch("t_nHadronEne7x7", "std::vector<double>", &t_nHadronEne7x7);
1064  tree_->Branch("t_photonEne7x7", "std::vector<double>", &t_photonEne7x7);
1065  tree_->Branch("t_eleEne7x7", "std::vector<double>", &t_eleEne7x7);
1066  tree_->Branch("t_muEne7x7", "std::vector<double>", &t_muEne7x7);
1067 
1068  tree_->Branch("t_maxNearP3x3", "std::vector<double>", &t_maxNearP3x3);
1069  tree_->Branch("t_cHadronEne3x3", "std::vector<double>", &t_cHadronEne3x3);
1070  tree_->Branch("t_cHadronEne3x3_1", "std::vector<double>", &t_cHadronEne3x3_1);
1071  tree_->Branch("t_cHadronEne3x3_2", "std::vector<double>", &t_cHadronEne3x3_2);
1072  tree_->Branch("t_cHadronEne3x3_3", "std::vector<double>", &t_cHadronEne3x3_3);
1073  tree_->Branch("t_nHadronEne3x3", "std::vector<double>", &t_nHadronEne3x3);
1074  tree_->Branch("t_photonEne3x3", "std::vector<double>", &t_photonEne3x3);
1075  tree_->Branch("t_eleEne3x3", "std::vector<double>", &t_eleEne3x3);
1076  tree_->Branch("t_muEne3x3", "std::vector<double>", &t_muEne3x3);
1077 
1078  tree_->Branch("t_maxNearP1x1", "std::vector<double>", &t_maxNearP1x1);
1079  tree_->Branch("t_cHadronEne1x1", "std::vector<double>", &t_cHadronEne1x1);
1080  tree_->Branch("t_cHadronEne1x1_1", "std::vector<double>", &t_cHadronEne1x1_1);
1081  tree_->Branch("t_cHadronEne1x1_2", "std::vector<double>", &t_cHadronEne1x1_2);
1082  tree_->Branch("t_cHadronEne1x1_3", "std::vector<double>", &t_cHadronEne1x1_3);
1083  tree_->Branch("t_nHadronEne1x1", "std::vector<double>", &t_nHadronEne1x1);
1084  tree_->Branch("t_photonEne1x1", "std::vector<double>", &t_photonEne1x1);
1085  tree_->Branch("t_eleEne1x1", "std::vector<double>", &t_eleEne1x1);
1086  tree_->Branch("t_muEne1x1", "std::vector<double>", &t_muEne1x1);
1087 
1088  tree_->Branch("t_maxNearPHC1x1", "std::vector<double>", &t_maxNearPHC1x1);
1089  tree_->Branch("t_cHadronEneHC1x1", "std::vector<double>", &t_cHadronEneHC1x1);
1090  tree_->Branch("t_cHadronEneHC1x1_1", "std::vector<double>", &t_cHadronEneHC1x1_1);
1091  tree_->Branch("t_cHadronEneHC1x1_2", "std::vector<double>", &t_cHadronEneHC1x1_2);
1092  tree_->Branch("t_cHadronEneHC1x1_3", "std::vector<double>", &t_cHadronEneHC1x1_3);
1093  tree_->Branch("t_nHadronEneHC1x1", "std::vector<double>", &t_nHadronEneHC1x1);
1094  tree_->Branch("t_photonEneHC1x1", "std::vector<double>", &t_photonEneHC1x1);
1095  tree_->Branch("t_eleEneHC1x1", "std::vector<double>", &t_eleEneHC1x1);
1096  tree_->Branch("t_muEneHC1x1", "std::vector<double>", &t_muEneHC1x1);
1097 
1098  tree_->Branch("t_maxNearPHC3x3", "std::vector<double>", &t_maxNearPHC3x3);
1099  tree_->Branch("t_cHadronEneHC3x3", "std::vector<double>", &t_cHadronEneHC3x3);
1100  tree_->Branch("t_cHadronEneHC3x3_1", "std::vector<double>", &t_cHadronEneHC3x3_1);
1101  tree_->Branch("t_cHadronEneHC3x3_2", "std::vector<double>", &t_cHadronEneHC3x3_2);
1102  tree_->Branch("t_cHadronEneHC3x3_3", "std::vector<double>", &t_cHadronEneHC3x3_3);
1103  tree_->Branch("t_nHadronEneHC3x3", "std::vector<double>", &t_nHadronEneHC3x3);
1104  tree_->Branch("t_photonEneHC3x3", "std::vector<double>", &t_photonEneHC3x3);
1105  tree_->Branch("t_eleEneHC3x3", "std::vector<double>", &t_eleEneHC3x3);
1106  tree_->Branch("t_muEneHC3x3", "std::vector<double>", &t_muEneHC3x3);
1107 
1108  tree_->Branch("t_maxNearPHC5x5", "std::vector<double>", &t_maxNearPHC5x5);
1109  tree_->Branch("t_cHadronEneHC5x5", "std::vector<double>", &t_cHadronEneHC5x5);
1110  tree_->Branch("t_cHadronEneHC5x5_1", "std::vector<double>", &t_cHadronEneHC5x5_1);
1111  tree_->Branch("t_cHadronEneHC5x5_2", "std::vector<double>", &t_cHadronEneHC5x5_2);
1112  tree_->Branch("t_cHadronEneHC5x5_3", "std::vector<double>", &t_cHadronEneHC5x5_3);
1113  tree_->Branch("t_nHadronEneHC5x5", "std::vector<double>", &t_nHadronEneHC5x5);
1114  tree_->Branch("t_photonEneHC5x5", "std::vector<double>", &t_photonEneHC5x5);
1115  tree_->Branch("t_eleEneHC5x5", "std::vector<double>", &t_eleEneHC5x5);
1116  tree_->Branch("t_muEneHC5x5", "std::vector<double>", &t_muEneHC5x5);
1117 
1118  tree_->Branch("t_maxNearPHC7x7", "std::vector<double>", &t_maxNearPHC7x7);
1119  tree_->Branch("t_cHadronEneHC7x7", "std::vector<double>", &t_cHadronEneHC7x7);
1120  tree_->Branch("t_cHadronEneHC7x7_1", "std::vector<double>", &t_cHadronEneHC7x7_1);
1121  tree_->Branch("t_cHadronEneHC7x7_2", "std::vector<double>", &t_cHadronEneHC7x7_2);
1122  tree_->Branch("t_cHadronEneHC7x7_3", "std::vector<double>", &t_cHadronEneHC7x7_3);
1123  tree_->Branch("t_nHadronEneHC7x7", "std::vector<double>", &t_nHadronEneHC7x7);
1124  tree_->Branch("t_photonEneHC7x7", "std::vector<double>", &t_photonEneHC7x7);
1125  tree_->Branch("t_eleEneHC7x7", "std::vector<double>", &t_eleEneHC7x7);
1126  tree_->Branch("t_muEneHC7x7", "std::vector<double>", &t_muEneHC7x7);
1127 
1128  tree_->Branch("t_maxNearPR", "std::vector<double>", &t_maxNearPR);
1129  tree_->Branch("t_cHadronEneR", "std::vector<double>", &t_cHadronEneR);
1130  tree_->Branch("t_cHadronEneR_1", "std::vector<double>", &t_cHadronEneR_1);
1131  tree_->Branch("t_cHadronEneR_2", "std::vector<double>", &t_cHadronEneR_2);
1132  tree_->Branch("t_cHadronEneR_3", "std::vector<double>", &t_cHadronEneR_3);
1133  tree_->Branch("t_nHadronEneR", "std::vector<double>", &t_nHadronEneR);
1134  tree_->Branch("t_photonEneR", "std::vector<double>", &t_photonEneR);
1135  tree_->Branch("t_eleEneR", "std::vector<double>", &t_eleEneR);
1136  tree_->Branch("t_muEneR", "std::vector<double>", &t_muEneR);
1137 
1138  tree_->Branch("t_maxNearPIsoR", "std::vector<double>", &t_maxNearPIsoR);
1139  tree_->Branch("t_cHadronEneIsoR", "std::vector<double>", &t_cHadronEneIsoR);
1140  tree_->Branch("t_cHadronEneIsoR_1", "std::vector<double>", &t_cHadronEneIsoR_1);
1141  tree_->Branch("t_cHadronEneIsoR_2", "std::vector<double>", &t_cHadronEneIsoR_2);
1142  tree_->Branch("t_cHadronEneIsoR_3", "std::vector<double>", &t_cHadronEneIsoR_3);
1143  tree_->Branch("t_nHadronEneIsoR", "std::vector<double>", &t_nHadronEneIsoR);
1144  tree_->Branch("t_photonEneIsoR", "std::vector<double>", &t_photonEneIsoR);
1145  tree_->Branch("t_eleEneIsoR", "std::vector<double>", &t_eleEneIsoR);
1146  tree_->Branch("t_muEneIsoR", "std::vector<double>", &t_muEneIsoR);
1147 
1148  tree_->Branch("t_maxNearPHCR", "std::vector<double>", &t_maxNearPHCR);
1149  tree_->Branch("t_cHadronEneHCR", "std::vector<double>", &t_cHadronEneHCR);
1150  tree_->Branch("t_cHadronEneHCR_1", "std::vector<double>", &t_cHadronEneHCR_1);
1151  tree_->Branch("t_cHadronEneHCR_2", "std::vector<double>", &t_cHadronEneHCR_2);
1152  tree_->Branch("t_cHadronEneHCR_3", "std::vector<double>", &t_cHadronEneHCR_3);
1153  tree_->Branch("t_nHadronEneHCR", "std::vector<double>", &t_nHadronEneHCR);
1154  tree_->Branch("t_photonEneHCR", "std::vector<double>", &t_photonEneHCR);
1155  tree_->Branch("t_eleEneHCR", "std::vector<double>", &t_eleEneHCR);
1156  tree_->Branch("t_muEneHCR", "std::vector<double>", &t_muEneHCR);
1157 
1158  tree_->Branch("t_maxNearPIsoHCR", "std::vector<double>", &t_maxNearPIsoHCR);
1159  tree_->Branch("t_cHadronEneIsoHCR", "std::vector<double>", &t_cHadronEneIsoHCR);
1160  tree_->Branch("t_cHadronEneIsoHCR_1", "std::vector<double>", &t_cHadronEneIsoHCR_1);
1161  tree_->Branch("t_cHadronEneIsoHCR_2", "std::vector<double>", &t_cHadronEneIsoHCR_2);
1162  tree_->Branch("t_cHadronEneIsoHCR_3", "std::vector<double>", &t_cHadronEneIsoHCR_3);
1163  tree_->Branch("t_nHadronEneIsoHCR", "std::vector<double>", &t_nHadronEneIsoHCR);
1164  tree_->Branch("t_photonEneIsoHCR", "std::vector<double>", &t_photonEneIsoHCR);
1165  tree_->Branch("t_eleEneIsoHCR", "std::vector<double>", &t_eleEneIsoHCR);
1166  tree_->Branch("t_muEneIsoHCR", "std::vector<double>", &t_muEneIsoHCR);
1167 }
1168 
1170  // t_maxNearP31x31 ->clear();
1171  // t_nEvtProc ->clear();
1172 
1173  t_isoTrkPAll->clear();
1174  t_isoTrkPtAll->clear();
1175  t_isoTrkPhiAll->clear();
1176  t_isoTrkEtaAll->clear();
1177  t_isoTrkDPhiAll->clear();
1178  t_isoTrkDEtaAll->clear();
1179  t_isoTrkPdgIdAll->clear();
1180 
1181  t_isoTrkP->clear();
1182  t_isoTrkPt->clear();
1183  t_isoTrkEne->clear();
1184  t_isoTrkEta->clear();
1185  t_isoTrkPhi->clear();
1186  t_isoTrkEtaEC->clear();
1187  t_isoTrkPhiEC->clear();
1188  t_isoTrkPdgId->clear();
1189 
1190  t_maxNearP31x31->clear();
1191  t_cHadronEne31x31->clear();
1192  t_cHadronEne31x31_1->clear();
1193  t_cHadronEne31x31_2->clear();
1194  t_cHadronEne31x31_3->clear();
1195  t_nHadronEne31x31->clear();
1196  t_photonEne31x31->clear();
1197  t_eleEne31x31->clear();
1198  t_muEne31x31->clear();
1199 
1200  t_maxNearP25x25->clear();
1201  t_cHadronEne25x25->clear();
1202  t_cHadronEne25x25_1->clear();
1203  t_cHadronEne25x25_2->clear();
1204  t_cHadronEne25x25_3->clear();
1205  t_nHadronEne25x25->clear();
1206  t_photonEne25x25->clear();
1207  t_eleEne25x25->clear();
1208  t_muEne25x25->clear();
1209 
1210  t_maxNearP21x21->clear();
1211  t_cHadronEne21x21->clear();
1212  t_cHadronEne21x21_1->clear();
1213  t_cHadronEne21x21_2->clear();
1214  t_cHadronEne21x21_3->clear();
1215  t_nHadronEne21x21->clear();
1216  t_photonEne21x21->clear();
1217  t_eleEne21x21->clear();
1218  t_muEne21x21->clear();
1219 
1220  t_maxNearP15x15->clear();
1221  t_cHadronEne15x15->clear();
1222  t_cHadronEne15x15_1->clear();
1223  t_cHadronEne15x15_2->clear();
1224  t_cHadronEne15x15_3->clear();
1225  t_nHadronEne15x15->clear();
1226  t_photonEne15x15->clear();
1227  t_eleEne15x15->clear();
1228  t_muEne15x15->clear();
1229 
1230  t_maxNearP11x11->clear();
1231  t_cHadronEne11x11->clear();
1232  t_cHadronEne11x11_1->clear();
1233  t_cHadronEne11x11_2->clear();
1234  t_cHadronEne11x11_3->clear();
1235  t_nHadronEne11x11->clear();
1236  t_photonEne11x11->clear();
1237  t_eleEne11x11->clear();
1238  t_muEne11x11->clear();
1239 
1240  t_maxNearP9x9->clear();
1241  t_cHadronEne9x9->clear();
1242  t_cHadronEne9x9_1->clear();
1243  t_cHadronEne9x9_2->clear();
1244  t_cHadronEne9x9_3->clear();
1245  t_nHadronEne9x9->clear();
1246  t_photonEne9x9->clear();
1247  t_eleEne9x9->clear();
1248  t_muEne9x9->clear();
1249 
1250  t_maxNearP7x7->clear();
1251  t_cHadronEne7x7->clear();
1252  t_cHadronEne7x7_1->clear();
1253  t_cHadronEne7x7_2->clear();
1254  t_cHadronEne7x7_3->clear();
1255  t_nHadronEne7x7->clear();
1256  t_photonEne7x7->clear();
1257  t_eleEne7x7->clear();
1258  t_muEne7x7->clear();
1259 
1260  t_maxNearP3x3->clear();
1261  t_cHadronEne3x3->clear();
1262  t_cHadronEne3x3_1->clear();
1263  t_cHadronEne3x3_2->clear();
1264  t_cHadronEne3x3_3->clear();
1265  t_nHadronEne3x3->clear();
1266  t_photonEne3x3->clear();
1267  t_eleEne3x3->clear();
1268  t_muEne3x3->clear();
1269 
1270  t_maxNearP1x1->clear();
1271  t_cHadronEne1x1->clear();
1272  t_cHadronEne1x1_1->clear();
1273  t_cHadronEne1x1_2->clear();
1274  t_cHadronEne1x1_3->clear();
1275  t_nHadronEne1x1->clear();
1276  t_photonEne1x1->clear();
1277  t_eleEne1x1->clear();
1278  t_muEne1x1->clear();
1279 
1280  t_maxNearPHC1x1->clear();
1281  t_cHadronEneHC1x1->clear();
1282  t_cHadronEneHC1x1_1->clear();
1283  t_cHadronEneHC1x1_2->clear();
1284  t_cHadronEneHC1x1_3->clear();
1285  t_nHadronEneHC1x1->clear();
1286  t_photonEneHC1x1->clear();
1287  t_eleEneHC1x1->clear();
1288  t_muEneHC1x1->clear();
1289 
1290  t_maxNearPHC3x3->clear();
1291  t_cHadronEneHC3x3->clear();
1292  t_cHadronEneHC3x3_1->clear();
1293  t_cHadronEneHC3x3_2->clear();
1294  t_cHadronEneHC3x3_3->clear();
1295  t_nHadronEneHC3x3->clear();
1296  t_photonEneHC3x3->clear();
1297  t_eleEneHC3x3->clear();
1298  t_muEneHC3x3->clear();
1299 
1300  t_maxNearPHC5x5->clear();
1301  t_cHadronEneHC5x5->clear();
1302  t_cHadronEneHC5x5_1->clear();
1303  t_cHadronEneHC5x5_2->clear();
1304  t_cHadronEneHC5x5_3->clear();
1305  t_nHadronEneHC5x5->clear();
1306  t_photonEneHC5x5->clear();
1307  t_eleEneHC5x5->clear();
1308  t_muEneHC5x5->clear();
1309 
1310  t_maxNearPHC7x7->clear();
1311  t_cHadronEneHC7x7->clear();
1312  t_cHadronEneHC7x7_1->clear();
1313  t_cHadronEneHC7x7_2->clear();
1314  t_cHadronEneHC7x7_3->clear();
1315  t_nHadronEneHC7x7->clear();
1316  t_photonEneHC7x7->clear();
1317  t_eleEneHC7x7->clear();
1318  t_muEneHC7x7->clear();
1319 
1320  t_maxNearPR->clear();
1321  t_cHadronEneR->clear();
1322  t_cHadronEneR_1->clear();
1323  t_cHadronEneR_2->clear();
1324  t_cHadronEneR_3->clear();
1325  t_nHadronEneR->clear();
1326  t_photonEneR->clear();
1327  t_eleEneR->clear();
1328  t_muEneR->clear();
1329 
1330  t_maxNearPIsoR->clear();
1331  t_cHadronEneIsoR->clear();
1332  t_cHadronEneIsoR_1->clear();
1333  t_cHadronEneIsoR_2->clear();
1334  t_cHadronEneIsoR_3->clear();
1335  t_nHadronEneIsoR->clear();
1336  t_photonEneIsoR->clear();
1337  t_eleEneIsoR->clear();
1338  t_muEneIsoR->clear();
1339 
1340  t_maxNearPHCR->clear();
1341  t_cHadronEneHCR->clear();
1342  t_cHadronEneHCR_1->clear();
1343  t_cHadronEneHCR_2->clear();
1344  t_cHadronEneHCR_3->clear();
1345  t_nHadronEneHCR->clear();
1346  t_photonEneHCR->clear();
1347  t_eleEneHCR->clear();
1348  t_muEneHCR->clear();
1349 
1350  t_maxNearPIsoHCR->clear();
1351  t_cHadronEneIsoHCR->clear();
1352  t_cHadronEneIsoHCR_1->clear();
1353  t_cHadronEneIsoHCR_2->clear();
1354  t_cHadronEneIsoHCR_3->clear();
1355  t_nHadronEneIsoHCR->clear();
1356  t_photonEneIsoHCR->clear();
1357  t_eleEneIsoHCR->clear();
1358  t_muEneIsoHCR->clear();
1359 }
1360 
1362  int partID[Particles] = {11, -11, 21, 211, -211, 321, -321, 2212, 2112, -2212, -2112, 130};
1363  int ix = -1;
1364  for (int ik = 0; ik < Particles; ++ik) {
1365  if (pdgId == partID[ik]) {
1366  ix = ik;
1367  break;
1368  }
1369  }
1370  return ix;
1371 }
1372 
1373 //define this as a plug-in
StudyCaloGen::t_cHadronEne1x1
std::vector< double > * t_cHadronEne1x1
Definition: StudyCaloGen.cc:169
StudyCaloGen::isoinfo25x25
spr::genSimInfo isoinfo25x25
Definition: StudyCaloGen.cc:232
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
StudyCaloGen::t_cHadronEneHC1x1_3
std::vector< double > * t_cHadronEneHC1x1_3
Definition: StudyCaloGen.cc:176
StudyCaloGen::t_eleEne7x7
std::vector< double > * t_eleEne7x7
Definition: StudyCaloGen.cc:158
StudyCaloGen::t_maxNearP31x31
std::vector< double > * t_maxNearP31x31
Definition: StudyCaloGen.cc:112
StudyCaloGen::t_photonEne3x3
std::vector< double > * t_photonEne3x3
Definition: StudyCaloGen.cc:164
StudyCaloGen::t_isoTrkPAll
std::vector< double > * t_isoTrkPAll
Definition: StudyCaloGen.cc:95
StudyCaloGen::t_nHadronEne15x15
std::vector< double > * t_nHadronEne15x15
Definition: StudyCaloGen.cc:135
StudyCaloGen::t_nHadronEneHC5x5
std::vector< double > * t_nHadronEneHC5x5
Definition: StudyCaloGen.cc:191
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
StudyCaloGen::t_maxNearPHC5x5
std::vector< double > * t_maxNearPHC5x5
Definition: StudyCaloGen.cc:189
electrons_cff.bool
bool
Definition: electrons_cff.py:393
EDAnalyzer.h
StudyCaloGen::etaMax_
double etaMax_
Definition: StudyCaloGen.cc:80
mps_fire.i
i
Definition: mps_fire.py:428
StudyCaloGen::t_nHadronEneHCR
std::vector< double > * t_nHadronEneHCR
Definition: StudyCaloGen.cc:219
StudyCaloGen::t_maxNearP7x7
std::vector< double > * t_maxNearP7x7
Definition: StudyCaloGen.cc:154
StudyCaloGen::t_eleEneHC3x3
std::vector< double > * t_eleEneHC3x3
Definition: StudyCaloGen.cc:186
spr::genSimInfo::eleEne
double eleEne
Definition: GenSimInfo.h:46
FreeTrajectoryState.h
CaloNavigator.h
genParticles2HepMC_cfi.genParticles
genParticles
Definition: genParticles2HepMC_cfi.py:4
StudyCaloGen::t_cHadronEne15x15_3
std::vector< double > * t_cHadronEne15x15_3
Definition: StudyCaloGen.cc:134
StudyCaloGen::t_cHadronEneHC7x7_2
std::vector< double > * t_cHadronEneHC7x7_2
Definition: StudyCaloGen.cc:197
funct::false
false
Definition: Factorize.h:29
StudyCaloGen::t_photonEneIsoHCR
std::vector< double > * t_photonEneIsoHCR
Definition: StudyCaloGen.cc:227
StudyCaloGen::bookHistograms
void bookHistograms()
Definition: StudyCaloGen.cc:767
StudyCaloGen::t_photonEneR
std::vector< double > * t_photonEneR
Definition: StudyCaloGen.cc:206
StudyCaloGen::t_muEne15x15
std::vector< double > * t_muEne15x15
Definition: StudyCaloGen.cc:138
StudyCaloGen::t_cHadronEneR
std::vector< double > * t_cHadronEneR
Definition: StudyCaloGen.cc:204
StudyCaloGen::t_maxNearPHC3x3
std::vector< double > * t_maxNearPHC3x3
Definition: StudyCaloGen.cc:182
StudyCaloGen::t_isoTrkPhiAll
std::vector< double > * t_isoTrkPhiAll
Definition: StudyCaloGen.cc:97
StudyCaloGen::t_eleEneIsoR
std::vector< double > * t_eleEneIsoR
Definition: StudyCaloGen.cc:214
StudyCaloGen::t_photonEne21x21
std::vector< double > * t_photonEne21x21
Definition: StudyCaloGen.cc:129
StudyCaloGen::t_cHadronEneHC7x7_1
std::vector< double > * t_cHadronEneHC7x7_1
Definition: StudyCaloGen.cc:197
StudyCaloGen::t_cHadronEne1x1_1
std::vector< double > * t_cHadronEne1x1_1
Definition: StudyCaloGen.cc:169
StudyCaloGen::t_cHadronEneHC7x7_3
std::vector< double > * t_cHadronEneHC7x7_3
Definition: StudyCaloGen.cc:197
StudyCaloGen::isoinfoHC7x7
spr::genSimInfo isoinfoHC7x7
Definition: StudyCaloGen.cc:233
ESHandle.h
etaBin
int etaBin(const l1t::HGCalMulticluster *cl)
Definition: L1EGammaEEProducer.cc:19
StudyCaloGen::t_cHadronEne15x15_2
std::vector< double > * t_cHadronEne15x15_2
Definition: StudyCaloGen.cc:134
StudyCaloGen::t_cHadronEne3x3_3
std::vector< double > * t_cHadronEne3x3_3
Definition: StudyCaloGen.cc:162
StudyCaloGen::tok_hepmc_
edm::EDGetTokenT< edm::HepMCProduct > tok_hepmc_
Definition: StudyCaloGen.cc:84
StudyCaloGen::t_eleEneIsoHCR
std::vector< double > * t_eleEneIsoHCR
Definition: StudyCaloGen.cc:228
StudyCaloGen::t_nHadronEneHC3x3
std::vector< double > * t_nHadronEneHC3x3
Definition: StudyCaloGen.cc:184
StudyCaloGen::isoinfoHC1x1
spr::genSimInfo isoinfoHC1x1
Definition: StudyCaloGen.cc:233
StudyCaloGen::t_cHadronEne9x9
std::vector< double > * t_cHadronEne9x9
Definition: StudyCaloGen.cc:148
StudyCaloGen::t_photonEne25x25
std::vector< double > * t_photonEne25x25
Definition: StudyCaloGen.cc:122
GenSimInfo.h
StudyCaloGen::t_cHadronEne11x11
std::vector< double > * t_cHadronEne11x11
Definition: StudyCaloGen.cc:141
StudyCaloGen::t_maxNearPHC1x1
std::vector< double > * t_maxNearPHC1x1
Definition: StudyCaloGen.cc:175
StudyCaloGen::t_cHadronEne9x9_3
std::vector< double > * t_cHadronEne9x9_3
Definition: StudyCaloGen.cc:148
StudyCaloGen::t_muEne3x3
std::vector< double > * t_muEne3x3
Definition: StudyCaloGen.cc:166
reco::deltaPhi
constexpr double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:26
deltaPhi.h
StudyCaloGen::t_muEne21x21
std::vector< double > * t_muEne21x21
Definition: StudyCaloGen.cc:131
edm::EDGetTokenT< edm::HepMCProduct >
StudyCaloGen::NPBins_
static constexpr int NPBins_
Definition: StudyCaloGen.cc:75
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
StudyCaloGen::t_photonEneHCR
std::vector< double > * t_photonEneHCR
Definition: StudyCaloGen.cc:220
StudyCaloGen::t_cHadronEneR_3
std::vector< double > * t_cHadronEneR_3
Definition: StudyCaloGen.cc:204
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
StudyCaloGen::t_cHadronEne11x11_2
std::vector< double > * t_cHadronEne11x11_2
Definition: StudyCaloGen.cc:141
HcalTopology
Definition: HcalTopology.h:26
StudyCaloGen::isoinfo3x3
spr::genSimInfo isoinfo3x3
Definition: StudyCaloGen.cc:231
EBDetId.h
EEDetId.h
StudyCaloGen::verbosity_
int verbosity_
Definition: StudyCaloGen.cc:89
StudyCaloGen::t_nHadronEne9x9
std::vector< double > * t_nHadronEne9x9
Definition: StudyCaloGen.cc:149
StudyCaloGen::t_nHadronEne25x25
std::vector< double > * t_nHadronEne25x25
Definition: StudyCaloGen.cc:121
StudyCaloGen::t_cHadronEneIsoR
std::vector< double > * t_cHadronEneIsoR
Definition: StudyCaloGen.cc:211
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
StudyCaloGen::isoinfoHC5x5
spr::genSimInfo isoinfoHC5x5
Definition: StudyCaloGen.cc:233
StudyCaloGen::t_eleEne15x15
std::vector< double > * t_eleEne15x15
Definition: StudyCaloGen.cc:137
StudyCaloGen::h_NEventProc
TH1I * h_NEventProc
Definition: StudyCaloGen.cc:91
StudyCaloGen::endJob
void endJob() override
Definition: StudyCaloGen.cc:66
StudyCaloGen::StudyCaloGen
StudyCaloGen(const edm::ParameterSet &)
Definition: StudyCaloGen.cc:237
StudyCaloGen::t_cHadronEne25x25_2
std::vector< double > * t_cHadronEne25x25_2
Definition: StudyCaloGen.cc:120
StudyCaloGen::t_isoTrkPt
std::vector< double > * t_isoTrkPt
Definition: StudyCaloGen.cc:104
StudyCaloGen::a_neutIsoR_
double a_neutIsoR_
Definition: StudyCaloGen.cc:88
StudyCaloGen::isoinfo1x1
spr::genSimInfo isoinfo1x1
Definition: StudyCaloGen.cc:231
StudyCaloGen::particleCode
int particleCode(int)
Definition: StudyCaloGen.cc:1361
StudyCaloGen::t_nHadronEne1x1
std::vector< double > * t_nHadronEne1x1
Definition: StudyCaloGen.cc:170
StudyCaloGen::t_cHadronEne25x25_3
std::vector< double > * t_cHadronEne25x25_3
Definition: StudyCaloGen.cc:120
TFileDirectory
Definition: TFileDirectory.h:24
CaloTopologyRecord
Definition: CaloTopologyRecord.h:10
StudyCaloGen::t_isoTrkEtaAll
std::vector< double > * t_isoTrkEtaAll
Definition: StudyCaloGen.cc:98
StudyCaloGen::t_eleEne1x1
std::vector< double > * t_eleEne1x1
Definition: StudyCaloGen.cc:172
StudyCaloGen::t_cHadronEne3x3_2
std::vector< double > * t_cHadronEne3x3_2
Definition: StudyCaloGen.cc:162
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
StudyCaloGen::t_cHadronEne21x21_2
std::vector< double > * t_cHadronEne21x21_2
Definition: StudyCaloGen.cc:127
StudyCaloGen::t_isoTrkPdgId
std::vector< double > * t_isoTrkPdgId
Definition: StudyCaloGen.cc:110
StudyCaloGen::h_pEta
TH2D * h_pEta[Particles]
Definition: StudyCaloGen.cc:92
StudyCaloGen::t_cHadronEne25x25
std::vector< double > * t_cHadronEne25x25
Definition: StudyCaloGen.cc:120
StudyCaloGen::t_photonEneHC5x5
std::vector< double > * t_photonEneHC5x5
Definition: StudyCaloGen.cc:192
convertSQLiteXML.ok
bool ok
Definition: convertSQLiteXML.py:98
edm::Handle< edm::HepMCProduct >
StudyCaloGen::isoinfoHCR
spr::genSimInfo isoinfoHCR
Definition: StudyCaloGen.cc:234
StudyCaloGen::t_cHadronEneHCR_2
std::vector< double > * t_cHadronEneHCR_2
Definition: StudyCaloGen.cc:218
CaloTopology
Definition: CaloTopology.h:19
StudyCaloGen::t_cHadronEne7x7_1
std::vector< double > * t_cHadronEne7x7_1
Definition: StudyCaloGen.cc:155
StudyCaloGen::t_cHadronEne21x21
std::vector< double > * t_cHadronEne21x21
Definition: StudyCaloGen.cc:127
StudyCaloGen
Definition: StudyCaloGen.cc:57
StudyCaloGen::t_isoTrkPhi
std::vector< double > * t_isoTrkPhi
Definition: StudyCaloGen.cc:107
StudyCaloGen::t_cHadronEneHCR_3
std::vector< double > * t_cHadronEneHCR_3
Definition: StudyCaloGen.cc:218
StudyCaloGen::isoinfoIsoHCR
spr::genSimInfo isoinfoIsoHCR
Definition: StudyCaloGen.cc:234
StudyCaloGen::isoinfo9x9
spr::genSimInfo isoinfo9x9
Definition: StudyCaloGen.cc:231
StudyCaloGen::isoinfo21x21
spr::genSimInfo isoinfo21x21
Definition: StudyCaloGen.cc:232
StudyCaloGen::t_cHadronEne21x21_1
std::vector< double > * t_cHadronEne21x21_1
Definition: StudyCaloGen.cc:127
StudyCaloGen::t_cHadronEneHC1x1_2
std::vector< double > * t_cHadronEneHC1x1_2
Definition: StudyCaloGen.cc:176
HepMC::GenEvent
Definition: hepmc_rootio.cc:9
StudyCaloGen::t_isoTrkEne
std::vector< double > * t_isoTrkEne
Definition: StudyCaloGen.cc:105
StudyCaloGen::beginJob
void beginJob() override
Definition: StudyCaloGen.cc:547
StudyCaloGen::t_cHadronEne11x11_3
std::vector< double > * t_cHadronEne11x11_3
Definition: StudyCaloGen.cc:141
StudyCaloGen::t_cHadronEneHC5x5_2
std::vector< double > * t_cHadronEneHC5x5_2
Definition: StudyCaloGen.cc:190
StudyCaloGen::t_eleEneHC7x7
std::vector< double > * t_eleEneHC7x7
Definition: StudyCaloGen.cc:200
StudyCaloGen::t_muEneR
std::vector< double > * t_muEneR
Definition: StudyCaloGen.cc:208
StudyCaloGen::t_photonEneHC7x7
std::vector< double > * t_photonEneHC7x7
Definition: StudyCaloGen.cc:199
StudyCaloGen::tok_genParticles_
edm::EDGetTokenT< reco::GenParticleCollection > tok_genParticles_
Definition: StudyCaloGen.cc:85
IdealMagneticFieldRecord
Definition: IdealMagneticFieldRecord.h:11
accept
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:30
MakerMacros.h
StudyCaloGen::fillTrack
void fillTrack(GlobalPoint &posVec, math::XYZTLorentzVector &momVec, GlobalPoint &posECAL, int pdgId, bool okECAL, bool accpet)
Definition: StudyCaloGen.cc:561
StudyCaloGen::t_eleEneHC1x1
std::vector< double > * t_eleEneHC1x1
Definition: StudyCaloGen.cc:179
CaloGeometry
Definition: CaloGeometry.h:21
StudyCaloGen::t_cHadronEne25x25_1
std::vector< double > * t_cHadronEne25x25_1
Definition: StudyCaloGen.cc:120
StudyCaloGen::t_photonEne15x15
std::vector< double > * t_photonEne15x15
Definition: StudyCaloGen.cc:136
StudyCaloGen::t_cHadronEne1x1_3
std::vector< double > * t_cHadronEne1x1_3
Definition: StudyCaloGen.cc:169
edm::EventSetup::get
T get() const
Definition: EventSetup.h:80
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
StudyCaloGen::t_nHadronEne21x21
std::vector< double > * t_nHadronEne21x21
Definition: StudyCaloGen.cc:128
StudyCaloGen::t_cHadronEneIsoHCR_2
std::vector< double > * t_cHadronEneIsoHCR_2
Definition: StudyCaloGen.cc:225
StudyCaloGen::t_muEne25x25
std::vector< double > * t_muEne25x25
Definition: StudyCaloGen.cc:124
Service.h
StudyCaloGen::t_eleEne21x21
std::vector< double > * t_eleEne21x21
Definition: StudyCaloGen.cc:130
PVValHelper::eta
Definition: PVValidationHelpers.h:69
spr::genSimInfo::muEne
double muEne
Definition: GenSimInfo.h:46
ChargeIsolation.h
StudyCaloGen::t_cHadronEneHC3x3
std::vector< double > * t_cHadronEneHC3x3
Definition: StudyCaloGen.cc:183
GloballyPositioned.h
StudyCaloGen::t_maxNearPHC7x7
std::vector< double > * t_maxNearPHC7x7
Definition: StudyCaloGen.cc:196
StudyCaloGen::t_cHadronEne9x9_1
std::vector< double > * t_cHadronEne9x9_1
Definition: StudyCaloGen.cc:148
IdealMagneticFieldRecord.h
StudyCaloGen::t_photonEneIsoR
std::vector< double > * t_photonEneIsoR
Definition: StudyCaloGen.cc:213
edm::ESHandle< MagneticField >
StudyCaloGen::t_cHadronEne7x7_2
std::vector< double > * t_cHadronEne7x7_2
Definition: StudyCaloGen.cc:155
StudyCaloGen::t_cHadronEneHCR
std::vector< double > * t_cHadronEneHCR
Definition: StudyCaloGen.cc:218
StudyCaloGen::t_cHadronEne21x21_3
std::vector< double > * t_cHadronEne21x21_3
Definition: StudyCaloGen.cc:127
StudyCaloGen::isoinfo15x15
spr::genSimInfo isoinfo15x15
Definition: StudyCaloGen.cc:232
L1TDiffHarvesting_cfi.dir1
dir1
Definition: L1TDiffHarvesting_cfi.py:10
StudyCaloGen::isoinfo7x7
spr::genSimInfo isoinfo7x7
Definition: StudyCaloGen.cc:231
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
Point3DBase< float, GlobalTag >
StudyCaloGen::t_maxNearPHCR
std::vector< double > * t_maxNearPHCR
Definition: StudyCaloGen.cc:217
StudyCaloGen::t_maxNearP3x3
std::vector< double > * t_maxNearP3x3
Definition: StudyCaloGen.cc:161
StudyCaloGen::pCutIsolate_
double pCutIsolate_
Definition: StudyCaloGen.cc:80
HcalRecNumberingRecord
Definition: HcalRecNumberingRecord.h:23
StudyCaloGen::a_coneR_
double a_coneR_
Definition: StudyCaloGen.cc:88
muonRecoAnalyzer_cfi.pBin
pBin
Definition: muonRecoAnalyzer_cfi.py:37
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
StudyCaloGen::t_maxNearP21x21
std::vector< double > * t_maxNearP21x21
Definition: StudyCaloGen.cc:126
StudyCaloGen::t_photonEne7x7
std::vector< double > * t_photonEne7x7
Definition: StudyCaloGen.cc:157
spr::hGenSimInfo
void hGenSimInfo(const DetId &coreDet, HepMC::GenEvent::particle_const_iterator trkItr, std::vector< spr::propagatedGenTrackID > &trackIds, const HcalTopology *topology, int ieta, int iphi, spr::genSimInfo &info, bool includeHO=false, bool debug=false)
Definition: GenSimInfo.cc:101
TFileService.h
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
TFileService::mkdir
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
Definition: TFileService.h:69
StudyCaloGen::t_maxNearP25x25
std::vector< double > * t_maxNearP25x25
Definition: StudyCaloGen.cc:119
StudyCaloGen::t_isoTrkPtAll
std::vector< double > * t_isoTrkPtAll
Definition: StudyCaloGen.cc:96
CaloSubdetectorGeometry.h
StudyCaloGen::t_maxNearP9x9
std::vector< double > * t_maxNearP9x9
Definition: StudyCaloGen.cc:147
edm::ParameterSet
Definition: ParameterSet.h:47
StudyCaloGen::EtaBins_
static constexpr int EtaBins_
Definition: StudyCaloGen.cc:77
spr::eGenSimInfo
void eGenSimInfo(const DetId &coreDet, HepMC::GenEvent::particle_const_iterator trkItr, std::vector< spr::propagatedGenTrackID > &trackIds, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, spr::genSimInfo &info, bool debug=false)
Definition: GenSimInfo.cc:13
Event.h
ParticleDataTable.h
StudyCaloGen::t_muEneHC5x5
std::vector< double > * t_muEneHC5x5
Definition: StudyCaloGen.cc:194
StudyCaloGen::t_eleEne25x25
std::vector< double > * t_eleEne25x25
Definition: StudyCaloGen.cc:123
StudyCaloGen::t_photonEneHC1x1
std::vector< double > * t_photonEneHC1x1
Definition: StudyCaloGen.cc:178
StudyCaloGen::t_cHadronEneHC1x1_1
std::vector< double > * t_cHadronEneHC1x1_1
Definition: StudyCaloGen.cc:176
StudyCaloGen::t_muEneHCR
std::vector< double > * t_muEneHCR
Definition: StudyCaloGen.cc:222
StudyCaloGen::NEtaBins_
static constexpr int NEtaBins_
Definition: StudyCaloGen.cc:76
spr::genSimInfo::nHadronEne
double nHadronEne
Definition: GenSimInfo.h:46
HcalDetId.h
StudyCaloGen::t_cHadronEneHC3x3_1
std::vector< double > * t_cHadronEneHC3x3_1
Definition: StudyCaloGen.cc:183
StudyCaloGen::clearTreeVectors
void clearTreeVectors()
Definition: StudyCaloGen.cc:1169
CaloTopologyRecord.h
StudyCaloGen::t_cHadronEne31x31_3
std::vector< double > * t_cHadronEne31x31_3
Definition: StudyCaloGen.cc:113
StudyCaloGen::t_cHadronEne11x11_1
std::vector< double > * t_cHadronEne11x11_1
Definition: StudyCaloGen.cc:141
PV3DBase::eta
T eta() const
Definition: PV3DBase.h:73
StudyCaloGen::t_cHadronEneIsoR_3
std::vector< double > * t_cHadronEneIsoR_3
Definition: StudyCaloGen.cc:211
LorentzVector.h
edm::Service< TFileService >
createfilelist.int
int
Definition: createfilelist.py:10
StudyCaloGen::isoinfoIsoR
spr::genSimInfo isoinfoIsoR
Definition: StudyCaloGen.cc:234
StudyCaloGen::a_charIsoR_
double a_charIsoR_
Definition: StudyCaloGen.cc:88
iEvent
int iEvent
Definition: GenABIO.cc:224
StudyCaloGen::isoinfoHC3x3
spr::genSimInfo isoinfoHC3x3
Definition: StudyCaloGen.cc:233
StudyCaloGen::t_eleEne3x3
std::vector< double > * t_eleEne3x3
Definition: StudyCaloGen.cc:165
StudyCaloGen::t_isoTrkP
std::vector< double > * t_isoTrkP
Definition: StudyCaloGen.cc:103
StudyCaloGen::t_eleEneHCR
std::vector< double > * t_eleEneHCR
Definition: StudyCaloGen.cc:221
StudyCaloGen::t_eleEneR
std::vector< double > * t_eleEneR
Definition: StudyCaloGen.cc:207
StudyCaloGen::tree_
TTree * tree_
Definition: StudyCaloGen.cc:93
StudyCaloGen::t_photonEne9x9
std::vector< double > * t_photonEne9x9
Definition: StudyCaloGen.cc:150
EgammaValidation_cff.pdgId
pdgId
Definition: EgammaValidation_cff.py:118
StudyCaloGen::t_maxNearP11x11
std::vector< double > * t_maxNearP11x11
Definition: StudyCaloGen.cc:140
StudyCaloGen::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: StudyCaloGen.cc:282
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:57
spr::genSimInfo
Definition: GenSimInfo.h:37
TrackAssociatorRecord.h
StudyCaloGen::t_maxNearPIsoHCR
std::vector< double > * t_maxNearPIsoHCR
Definition: StudyCaloGen.cc:224
edm::HepMCProduct::GetEvent
const HepMC::GenEvent * GetEvent() const
Definition: HepMCProduct.h:34
StudyCaloGen::genSrc_
std::string genSrc_
Definition: StudyCaloGen.cc:82
spr::genSimInfo::cHadronEne
double cHadronEne
Definition: GenSimInfo.h:46
StudyCaloGen::t_nHadronEneIsoHCR
std::vector< double > * t_nHadronEneIsoHCR
Definition: StudyCaloGen.cc:226
StudyCaloGen::isoinfoR
spr::genSimInfo isoinfoR
Definition: StudyCaloGen.cc:234
StudyCaloGen::t_cHadronEneR_2
std::vector< double > * t_cHadronEneR_2
Definition: StudyCaloGen.cc:204
get
#define get
StudyCaloGen::t_cHadronEneHCR_1
std::vector< double > * t_cHadronEneHCR_1
Definition: StudyCaloGen.cc:218
StudyCaloGen::t_isoTrkPhiEC
std::vector< double > * t_isoTrkPhiEC
Definition: StudyCaloGen.cc:109
StudyCaloGen::t_cHadronEneHC3x3_2
std::vector< double > * t_cHadronEneHC3x3_2
Definition: StudyCaloGen.cc:183
StudyCaloGen::t_eleEneHC5x5
std::vector< double > * t_eleEneHC5x5
Definition: StudyCaloGen.cc:193
StudyCaloGen::t_cHadronEne31x31_1
std::vector< double > * t_cHadronEne31x31_1
Definition: StudyCaloGen.cc:113
StudyCaloGen::t_cHadronEneR_1
std::vector< double > * t_cHadronEneR_1
Definition: StudyCaloGen.cc:204
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:120
CaloTopology.h
StudyCaloGen::t_isoTrkDPhiAll
std::vector< double > * t_isoTrkDPhiAll
Definition: StudyCaloGen.cc:101
StudyCaloGen::t_cHadronEneHC5x5_3
std::vector< double > * t_cHadronEneHC5x5_3
Definition: StudyCaloGen.cc:190
StudyCaloGen::t_cHadronEne9x9_2
std::vector< double > * t_cHadronEne9x9_2
Definition: StudyCaloGen.cc:148
spr::propagateCALO
std::vector< spr::propagatedTrackID > propagateCALO(edm::Handle< reco::TrackCollection > &trkCollection, const CaloGeometry *geo, const MagneticField *bField, const std::string &theTrackQuality, bool debug=false)
Definition: CaloPropagateTrack.cc:141
DDAxes::phi
StudyCaloGen::t_maxNearP15x15
std::vector< double > * t_maxNearP15x15
Definition: StudyCaloGen.cc:133
CaloSubdetectorTopology.h
StudyCaloGen::t_isoTrkEtaEC
std::vector< double > * t_isoTrkEtaEC
Definition: StudyCaloGen.cc:108
StudyCaloGen::t_nHadronEne11x11
std::vector< double > * t_nHadronEne11x11
Definition: StudyCaloGen.cc:142
StudyCaloGen::t_muEneIsoHCR
std::vector< double > * t_muEneIsoHCR
Definition: StudyCaloGen.cc:229
StudyCaloGen::nEventProc
int nEventProc
Definition: StudyCaloGen.cc:78
StudyCaloGen::ptMin_
double ptMin_
Definition: StudyCaloGen.cc:80
HcalTopology.h
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
StudyCaloGen::t_cHadronEneHC5x5
std::vector< double > * t_cHadronEneHC5x5
Definition: StudyCaloGen.cc:190
std
Definition: JetResolutionObject.h:76
StudyCaloGen::t_cHadronEne3x3_1
std::vector< double > * t_cHadronEne3x3_1
Definition: StudyCaloGen.cc:162
StudyCaloGen::t_muEne9x9
std::vector< double > * t_muEne9x9
Definition: StudyCaloGen.cc:152
StudyCaloGen::t_cHadronEneHC3x3_3
std::vector< double > * t_cHadronEneHC3x3_3
Definition: StudyCaloGen.cc:183
StudyCaloGen::t_cHadronEneIsoHCR_3
std::vector< double > * t_cHadronEneIsoHCR_3
Definition: StudyCaloGen.cc:225
Calorimetry_cff.bField
bField
Definition: Calorimetry_cff.py:292
StudyCaloGen::t_muEne31x31
std::vector< double > * t_muEne31x31
Definition: StudyCaloGen.cc:117
spr::genSimInfo::maxNearP
double maxNearP
Definition: GenSimInfo.h:45
DetId.h
Frameworkfwd.h
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
CaloPropagateTrack.h
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
StudyCaloGen::t_maxNearPR
std::vector< double > * t_maxNearPR
Definition: StudyCaloGen.cc:203
StudyCaloGen::t_muEne1x1
std::vector< double > * t_muEne1x1
Definition: StudyCaloGen.cc:173
CaloGeometry.h
TFileService::kSharedResource
static const std::string kSharedResource
Definition: TFileService.h:76
StudyCaloGen::a_Isolation_
bool a_Isolation_
Definition: StudyCaloGen.cc:81
StudyCaloGen::isoinfo11x11
spr::genSimInfo isoinfo11x11
Definition: StudyCaloGen.cc:231
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
EventSetup.h
StudyCaloGen::t_muEneHC7x7
std::vector< double > * t_muEneHC7x7
Definition: StudyCaloGen.cc:201
StudyCaloGen::genPartEtaBins_
double genPartEtaBins_[NEtaBins_+1]
Definition: StudyCaloGen.cc:79
StudyCaloGen::t_muEneHC1x1
std::vector< double > * t_muEneHC1x1
Definition: StudyCaloGen.cc:180
StudyCaloGen::t_cHadronEneIsoHCR_1
std::vector< double > * t_cHadronEneIsoHCR_1
Definition: StudyCaloGen.cc:225
spr::genSimInfo::cHadronEne_
double cHadronEne_[3]
Definition: GenSimInfo.h:48
StudyCaloGen::t_cHadronEne7x7
std::vector< double > * t_cHadronEne7x7
Definition: StudyCaloGen.cc:155
StudyCaloGen::useHepMC_
bool useHepMC_
Definition: StudyCaloGen.cc:87
spr::genSimInfo::photonEne
double photonEne
Definition: GenSimInfo.h:46
StudyCaloGen::t_cHadronEneHC1x1
std::vector< double > * t_cHadronEneHC1x1
Definition: StudyCaloGen.cc:176
StudyCaloGen::t_photonEne1x1
std::vector< double > * t_photonEne1x1
Definition: StudyCaloGen.cc:171
StudyCaloGen::t_maxNearPIsoR
std::vector< double > * t_maxNearPIsoR
Definition: StudyCaloGen.cc:210
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
StudyCaloGen::PBins_
static constexpr int PBins_
Definition: StudyCaloGen.cc:77
StudyCaloGen::t_photonEne31x31
std::vector< double > * t_photonEne31x31
Definition: StudyCaloGen.cc:115
StudyCaloGen::t_nHadronEne3x3
std::vector< double > * t_nHadronEne3x3
Definition: StudyCaloGen.cc:163
StudyCaloGen::t_eleEne9x9
std::vector< double > * t_eleEne9x9
Definition: StudyCaloGen.cc:151
ParameterSet.h
StudyCaloGen::t_muEneIsoR
std::vector< double > * t_muEneIsoR
Definition: StudyCaloGen.cc:215
createTree.pp
pp
Definition: createTree.py:17
HepMCProduct.h
StudyCaloGen::fillIsolatedTrack
void fillIsolatedTrack(math::XYZTLorentzVector &momVec, GlobalPoint &posECAL, int pdgId)
Definition: StudyCaloGen.cc:586
StudyCaloGen::Particles
static constexpr int Particles
Definition: StudyCaloGen.cc:77
StudyCaloGen::t_nHadronEne31x31
std::vector< double > * t_nHadronEne31x31
Definition: StudyCaloGen.cc:114
StudyCaloGen::t_cHadronEneIsoR_2
std::vector< double > * t_cHadronEneIsoR_2
Definition: StudyCaloGen.cc:211
StudyCaloGen::t_cHadronEne15x15_1
std::vector< double > * t_cHadronEne15x15_1
Definition: StudyCaloGen.cc:134
StudyCaloGen::t_cHadronEne31x31_2
std::vector< double > * t_cHadronEne31x31_2
Definition: StudyCaloGen.cc:113
StudyCaloGen::genPartPBins_
double genPartPBins_[NPBins_+1]
Definition: StudyCaloGen.cc:79
StudyCaloGen::t_nHadronEneHC7x7
std::vector< double > * t_nHadronEneHC7x7
Definition: StudyCaloGen.cc:198
StudyCaloGen::t_muEne7x7
std::vector< double > * t_muEne7x7
Definition: StudyCaloGen.cc:159
edm::Event
Definition: Event.h:73
StudyCaloGen::isoinfo31x31
spr::genSimInfo isoinfo31x31
Definition: StudyCaloGen.cc:232
StudyCaloGen::t_cHadronEne15x15
std::vector< double > * t_cHadronEne15x15
Definition: StudyCaloGen.cc:134
StudyCaloGen::a_mipR_
double a_mipR_
Definition: StudyCaloGen.cc:88
StudyCaloGen::t_isoTrkPdgIdAll
std::vector< double > * t_isoTrkPdgIdAll
Definition: StudyCaloGen.cc:99
MagneticField
Definition: MagneticField.h:19
StudyCaloGen::t_isoTrkEta
std::vector< double > * t_isoTrkEta
Definition: StudyCaloGen.cc:106
StudyCaloGen::t_nHadronEneIsoR
std::vector< double > * t_nHadronEneIsoR
Definition: StudyCaloGen.cc:212
dttmaxenums::R
Definition: DTTMax.h:29
StudyCaloGen::t_nHadronEne7x7
std::vector< double > * t_nHadronEne7x7
Definition: StudyCaloGen.cc:156
StudyCaloGen::t_cHadronEneHC7x7
std::vector< double > * t_cHadronEneHC7x7
Definition: StudyCaloGen.cc:197
StudyCaloGen::t_muEne11x11
std::vector< double > * t_muEne11x11
Definition: StudyCaloGen.cc:145
StudyCaloGen::t_cHadronEne1x1_2
std::vector< double > * t_cHadronEne1x1_2
Definition: StudyCaloGen.cc:169
StudyCaloGen::t_photonEne11x11
std::vector< double > * t_photonEne11x11
Definition: StudyCaloGen.cc:143
StudyCaloGen::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: StudyCaloGen.cc:267
edm::InputTag
Definition: InputTag.h:15
StudyCaloGen::t_nHadronEneR
std::vector< double > * t_nHadronEneR
Definition: StudyCaloGen.cc:205
StudyCaloGen::t_cHadronEne7x7_3
std::vector< double > * t_cHadronEne7x7_3
Definition: StudyCaloGen.cc:155
PV3DBase::phi
Geom::Phi< T > phi() const
Definition: PV3DBase.h:66
StudyCaloGen::t_nHadronEneHC1x1
std::vector< double > * t_nHadronEneHC1x1
Definition: StudyCaloGen.cc:177
StudyCaloGen::t_photonEneHC3x3
std::vector< double > * t_photonEneHC3x3
Definition: StudyCaloGen.cc:185
StudyCaloGen::t_eleEne31x31
std::vector< double > * t_eleEne31x31
Definition: StudyCaloGen.cc:116
StudyCaloGen::t_isoTrkDEtaAll
std::vector< double > * t_isoTrkDEtaAll
Definition: StudyCaloGen.cc:100
TFileService::make
T * make(const Args &... args) const
make new ROOT object
Definition: TFileService.h:64
StudyCaloGen::t_maxNearP1x1
std::vector< double > * t_maxNearP1x1
Definition: StudyCaloGen.cc:168
StudyCaloGen::t_cHadronEneIsoHCR
std::vector< double > * t_cHadronEneIsoHCR
Definition: StudyCaloGen.cc:225
StudyCaloGen::t_muEneHC3x3
std::vector< double > * t_muEneHC3x3
Definition: StudyCaloGen.cc:187
StudyCaloGen::t_cHadronEne31x31
std::vector< double > * t_cHadronEne31x31
Definition: StudyCaloGen.cc:113
StudyCaloGen::t_cHadronEneHC5x5_1
std::vector< double > * t_cHadronEneHC5x5_1
Definition: StudyCaloGen.cc:190
StudyCaloGen::t_cHadronEneIsoR_1
std::vector< double > * t_cHadronEneIsoR_1
Definition: StudyCaloGen.cc:211
StudyCaloGen::t_eleEne11x11
std::vector< double > * t_eleEne11x11
Definition: StudyCaloGen.cc:144
StudyCaloGen::t_cHadronEne3x3
std::vector< double > * t_cHadronEne3x3
Definition: StudyCaloGen.cc:162