CMS 3D CMS Logo

IsolatedGenParticles.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: IsolatedGenParticles
4 // Class: IsolatedGenParticles
5 //
13 //
14 // Original Author: Seema Sharma
15 // Created: Tue Oct 27 09:46:41 CDT 2009
16 //
17 //
18 
22 
25 
33 //L1 objects
46 
49 
56 //TFile Service
59 
66 
69 
71 
74 // track associator
76 
77 // root objects
78 #include "TROOT.h"
79 #include "TSystem.h"
80 #include "TFile.h"
81 #include "TH1I.h"
82 #include "TH2D.h"
83 #include "TProfile.h"
84 #include "TDirectory.h"
85 #include "TTree.h"
86 
87 #include <cmath>
88 #include <iostream>
89 #include <iomanip>
90 #include <list>
91 #include <vector>
92 
93 namespace {
94  class ParticlePtGreater {
95  public:
96  int operator()(const HepMC::GenParticle *p1, const HepMC::GenParticle *p2) const {
97  return p1->momentum().perp() > p2->momentum().perp();
98  }
99  };
100 
101  class ParticlePGreater {
102  public:
103  int operator()(const HepMC::GenParticle *p1, const HepMC::GenParticle *p2) const {
104  return p1->momentum().rho() > p2->momentum().rho();
105  }
106  };
107 } // namespace
108 
109 class IsolatedGenParticles : public edm::one::EDAnalyzer<edm::one::SharedResources> {
110 public:
111  explicit IsolatedGenParticles(const edm::ParameterSet &);
112  ~IsolatedGenParticles() override {}
113 
114  static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
115 
116 private:
117  void beginJob() override;
118  void analyze(const edm::Event &, const edm::EventSetup &) override;
119  void endJob() override {}
120 
121  void fillTrack(
122  GlobalPoint &posVec, math::XYZTLorentzVector &momVec, GlobalPoint &posECAL, int pdgId, bool okECAL, bool accpet);
123  void fillIsolatedTrack(math::XYZTLorentzVector &momVec, GlobalPoint &posECAL, int pdgId);
124  void bookHistograms();
125  void clearTreeVectors();
126  int particleCode(int);
127 
128  static constexpr int NPBins_ = 3;
129  static constexpr int NEtaBins_ = 4;
130  static constexpr int PBins_ = 32, EtaBins_ = 60, Particles = 12;
136 
139 
141  static const size_t nL1BitsMax_ = 128;
146 
155 
161 
165 
166  TTree *tree_;
167 
168  std::vector<double> *t_isoTrkPAll;
169  std::vector<double> *t_isoTrkPtAll;
170  std::vector<double> *t_isoTrkPhiAll;
171  std::vector<double> *t_isoTrkEtaAll;
172  std::vector<double> *t_isoTrkPdgIdAll;
173  std::vector<double> *t_isoTrkDEtaAll;
174  std::vector<double> *t_isoTrkDPhiAll;
175 
176  std::vector<double> *t_isoTrkP;
177  std::vector<double> *t_isoTrkPt;
178  std::vector<double> *t_isoTrkEne;
179  std::vector<double> *t_isoTrkEta;
180  std::vector<double> *t_isoTrkPhi;
181  std::vector<double> *t_isoTrkEtaEC;
182  std::vector<double> *t_isoTrkPhiEC;
183  std::vector<double> *t_isoTrkPdgId;
184 
185  std::vector<double> *t_maxNearP31x31;
187  std::vector<double> *t_nHadronEne31x31;
188  std::vector<double> *t_photonEne31x31;
189  std::vector<double> *t_eleEne31x31;
190  std::vector<double> *t_muEne31x31;
191 
192  std::vector<double> *t_maxNearP25x25;
194  std::vector<double> *t_nHadronEne25x25;
195  std::vector<double> *t_photonEne25x25;
196  std::vector<double> *t_eleEne25x25;
197  std::vector<double> *t_muEne25x25;
198 
199  std::vector<double> *t_maxNearP21x21;
201  std::vector<double> *t_nHadronEne21x21;
202  std::vector<double> *t_photonEne21x21;
203  std::vector<double> *t_eleEne21x21;
204  std::vector<double> *t_muEne21x21;
205 
206  std::vector<double> *t_maxNearP15x15;
208  std::vector<double> *t_nHadronEne15x15;
209  std::vector<double> *t_photonEne15x15;
210  std::vector<double> *t_eleEne15x15;
211  std::vector<double> *t_muEne15x15;
212 
213  std::vector<double> *t_maxNearP11x11;
215  std::vector<double> *t_nHadronEne11x11;
216  std::vector<double> *t_photonEne11x11;
217  std::vector<double> *t_eleEne11x11;
218  std::vector<double> *t_muEne11x11;
219 
220  std::vector<double> *t_maxNearP9x9;
222  std::vector<double> *t_nHadronEne9x9;
223  std::vector<double> *t_photonEne9x9;
224  std::vector<double> *t_eleEne9x9;
225  std::vector<double> *t_muEne9x9;
226 
227  std::vector<double> *t_maxNearP7x7;
229  std::vector<double> *t_nHadronEne7x7;
230  std::vector<double> *t_photonEne7x7;
231  std::vector<double> *t_eleEne7x7;
232  std::vector<double> *t_muEne7x7;
233 
234  std::vector<double> *t_maxNearP3x3;
236  std::vector<double> *t_nHadronEne3x3;
237  std::vector<double> *t_photonEne3x3;
238  std::vector<double> *t_eleEne3x3;
239  std::vector<double> *t_muEne3x3;
240 
241  std::vector<double> *t_maxNearP1x1;
243  std::vector<double> *t_nHadronEne1x1;
244  std::vector<double> *t_photonEne1x1;
245  std::vector<double> *t_eleEne1x1;
246  std::vector<double> *t_muEne1x1;
247 
248  std::vector<double> *t_maxNearPHC1x1;
250  std::vector<double> *t_nHadronEneHC1x1;
251  std::vector<double> *t_photonEneHC1x1;
252  std::vector<double> *t_eleEneHC1x1;
253  std::vector<double> *t_muEneHC1x1;
254 
255  std::vector<double> *t_maxNearPHC3x3;
257  std::vector<double> *t_nHadronEneHC3x3;
258  std::vector<double> *t_photonEneHC3x3;
259  std::vector<double> *t_eleEneHC3x3;
260  std::vector<double> *t_muEneHC3x3;
261 
262  std::vector<double> *t_maxNearPHC5x5;
264  std::vector<double> *t_nHadronEneHC5x5;
265  std::vector<double> *t_photonEneHC5x5;
266  std::vector<double> *t_eleEneHC5x5;
267  std::vector<double> *t_muEneHC5x5;
268 
269  std::vector<double> *t_maxNearPHC7x7;
271  std::vector<double> *t_nHadronEneHC7x7;
272  std::vector<double> *t_photonEneHC7x7;
273  std::vector<double> *t_eleEneHC7x7;
274  std::vector<double> *t_muEneHC7x7;
275 
276  std::vector<double> *t_maxNearPR;
278  std::vector<double> *t_nHadronEneR;
279  std::vector<double> *t_photonEneR;
280  std::vector<double> *t_eleEneR;
281  std::vector<double> *t_muEneR;
282 
283  std::vector<double> *t_maxNearPIsoR;
285  std::vector<double> *t_nHadronEneIsoR;
286  std::vector<double> *t_photonEneIsoR;
287  std::vector<double> *t_eleEneIsoR;
288  std::vector<double> *t_muEneIsoR;
289 
290  std::vector<double> *t_maxNearPHCR;
292  std::vector<double> *t_nHadronEneHCR;
293  std::vector<double> *t_photonEneHCR;
294  std::vector<double> *t_eleEneHCR;
295  std::vector<double> *t_muEneHCR;
296 
297  std::vector<double> *t_maxNearPIsoHCR;
299  std::vector<double> *t_nHadronEneIsoHCR;
300  std::vector<double> *t_photonEneIsoHCR;
301  std::vector<double> *t_eleEneIsoHCR;
302  std::vector<double> *t_muEneIsoHCR;
303 
304  std::vector<int> *t_L1Decision;
305  std::vector<double> *t_L1CenJetPt, *t_L1CenJetEta, *t_L1CenJetPhi;
306  std::vector<double> *t_L1FwdJetPt, *t_L1FwdJetEta, *t_L1FwdJetPhi;
307  std::vector<double> *t_L1TauJetPt, *t_L1TauJetEta, *t_L1TauJetPhi;
308  std::vector<double> *t_L1MuonPt, *t_L1MuonEta, *t_L1MuonPhi;
309  std::vector<double> *t_L1IsoEMPt, *t_L1IsoEMEta, *t_L1IsoEMPhi;
311  std::vector<double> *t_L1METPt, *t_L1METEta, *t_L1METPhi;
312 
317 };
318 
320  : ptMin_(iConfig.getUntrackedParameter<double>("PTMin", 1.0)),
321  etaMax_(iConfig.getUntrackedParameter<double>("MaxChargedHadronEta", 2.5)),
322  pCutIsolate_(iConfig.getUntrackedParameter<double>("PMaxIsolation", 20.0)),
323  a_Isolation_(iConfig.getUntrackedParameter<bool>("UseConeIsolation", false)),
324  genSrc_(iConfig.getUntrackedParameter("GenSrc", std::string("generatorSmeared"))),
325  useHepMC_(iConfig.getUntrackedParameter<bool>("UseHepMC", false)),
326  a_coneR_(iConfig.getUntrackedParameter<double>("ConeRadius", 34.98)),
327  a_mipR_(iConfig.getUntrackedParameter<double>("ConeRadiusMIP", 14.0)),
328  debugL1Info_(iConfig.getUntrackedParameter<bool>("DebugL1Info", false)),
329  verbosity_(iConfig.getUntrackedParameter<int>("Verbosity", 0)) {
330  usesResource(TFileService::kSharedResource);
331 
332  a_charIsoR_ = a_coneR_ + 28.9;
333  a_neutIsoR_ = a_charIsoR_ * 0.726;
334 
335  tok_hepmc_ = consumes<edm::HepMCProduct>(edm::InputTag(genSrc_));
336  tok_genParticles_ = consumes<reco::GenParticleCollection>(edm::InputTag(genSrc_));
337 
338  edm::InputTag L1extraTauJetSource_ = iConfig.getParameter<edm::InputTag>("L1extraTauJetSource");
339  edm::InputTag L1extraCenJetSource_ = iConfig.getParameter<edm::InputTag>("L1extraCenJetSource");
340  edm::InputTag L1extraFwdJetSource_ = iConfig.getParameter<edm::InputTag>("L1extraFwdJetSource");
341  edm::InputTag L1extraMuonSource_ = iConfig.getParameter<edm::InputTag>("L1extraMuonSource");
342  edm::InputTag L1extraIsoEmSource_ = iConfig.getParameter<edm::InputTag>("L1extraIsoEmSource");
343  edm::InputTag L1extraNonIsoEmSource_ = iConfig.getParameter<edm::InputTag>("L1extraNonIsoEmSource");
344  edm::InputTag L1GTReadoutRcdSource_ = iConfig.getParameter<edm::InputTag>("L1GTReadoutRcdSource");
345  edm::InputTag L1GTObjectMapRcdSource_ = iConfig.getParameter<edm::InputTag>("L1GTObjectMapRcdSource");
346  tok_L1GTrorsrc_ = consumes<L1GlobalTriggerReadoutRecord>(L1GTReadoutRcdSource_);
347  tok_L1GTobjmap_ = consumes<L1GlobalTriggerObjectMapRecord>(L1GTObjectMapRcdSource_);
348  tok_L1extMusrc_ = consumes<l1extra::L1MuonParticleCollection>(L1extraMuonSource_);
349  tok_L1Em_ = consumes<l1extra::L1EmParticleCollection>(L1extraIsoEmSource_);
350  tok_L1extNonIsoEm_ = consumes<l1extra::L1EmParticleCollection>(L1extraNonIsoEmSource_);
351  tok_L1extTauJet_ = consumes<l1extra::L1JetParticleCollection>(L1extraTauJetSource_);
352  tok_L1extCenJet_ = consumes<l1extra::L1JetParticleCollection>(L1extraCenJetSource_);
353  tok_L1extFwdJet_ = consumes<l1extra::L1JetParticleCollection>(L1extraFwdJetSource_);
354 
355  if (!strcmp("Dummy", genSrc_.c_str())) {
356  if (useHepMC_)
357  genSrc_ = "generatorSmeared";
358  else
359  genSrc_ = "genParticles";
360  }
361  edm::LogVerbatim("IsoTrack") << "Generator Source " << genSrc_ << " Use HepMC " << useHepMC_ << " ptMin " << ptMin_
362  << " etaMax " << etaMax_ << "\n a_coneR " << a_coneR_ << " a_charIsoR " << a_charIsoR_
363  << " a_neutIsoR " << a_neutIsoR_ << " a_mipR " << a_mipR_ << " debug " << verbosity_
364  << " debugL1Info " << debugL1Info_ << "\n"
365  << " Isolation Flag " << a_Isolation_ << " with cut " << pCutIsolate_ << " GeV";
366 
367  tok_geom_ = esConsumes<CaloGeometry, CaloGeometryRecord>();
368  tok_caloTopology_ = esConsumes<CaloTopology, CaloTopologyRecord>();
369  tok_topo_ = esConsumes<HcalTopology, HcalRecNumberingRecord>();
370  tok_magField_ = esConsumes<MagneticField, IdealMagneticFieldRecord>();
371  tok_pdt_ = esConsumes<HepPDT::ParticleDataTable, PDTRecord>();
372 }
373 
376  desc.addUntracked<std::string>("GenSrc", "genParticles");
377  desc.addUntracked<bool>("UseHepMC", false);
378  desc.addUntracked<double>("ChargedHadronSeedP", 1.0);
379  desc.addUntracked<double>("PTMin", 1.0);
380  desc.addUntracked<double>("MaxChargedHadronEta", 2.5);
381  desc.addUntracked<double>("ConeRadius", 34.98);
382  desc.addUntracked<double>("ConeRadiusMIP", 14.0);
383  desc.addUntracked<bool>("UseConeIsolation", true);
384  desc.addUntracked<double>("PMaxIsolation", 5.0);
385  desc.addUntracked<int>("Verbosity", 0);
386  desc.addUntracked<bool>("DebugL1Info", false);
387  desc.addUntracked<edm::InputTag>("L1extraTauJetSource", edm::InputTag("l1extraParticles", "Tau"));
388  desc.addUntracked<edm::InputTag>("L1extraCenJetSource", edm::InputTag("l1extraParticles", "Central"));
389  desc.addUntracked<edm::InputTag>("L1extraFwdJetSource", edm::InputTag("l1extraParticles", "Forward"));
390  desc.addUntracked<edm::InputTag>("L1extraMuonSource", edm::InputTag("l1extraParticles"));
391  desc.addUntracked<edm::InputTag>("L1extraIsoEmSource", edm::InputTag("l1extraParticles", "Isolated"));
392  desc.addUntracked<edm::InputTag>("L1extraNonIsoEmSource", edm::InputTag("l1extraParticles", "NonIsolated"));
393  desc.addUntracked<edm::InputTag>("L1GTReadoutRcdSource", edm::InputTag("gtDigis"));
394  desc.addUntracked<edm::InputTag>("L1GTObjectMapRcdSource", edm::InputTag("hltL1GtObjectMap"));
395  descriptions.add("isolatedGenParticles", desc);
396 }
397 
400 
401  nEventProc++;
402  const MagneticField *bField = &iSetup.getData(tok_magField_);
403 
404  // get particle data table
405  const HepPDT::ParticleDataTable *pdt = &iSetup.getData(tok_pdt_);
406 
407  // get handle to HEPMCProduct
410  if (useHepMC_)
411  iEvent.getByToken(tok_hepmc_, hepmc);
412  else
414 
415  const CaloGeometry *geo = &iSetup.getData(tok_geom_);
416  const CaloTopology *caloTopology = &iSetup.getData(tok_caloTopology_);
417  const HcalTopology *theHBHETopology = &iSetup.getData(tok_topo_);
418 
419  //===================== save L1 Trigger information =======================
420  // get L1TriggerReadout records
422  iEvent.getByToken(tok_L1GTrorsrc_, gtRecord);
423 
425  iEvent.getByToken(tok_L1GTobjmap_, gtOMRec);
426 
427  // sanity check on L1 Trigger Records
428  if (!gtRecord.isValid()) {
429  edm::LogVerbatim("IsoTrack") << "\nL1GlobalTriggerReadoutRecord with \n\n"
430  << "not found\n --> returning false by "
431  << "default!\n";
432  }
433  if (!gtOMRec.isValid()) {
434  edm::LogVerbatim("IsoTrack") << "\nL1GlobalTriggerObjectMapRecord with \n\n"
435  << "not found\n --> returning false by "
436  << "default!\n";
437  }
438 
439  // L1 decision word
440  const DecisionWord dWord = gtRecord->decisionWord();
441  unsigned int numberTriggerBits = dWord.size();
442 
443  // just print the L1Bit number and AlgoName in first event
444  if (!initL1) {
445  initL1 = true;
446  edm::LogVerbatim("IsoTrack") << "\nNumber of Trigger bits " << numberTriggerBits << "\n";
447  edm::LogVerbatim("IsoTrack") << "\tBit \t L1 Algorithm ";
448 
449  // get ObjectMaps from ObjectMapRecord
450  const std::vector<L1GlobalTriggerObjectMap> &objMapVec = gtOMRec->gtObjectMap();
451  for (std::vector<L1GlobalTriggerObjectMap>::const_iterator itMap = objMapVec.begin(); itMap != objMapVec.end();
452  ++itMap) {
453  // Get trigger bits
454  int itrig = (*itMap).algoBitNumber();
455 
456  // Get trigger names
457  algoBitToName_[itrig] = (*itMap).algoName();
458 
459  edm::LogVerbatim("IsoTrack") << "\t" << itrig << "\t" << algoBitToName_[itrig];
460 
461  // store the algoNames as bin labels of a histogram
462  h_L1AlgoNames->GetXaxis()->SetBinLabel(itrig + 1, algoBitToName_[itrig].c_str());
463 
464  } // end of for loop
465  } // end of initL1
466 
467  // save L1 decision for each event
468  for (unsigned int iBit = 0; iBit < numberTriggerBits; ++iBit) {
469  bool accept = dWord[iBit];
470  t_L1Decision->push_back(accept);
471  // fill the trigger map
472  if (debugL1Info_)
473  edm::LogVerbatim("IsoTrack") << "Bit " << iBit << " " << algoBitToName_[iBit] << " " << accept;
474 
475  if (accept)
476  h_L1AlgoNames->Fill(iBit);
477  }
478 
479  //===================
480  // L1Taus
482  iEvent.getByToken(tok_L1extTauJet_, l1TauHandle);
483  l1extra::L1JetParticleCollection::const_iterator itr;
484  for (itr = l1TauHandle->begin(); itr != l1TauHandle->end(); ++itr) {
485  t_L1TauJetPt->push_back(itr->pt());
486  t_L1TauJetEta->push_back(itr->eta());
487  t_L1TauJetPhi->push_back(itr->phi());
488  if (debugL1Info_) {
489  edm::LogVerbatim("IsoTrack") << "tauJ p/pt " << itr->momentum() << " " << itr->pt() << " eta/phi " << itr->eta()
490  << " " << itr->phi();
491  }
492  }
493 
494  // L1 Central Jets
496  iEvent.getByToken(tok_L1extCenJet_, l1CenJetHandle);
497  for (itr = l1CenJetHandle->begin(); itr != l1CenJetHandle->end(); ++itr) {
498  t_L1CenJetPt->push_back(itr->pt());
499  t_L1CenJetEta->push_back(itr->eta());
500  t_L1CenJetPhi->push_back(itr->phi());
501  if (debugL1Info_) {
502  edm::LogVerbatim("IsoTrack") << "cenJ p/pt " << itr->momentum() << " " << itr->pt() << " eta/phi "
503  << itr->eta() << " " << itr->phi();
504  }
505  }
506  // L1 Forward Jets
508  iEvent.getByToken(tok_L1extFwdJet_, l1FwdJetHandle);
509  for (itr = l1FwdJetHandle->begin(); itr != l1FwdJetHandle->end(); ++itr) {
510  t_L1FwdJetPt->push_back(itr->pt());
511  t_L1FwdJetEta->push_back(itr->eta());
512  t_L1FwdJetPhi->push_back(itr->phi());
513  if (debugL1Info_) {
514  edm::LogVerbatim("IsoTrack") << "fwdJ p/pt " << itr->momentum() << " " << itr->pt() << " eta/phi "
515  << itr->eta() << " " << itr->phi();
516  }
517  }
518  // L1 Isolated EM onjects
519  l1extra::L1EmParticleCollection::const_iterator itrEm;
521  iEvent.getByToken(tok_L1Em_, l1IsoEmHandle);
522  for (itrEm = l1IsoEmHandle->begin(); itrEm != l1IsoEmHandle->end(); ++itrEm) {
523  t_L1IsoEMPt->push_back(itrEm->pt());
524  t_L1IsoEMEta->push_back(itrEm->eta());
525  t_L1IsoEMPhi->push_back(itrEm->phi());
526  if (debugL1Info_) {
527  edm::LogVerbatim("IsoTrack") << "isoEm p/pt " << itrEm->momentum() << " " << itrEm->pt() << " eta/phi "
528  << itrEm->eta() << " " << itrEm->phi();
529  }
530  }
531  // L1 Non-Isolated EM onjects
533  iEvent.getByToken(tok_L1extNonIsoEm_, l1NonIsoEmHandle);
534  for (itrEm = l1NonIsoEmHandle->begin(); itrEm != l1NonIsoEmHandle->end(); ++itrEm) {
535  t_L1NonIsoEMPt->push_back(itrEm->pt());
536  t_L1NonIsoEMEta->push_back(itrEm->eta());
537  t_L1NonIsoEMPhi->push_back(itrEm->phi());
538  if (debugL1Info_) {
539  edm::LogVerbatim("IsoTrack") << "nonIsoEm p/pt " << itrEm->momentum() << " " << itrEm->pt() << " eta/phi "
540  << itrEm->eta() << " " << itrEm->phi();
541  }
542  }
543 
544  // L1 Muons
545  l1extra::L1MuonParticleCollection::const_iterator itrMu;
547  iEvent.getByToken(tok_L1extMusrc_, l1MuHandle);
548  for (itrMu = l1MuHandle->begin(); itrMu != l1MuHandle->end(); ++itrMu) {
549  t_L1MuonPt->push_back(itrMu->pt());
550  t_L1MuonEta->push_back(itrMu->eta());
551  t_L1MuonPhi->push_back(itrMu->phi());
552  if (debugL1Info_) {
553  edm::LogVerbatim("IsoTrack") << "l1muon p/pt " << itrMu->momentum() << " " << itrMu->pt() << " eta/phi "
554  << itrMu->eta() << " " << itrMu->phi();
555  }
556  }
557  //=====================================================================
558 
559  GlobalPoint posVec, posECAL;
561  if (verbosity_ > 0)
562  edm::LogVerbatim("IsoTrack") << "event number " << iEvent.id().event();
563  if (useHepMC_) {
564  const HepMC::GenEvent *myGenEvent = hepmc->GetEvent();
565  std::vector<spr::propagatedGenTrackID> trackIDs = spr::propagateCALO(myGenEvent, pdt, geo, bField, etaMax_, false);
566 
567  for (unsigned int indx = 0; indx < trackIDs.size(); ++indx) {
568  int charge = trackIDs[indx].charge;
569  HepMC::GenEvent::particle_const_iterator p = trackIDs[indx].trkItr;
570  momVec = math::XYZTLorentzVector(
571  (*p)->momentum().px(), (*p)->momentum().py(), (*p)->momentum().pz(), (*p)->momentum().e());
572  if (verbosity_ > 1)
573  edm::LogVerbatim("IsoTrack") << "trkIndx " << indx << " pdgid " << trackIDs[indx].pdgId << " charge " << charge
574  << " momVec " << momVec;
575  // only stable particles avoiding electrons and muons
576  if (trackIDs[indx].ok && (std::abs(trackIDs[indx].pdgId) < 11 || std::abs(trackIDs[indx].pdgId) >= 21)) {
577  // consider particles within a phased space
578  if (momVec.Pt() > ptMin_ && std::abs(momVec.eta()) < etaMax_) {
579  posVec = GlobalPoint(0.1 * (*p)->production_vertex()->position().x(),
580  0.1 * (*p)->production_vertex()->position().y(),
581  0.1 * (*p)->production_vertex()->position().z());
582  posECAL = trackIDs[indx].pointECAL;
583  fillTrack(posVec, momVec, posECAL, trackIDs[indx].pdgId, trackIDs[indx].okECAL, true);
584  if (verbosity_ > 1)
585  edm::LogVerbatim("IsoTrack") << "posECAL " << posECAL << " okECAL " << trackIDs[indx].okECAL << "okHCAL "
586  << trackIDs[indx].okHCAL;
587  if (trackIDs[indx].okECAL) {
588  if (std::abs(charge) > 0) {
589  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 0, 0, isoinfo1x1, false);
590  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 1, 1, isoinfo3x3, false);
591  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 3, 3, isoinfo7x7, false);
592  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 4, 4, isoinfo9x9, false);
593  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 5, 5, isoinfo11x11, false);
594  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 7, 7, isoinfo15x15, false);
595  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 10, 10, isoinfo21x21, false);
596  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 12, 12, isoinfo25x25, false);
597  spr::eGenSimInfo(trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 15, 15, isoinfo31x31, false);
598  spr::eGenSimInfo(trackIDs[indx].detIdECAL,
599  p,
600  trackIDs,
601  geo,
602  caloTopology,
603  a_mipR_,
604  trackIDs[indx].directionECAL,
605  isoinfoR,
606  false);
607  spr::eGenSimInfo(trackIDs[indx].detIdECAL,
608  p,
609  trackIDs,
610  geo,
611  caloTopology,
612  a_neutIsoR_,
613  trackIDs[indx].directionECAL,
614  isoinfoIsoR,
615  false);
616  if (trackIDs[indx].okHCAL) {
617  spr::hGenSimInfo(trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 0, 0, isoinfoHC1x1, false);
618  spr::hGenSimInfo(trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 1, 1, isoinfoHC3x3, false);
619  spr::hGenSimInfo(trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 2, 2, isoinfoHC5x5, false);
620  spr::hGenSimInfo(trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 3, 3, isoinfoHC7x7, false);
621  spr::hGenSimInfo(trackIDs[indx].detIdHCAL,
622  p,
623  trackIDs,
624  geo,
625  theHBHETopology,
626  a_coneR_,
627  trackIDs[indx].directionHCAL,
628  isoinfoHCR,
629  false);
630  spr::hGenSimInfo(trackIDs[indx].detIdHCAL,
631  p,
632  trackIDs,
633  geo,
634  theHBHETopology,
635  a_charIsoR_,
636  trackIDs[indx].directionHCAL,
638  false);
639  }
640 
641  bool saveTrack = true;
642  if (a_Isolation_)
643  saveTrack = (isoinfoR.maxNearP < pCutIsolate_);
644  else
645  saveTrack = (isoinfo7x7.maxNearP < pCutIsolate_);
646  if (saveTrack)
647  fillIsolatedTrack(momVec, posECAL, trackIDs[indx].pdgId);
648  }
649  }
650  } else { // stabale particles within |eta|=2.5
651  fillTrack(posVec, momVec, posECAL, 0, false, false);
652  }
653  }
654  }
655 
656  unsigned int indx;
657  HepMC::GenEvent::particle_const_iterator p;
658  for (p = myGenEvent->particles_begin(), indx = 0; p != myGenEvent->particles_end(); ++p, ++indx) {
659  int pdgId = ((*p)->pdg_id());
660  int ix = particleCode(pdgId);
661  if (ix >= 0) {
662  double pp = (*p)->momentum().rho();
663  double eta = (*p)->momentum().eta();
664  h_pEta[ix]->Fill(pp, eta);
665  }
666  }
667  } else { // loop over gen particles
668  std::vector<spr::propagatedGenParticleID> trackIDs =
670 
671  for (unsigned int indx = 0; indx < trackIDs.size(); ++indx) {
672  int charge = trackIDs[indx].charge;
673  reco::GenParticleCollection::const_iterator p = trackIDs[indx].trkItr;
674 
675  momVec = math::XYZTLorentzVector(p->momentum().x(), p->momentum().y(), p->momentum().z(), p->energy());
676  if (verbosity_ > 1)
677  edm::LogVerbatim("IsoTrack") << "trkIndx " << indx << " pdgid " << trackIDs[indx].pdgId << " charge " << charge
678  << " momVec " << momVec;
679  // only stable particles avoiding electrons and muons
680  if (trackIDs[indx].ok && std::abs(trackIDs[indx].pdgId) > 21) {
681  // consider particles within a phased space
682  if (verbosity_ > 1)
683  edm::LogVerbatim("IsoTrack") << " pt " << momVec.Pt() << " eta " << momVec.eta();
684  if (momVec.Pt() > ptMin_ && std::abs(momVec.eta()) < etaMax_) {
685  posVec = GlobalPoint(p->vertex().x(), p->vertex().y(), p->vertex().z());
686  posECAL = trackIDs[indx].pointECAL;
687  if (verbosity_ > 0)
688  edm::LogVerbatim("IsoTrack") << "posECAL " << posECAL << " okECAL " << trackIDs[indx].okECAL << "okHCAL "
689  << trackIDs[indx].okHCAL;
690  fillTrack(posVec, momVec, posECAL, trackIDs[indx].pdgId, trackIDs[indx].okECAL, true);
691  if (trackIDs[indx].okECAL) {
692  if (std::abs(charge) > 0) {
694  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 0, 0, isoinfo1x1, verbosity_ > 1);
696  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 1, 1, isoinfo3x3, verbosity_ > 0);
698  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 3, 3, isoinfo7x7, verbosity_ > 1);
700  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 4, 4, isoinfo9x9, verbosity_ > 1);
702  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 5, 5, isoinfo11x11, verbosity_ > 1);
704  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 7, 7, isoinfo15x15, verbosity_ > 1);
706  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 10, 10, isoinfo21x21, verbosity_ > 1);
708  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 12, 12, isoinfo25x25, verbosity_ > 1);
710  trackIDs[indx].detIdECAL, p, trackIDs, geo, caloTopology, 15, 15, isoinfo31x31, verbosity_ > 1);
711  spr::eGenSimInfo(trackIDs[indx].detIdECAL,
712  p,
713  trackIDs,
714  geo,
715  caloTopology,
716  a_mipR_,
717  trackIDs[indx].directionECAL,
718  isoinfoR,
719  verbosity_ > 1);
720  spr::eGenSimInfo(trackIDs[indx].detIdECAL,
721  p,
722  trackIDs,
723  geo,
724  caloTopology,
725  a_neutIsoR_,
726  trackIDs[indx].directionECAL,
727  isoinfoIsoR,
728  verbosity_ > 1);
729  if (trackIDs[indx].okHCAL) {
731  trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 0, 0, isoinfoHC1x1, verbosity_ > 1);
733  trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 1, 1, isoinfoHC3x3, verbosity_ > 1);
735  trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 2, 2, isoinfoHC5x5, verbosity_ > 1);
737  trackIDs[indx].detIdHCAL, p, trackIDs, theHBHETopology, 3, 3, isoinfoHC7x7, verbosity_ > 1);
738  spr::hGenSimInfo(trackIDs[indx].detIdHCAL,
739  p,
740  trackIDs,
741  geo,
742  theHBHETopology,
743  a_coneR_,
744  trackIDs[indx].directionHCAL,
745  isoinfoHCR,
746  verbosity_ > 1);
747  spr::hGenSimInfo(trackIDs[indx].detIdHCAL,
748  p,
749  trackIDs,
750  geo,
751  theHBHETopology,
752  a_charIsoR_,
753  trackIDs[indx].directionHCAL,
755  verbosity_ > 1);
756  }
757 
758  bool saveTrack = true;
759  if (a_Isolation_)
760  saveTrack = (isoinfoIsoR.maxNearP < pCutIsolate_);
761  else
762  saveTrack = (isoinfo7x7.maxNearP < pCutIsolate_);
763  if (saveTrack)
764  fillIsolatedTrack(momVec, posECAL, trackIDs[indx].pdgId);
765  }
766  }
767  } else { // stabale particles within |eta|=2.5
768  fillTrack(posVec, momVec, posECAL, 0, false, false);
769  }
770  }
771  } // loop over gen particles
772 
773  unsigned int indx;
774  reco::GenParticleCollection::const_iterator p;
775  for (p = genParticles->begin(), indx = 0; p != genParticles->end(); ++p, ++indx) {
776  int pdgId = (p->pdgId());
777  int ix = particleCode(pdgId);
778  if (ix >= 0) {
779  double pp = (p->momentum()).R();
780  double eta = (p->momentum()).Eta();
781  h_pEta[ix]->Fill(pp, eta);
782  }
783  }
784  }
785 
786  //t_nEvtProc->push_back(nEventProc);
787  h_NEventProc->SetBinContent(1, nEventProc);
788  tree_->Fill();
789 }
790 
792  nEventProc = 0;
793 
794  initL1 = false;
795 
796  double tempgen_TH[NPBins_ + 1] = {0.0, 5.0, 12.0, 300.0};
797  for (int i = 0; i <= NPBins_; i++)
798  genPartPBins_[i] = tempgen_TH[i];
799 
800  double tempgen_Eta[NEtaBins_ + 1] = {0.0, 0.5, 1.1, 1.7, 2.3};
801  for (int i = 0; i <= NEtaBins_; i++)
802  genPartEtaBins_[i] = tempgen_Eta[i];
803 
804  bookHistograms();
805 }
806 
808  GlobalPoint &posVec, math::XYZTLorentzVector &momVec, GlobalPoint &posECAL, int pdgId, bool okECAL, bool accept) {
809  if (accept) {
810  t_isoTrkPAll->push_back(momVec.P());
811  t_isoTrkPtAll->push_back(momVec.Pt());
812  t_isoTrkPhiAll->push_back(momVec.phi());
813  t_isoTrkEtaAll->push_back(momVec.eta());
814  t_isoTrkPdgIdAll->push_back(pdgId);
815  if (okECAL) {
816  double phi1 = momVec.phi();
817  double phi2 = (posECAL - posVec).phi();
818  double dphi = reco::deltaPhi(phi1, phi2);
819  double deta = momVec.eta() - (posECAL - posVec).eta();
820  t_isoTrkDPhiAll->push_back(dphi);
821  t_isoTrkDEtaAll->push_back(deta);
822  } else {
823  t_isoTrkDPhiAll->push_back(999.0);
824  t_isoTrkDEtaAll->push_back(999.0);
825  }
826  } else {
827  t_isoTrkDPhiAll->push_back(-999.0);
828  t_isoTrkDEtaAll->push_back(-999.0);
829  }
830 }
831 
833  t_isoTrkP->push_back(momVec.P());
834  t_isoTrkPt->push_back(momVec.Pt());
835  t_isoTrkEne->push_back(momVec.E());
836  t_isoTrkEta->push_back(momVec.eta());
837  t_isoTrkPhi->push_back(momVec.phi());
838  t_isoTrkEtaEC->push_back(posECAL.eta());
839  t_isoTrkPhiEC->push_back(posECAL.phi());
840  t_isoTrkPdgId->push_back(pdgId);
841 
849  t_eleEne31x31->push_back(isoinfo31x31.eleEne);
850  t_muEne31x31->push_back(isoinfo31x31.muEne);
851 
859  t_eleEne25x25->push_back(isoinfo25x25.eleEne);
860  t_muEne25x25->push_back(isoinfo25x25.muEne);
861 
869  t_eleEne21x21->push_back(isoinfo21x21.eleEne);
870  t_muEne21x21->push_back(isoinfo21x21.muEne);
871 
879  t_eleEne15x15->push_back(isoinfo15x15.eleEne);
880  t_muEne15x15->push_back(isoinfo15x15.muEne);
881 
889  t_eleEne11x11->push_back(isoinfo11x11.eleEne);
890  t_muEne11x11->push_back(isoinfo11x11.muEne);
891 
892  t_maxNearP9x9->push_back(isoinfo9x9.maxNearP);
898  t_photonEne9x9->push_back(isoinfo9x9.photonEne);
899  t_eleEne9x9->push_back(isoinfo9x9.eleEne);
900  t_muEne9x9->push_back(isoinfo9x9.muEne);
901 
902  t_maxNearP7x7->push_back(isoinfo7x7.maxNearP);
908  t_photonEne7x7->push_back(isoinfo7x7.photonEne);
909  t_eleEne7x7->push_back(isoinfo7x7.eleEne);
910  t_muEne7x7->push_back(isoinfo7x7.muEne);
911 
912  t_maxNearP3x3->push_back(isoinfo3x3.maxNearP);
918  t_photonEne3x3->push_back(isoinfo3x3.photonEne);
919  t_eleEne3x3->push_back(isoinfo3x3.eleEne);
920  t_muEne3x3->push_back(isoinfo3x3.muEne);
921 
922  t_maxNearP1x1->push_back(isoinfo1x1.maxNearP);
928  t_photonEne1x1->push_back(isoinfo1x1.photonEne);
929  t_eleEne1x1->push_back(isoinfo1x1.eleEne);
930  t_muEne1x1->push_back(isoinfo1x1.muEne);
931 
939  t_eleEneHC1x1->push_back(isoinfoHC1x1.eleEne);
940  t_muEneHC1x1->push_back(isoinfoHC1x1.muEne);
941 
949  t_eleEneHC3x3->push_back(isoinfoHC3x3.eleEne);
950  t_muEneHC3x3->push_back(isoinfoHC3x3.muEne);
951 
959  t_eleEneHC5x5->push_back(isoinfoHC5x5.eleEne);
960  t_muEneHC5x5->push_back(isoinfoHC5x5.muEne);
961 
969  t_eleEneHC7x7->push_back(isoinfoHC7x7.eleEne);
970  t_muEneHC7x7->push_back(isoinfoHC7x7.muEne);
971 
972  t_maxNearPR->push_back(isoinfoR.maxNearP);
973  t_cHadronEneR->push_back(isoinfoR.cHadronEne);
974  t_cHadronEneR_1->push_back(isoinfoR.cHadronEne_[0]);
975  t_cHadronEneR_2->push_back(isoinfoR.cHadronEne_[1]);
976  t_cHadronEneR_3->push_back(isoinfoR.cHadronEne_[2]);
977  t_nHadronEneR->push_back(isoinfoR.nHadronEne);
978  t_photonEneR->push_back(isoinfoR.photonEne);
979  t_eleEneR->push_back(isoinfoR.eleEne);
980  t_muEneR->push_back(isoinfoR.muEne);
981 
982  t_maxNearPIsoR->push_back(isoinfoIsoR.maxNearP);
989  t_eleEneIsoR->push_back(isoinfoIsoR.eleEne);
990  t_muEneIsoR->push_back(isoinfoIsoR.muEne);
991 
992  t_maxNearPHCR->push_back(isoinfoHCR.maxNearP);
998  t_photonEneHCR->push_back(isoinfoHCR.photonEne);
999  t_eleEneHCR->push_back(isoinfoHCR.eleEne);
1000  t_muEneHCR->push_back(isoinfoHCR.muEne);
1001 
1009  t_eleEneIsoHCR->push_back(isoinfoIsoHCR.eleEne);
1010  t_muEneIsoHCR->push_back(isoinfoIsoHCR.muEne);
1011 }
1012 
1015  //char hname[100], htit[100];
1016 
1017  h_NEventProc = fs->make<TH1I>("h_NEventProc", "h_NEventProc", 2, -0.5, 0.5);
1018  h_L1AlgoNames = fs->make<TH1I>("h_L1AlgoNames", "h_L1AlgoNames:Bin Labels", 128, -0.5, 127.5);
1019 
1020  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,
1021  70.0, 80.0, 90.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0,
1022  500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 900.0, 950.0, 1000.0};
1023  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,
1024  -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,
1025  -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,
1026  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,
1027  2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0};
1028  std::string particle[Particles] = {
1029  "electron", "positron", "#gamma", "#pi^+", "#pi^-", "K^+", "K^-", "p", "n", "pbar", "nbar", "K^0_L"};
1030  TFileDirectory dir1 = fs->mkdir("pEta");
1031  char name[20], title[50];
1032  for (int i = 0; i < Particles; ++i) {
1033  sprintf(name, "pEta%d", i);
1034  sprintf(title, "#eta vs momentum for %s", particle[i].c_str());
1035  h_pEta[i] = dir1.make<TH2D>(name, title, PBins_, pBin, EtaBins_, etaBin);
1036  }
1037 
1038  // build the tree
1039  tree_ = fs->make<TTree>("tree_", "tree");
1040 
1041  t_isoTrkPAll = new std::vector<double>();
1042  t_isoTrkPtAll = new std::vector<double>();
1043  t_isoTrkPhiAll = new std::vector<double>();
1044  t_isoTrkEtaAll = new std::vector<double>();
1045  t_isoTrkDPhiAll = new std::vector<double>();
1046  t_isoTrkDEtaAll = new std::vector<double>();
1047  t_isoTrkPdgIdAll = new std::vector<double>();
1048 
1049  t_isoTrkP = new std::vector<double>();
1050  t_isoTrkPt = new std::vector<double>();
1051  t_isoTrkEne = new std::vector<double>();
1052  t_isoTrkEta = new std::vector<double>();
1053  t_isoTrkPhi = new std::vector<double>();
1054  t_isoTrkEtaEC = new std::vector<double>();
1055  t_isoTrkPhiEC = new std::vector<double>();
1056  t_isoTrkPdgId = new std::vector<double>();
1057 
1058  t_maxNearP31x31 = new std::vector<double>();
1059  t_cHadronEne31x31 = new std::vector<double>();
1060  t_cHadronEne31x31_1 = new std::vector<double>();
1061  t_cHadronEne31x31_2 = new std::vector<double>();
1062  t_cHadronEne31x31_3 = new std::vector<double>();
1063  t_nHadronEne31x31 = new std::vector<double>();
1064  t_photonEne31x31 = new std::vector<double>();
1065  t_eleEne31x31 = new std::vector<double>();
1066  t_muEne31x31 = new std::vector<double>();
1067 
1068  t_maxNearP25x25 = new std::vector<double>();
1069  t_cHadronEne25x25 = new std::vector<double>();
1070  t_cHadronEne25x25_1 = new std::vector<double>();
1071  t_cHadronEne25x25_2 = new std::vector<double>();
1072  t_cHadronEne25x25_3 = new std::vector<double>();
1073  t_nHadronEne25x25 = new std::vector<double>();
1074  t_photonEne25x25 = new std::vector<double>();
1075  t_eleEne25x25 = new std::vector<double>();
1076  t_muEne25x25 = new std::vector<double>();
1077 
1078  t_maxNearP21x21 = new std::vector<double>();
1079  t_cHadronEne21x21 = new std::vector<double>();
1080  t_cHadronEne21x21_1 = new std::vector<double>();
1081  t_cHadronEne21x21_2 = new std::vector<double>();
1082  t_cHadronEne21x21_3 = new std::vector<double>();
1083  t_nHadronEne21x21 = new std::vector<double>();
1084  t_photonEne21x21 = new std::vector<double>();
1085  t_eleEne21x21 = new std::vector<double>();
1086  t_muEne21x21 = new std::vector<double>();
1087 
1088  t_maxNearP15x15 = new std::vector<double>();
1089  t_cHadronEne15x15 = new std::vector<double>();
1090  t_cHadronEne15x15_1 = new std::vector<double>();
1091  t_cHadronEne15x15_2 = new std::vector<double>();
1092  t_cHadronEne15x15_3 = new std::vector<double>();
1093  t_nHadronEne15x15 = new std::vector<double>();
1094  t_photonEne15x15 = new std::vector<double>();
1095  t_eleEne15x15 = new std::vector<double>();
1096  t_muEne15x15 = new std::vector<double>();
1097 
1098  t_maxNearP11x11 = new std::vector<double>();
1099  t_cHadronEne11x11 = new std::vector<double>();
1100  t_cHadronEne11x11_1 = new std::vector<double>();
1101  t_cHadronEne11x11_2 = new std::vector<double>();
1102  t_cHadronEne11x11_3 = new std::vector<double>();
1103  t_nHadronEne11x11 = new std::vector<double>();
1104  t_photonEne11x11 = new std::vector<double>();
1105  t_eleEne11x11 = new std::vector<double>();
1106  t_muEne11x11 = new std::vector<double>();
1107 
1108  t_maxNearP9x9 = new std::vector<double>();
1109  t_cHadronEne9x9 = new std::vector<double>();
1110  t_cHadronEne9x9_1 = new std::vector<double>();
1111  t_cHadronEne9x9_2 = new std::vector<double>();
1112  t_cHadronEne9x9_3 = new std::vector<double>();
1113  t_nHadronEne9x9 = new std::vector<double>();
1114  t_photonEne9x9 = new std::vector<double>();
1115  t_eleEne9x9 = new std::vector<double>();
1116  t_muEne9x9 = new std::vector<double>();
1117 
1118  t_maxNearP7x7 = new std::vector<double>();
1119  t_cHadronEne7x7 = new std::vector<double>();
1120  t_cHadronEne7x7_1 = new std::vector<double>();
1121  t_cHadronEne7x7_2 = new std::vector<double>();
1122  t_cHadronEne7x7_3 = new std::vector<double>();
1123  t_nHadronEne7x7 = new std::vector<double>();
1124  t_photonEne7x7 = new std::vector<double>();
1125  t_eleEne7x7 = new std::vector<double>();
1126  t_muEne7x7 = new std::vector<double>();
1127 
1128  t_maxNearP3x3 = new std::vector<double>();
1129  t_cHadronEne3x3 = new std::vector<double>();
1130  t_cHadronEne3x3_1 = new std::vector<double>();
1131  t_cHadronEne3x3_2 = new std::vector<double>();
1132  t_cHadronEne3x3_3 = new std::vector<double>();
1133  t_nHadronEne3x3 = new std::vector<double>();
1134  t_photonEne3x3 = new std::vector<double>();
1135  t_eleEne3x3 = new std::vector<double>();
1136  t_muEne3x3 = new std::vector<double>();
1137 
1138  t_maxNearP1x1 = new std::vector<double>();
1139  t_cHadronEne1x1 = new std::vector<double>();
1140  t_cHadronEne1x1_1 = new std::vector<double>();
1141  t_cHadronEne1x1_2 = new std::vector<double>();
1142  t_cHadronEne1x1_3 = new std::vector<double>();
1143  t_nHadronEne1x1 = new std::vector<double>();
1144  t_photonEne1x1 = new std::vector<double>();
1145  t_eleEne1x1 = new std::vector<double>();
1146  t_muEne1x1 = new std::vector<double>();
1147 
1148  t_maxNearPHC1x1 = new std::vector<double>();
1149  t_cHadronEneHC1x1 = new std::vector<double>();
1150  t_cHadronEneHC1x1_1 = new std::vector<double>();
1151  t_cHadronEneHC1x1_2 = new std::vector<double>();
1152  t_cHadronEneHC1x1_3 = new std::vector<double>();
1153  t_nHadronEneHC1x1 = new std::vector<double>();
1154  t_photonEneHC1x1 = new std::vector<double>();
1155  t_eleEneHC1x1 = new std::vector<double>();
1156  t_muEneHC1x1 = new std::vector<double>();
1157 
1158  t_maxNearPHC3x3 = new std::vector<double>();
1159  t_cHadronEneHC3x3 = new std::vector<double>();
1160  t_cHadronEneHC3x3_1 = new std::vector<double>();
1161  t_cHadronEneHC3x3_2 = new std::vector<double>();
1162  t_cHadronEneHC3x3_3 = new std::vector<double>();
1163  t_nHadronEneHC3x3 = new std::vector<double>();
1164  t_photonEneHC3x3 = new std::vector<double>();
1165  t_eleEneHC3x3 = new std::vector<double>();
1166  t_muEneHC3x3 = new std::vector<double>();
1167 
1168  t_maxNearPHC5x5 = new std::vector<double>();
1169  t_cHadronEneHC5x5 = new std::vector<double>();
1170  t_cHadronEneHC5x5_1 = new std::vector<double>();
1171  t_cHadronEneHC5x5_2 = new std::vector<double>();
1172  t_cHadronEneHC5x5_3 = new std::vector<double>();
1173  t_nHadronEneHC5x5 = new std::vector<double>();
1174  t_photonEneHC5x5 = new std::vector<double>();
1175  t_eleEneHC5x5 = new std::vector<double>();
1176  t_muEneHC5x5 = new std::vector<double>();
1177 
1178  t_maxNearPHC7x7 = new std::vector<double>();
1179  t_cHadronEneHC7x7 = new std::vector<double>();
1180  t_cHadronEneHC7x7_1 = new std::vector<double>();
1181  t_cHadronEneHC7x7_2 = new std::vector<double>();
1182  t_cHadronEneHC7x7_3 = new std::vector<double>();
1183  t_nHadronEneHC7x7 = new std::vector<double>();
1184  t_photonEneHC7x7 = new std::vector<double>();
1185  t_eleEneHC7x7 = new std::vector<double>();
1186  t_muEneHC7x7 = new std::vector<double>();
1187 
1188  t_maxNearPR = new std::vector<double>();
1189  t_cHadronEneR = new std::vector<double>();
1190  t_cHadronEneR_1 = new std::vector<double>();
1191  t_cHadronEneR_2 = new std::vector<double>();
1192  t_cHadronEneR_3 = new std::vector<double>();
1193  t_nHadronEneR = new std::vector<double>();
1194  t_photonEneR = new std::vector<double>();
1195  t_eleEneR = new std::vector<double>();
1196  t_muEneR = new std::vector<double>();
1197 
1198  t_maxNearPIsoR = new std::vector<double>();
1199  t_cHadronEneIsoR = new std::vector<double>();
1200  t_cHadronEneIsoR_1 = new std::vector<double>();
1201  t_cHadronEneIsoR_2 = new std::vector<double>();
1202  t_cHadronEneIsoR_3 = new std::vector<double>();
1203  t_nHadronEneIsoR = new std::vector<double>();
1204  t_photonEneIsoR = new std::vector<double>();
1205  t_eleEneIsoR = new std::vector<double>();
1206  t_muEneIsoR = new std::vector<double>();
1207 
1208  t_maxNearPHCR = new std::vector<double>();
1209  t_cHadronEneHCR = new std::vector<double>();
1210  t_cHadronEneHCR_1 = new std::vector<double>();
1211  t_cHadronEneHCR_2 = new std::vector<double>();
1212  t_cHadronEneHCR_3 = new std::vector<double>();
1213  t_nHadronEneHCR = new std::vector<double>();
1214  t_photonEneHCR = new std::vector<double>();
1215  t_eleEneHCR = new std::vector<double>();
1216  t_muEneHCR = new std::vector<double>();
1217 
1218  t_maxNearPIsoHCR = new std::vector<double>();
1219  t_cHadronEneIsoHCR = new std::vector<double>();
1220  t_cHadronEneIsoHCR_1 = new std::vector<double>();
1221  t_cHadronEneIsoHCR_2 = new std::vector<double>();
1222  t_cHadronEneIsoHCR_3 = new std::vector<double>();
1223  t_nHadronEneIsoHCR = new std::vector<double>();
1224  t_photonEneIsoHCR = new std::vector<double>();
1225  t_eleEneIsoHCR = new std::vector<double>();
1226  t_muEneIsoHCR = new std::vector<double>();
1227 
1228  //----- L1Trigger
1229  t_L1Decision = new std::vector<int>();
1230  t_L1CenJetPt = new std::vector<double>();
1231  t_L1CenJetEta = new std::vector<double>();
1232  t_L1CenJetPhi = new std::vector<double>();
1233  t_L1FwdJetPt = new std::vector<double>();
1234  t_L1FwdJetEta = new std::vector<double>();
1235  t_L1FwdJetPhi = new std::vector<double>();
1236  t_L1TauJetPt = new std::vector<double>();
1237  t_L1TauJetEta = new std::vector<double>();
1238  t_L1TauJetPhi = new std::vector<double>();
1239  t_L1MuonPt = new std::vector<double>();
1240  t_L1MuonEta = new std::vector<double>();
1241  t_L1MuonPhi = new std::vector<double>();
1242  t_L1IsoEMPt = new std::vector<double>();
1243  t_L1IsoEMEta = new std::vector<double>();
1244  t_L1IsoEMPhi = new std::vector<double>();
1245  t_L1NonIsoEMPt = new std::vector<double>();
1246  t_L1NonIsoEMEta = new std::vector<double>();
1247  t_L1NonIsoEMPhi = new std::vector<double>();
1248  t_L1METPt = new std::vector<double>();
1249  t_L1METEta = new std::vector<double>();
1250  t_L1METPhi = new std::vector<double>();
1251 
1252  //tree_->Branch("t_nEvtProc", "std::vector<int>", &t_nEvtProc);
1253 
1254  tree_->Branch("t_isoTrkPAll", "std::vector<double>", &t_isoTrkPAll);
1255  tree_->Branch("t_isoTrkPtAll", "std::vector<double>", &t_isoTrkPtAll);
1256  tree_->Branch("t_isoTrkPhiAll", "std::vector<double>", &t_isoTrkPhiAll);
1257  tree_->Branch("t_isoTrkEtaAll", "std::vector<double>", &t_isoTrkEtaAll);
1258  tree_->Branch("t_isoTrkDPhiAll", "std::vector<double>", &t_isoTrkDPhiAll);
1259  tree_->Branch("t_isoTrkDEtaAll", "std::vector<double>", &t_isoTrkDEtaAll);
1260  tree_->Branch("t_isoTrkPdgIdAll", "std::vector<double>", &t_isoTrkPdgIdAll);
1261 
1262  tree_->Branch("t_isoTrkP", "std::vector<double>", &t_isoTrkP);
1263  tree_->Branch("t_isoTrkPt", "std::vector<double>", &t_isoTrkPt);
1264  tree_->Branch("t_isoTrkEne", "std::vector<double>", &t_isoTrkEne);
1265  tree_->Branch("t_isoTrkEta", "std::vector<double>", &t_isoTrkEta);
1266  tree_->Branch("t_isoTrkPhi", "std::vector<double>", &t_isoTrkPhi);
1267  tree_->Branch("t_isoTrkEtaEC", "std::vector<double>", &t_isoTrkEtaEC);
1268  tree_->Branch("t_isoTrkPhiEC", "std::vector<double>", &t_isoTrkPhiEC);
1269  tree_->Branch("t_isoTrkPdgId", "std::vector<double>", &t_isoTrkPdgId);
1270 
1271  tree_->Branch("t_maxNearP31x31", "std::vector<double>", &t_maxNearP31x31);
1272  tree_->Branch("t_cHadronEne31x31", "std::vector<double>", &t_cHadronEne31x31);
1273  tree_->Branch("t_cHadronEne31x31_1", "std::vector<double>", &t_cHadronEne31x31_1);
1274  tree_->Branch("t_cHadronEne31x31_2", "std::vector<double>", &t_cHadronEne31x31_2);
1275  tree_->Branch("t_cHadronEne31x31_3", "std::vector<double>", &t_cHadronEne31x31_3);
1276  tree_->Branch("t_nHadronEne31x31", "std::vector<double>", &t_nHadronEne31x31);
1277  tree_->Branch("t_photonEne31x31", "std::vector<double>", &t_photonEne31x31);
1278  tree_->Branch("t_eleEne31x31", "std::vector<double>", &t_eleEne31x31);
1279  tree_->Branch("t_muEne31x31", "std::vector<double>", &t_muEne31x31);
1280 
1281  tree_->Branch("t_maxNearP25x25", "std::vector<double>", &t_maxNearP25x25);
1282  tree_->Branch("t_cHadronEne25x25", "std::vector<double>", &t_cHadronEne25x25);
1283  tree_->Branch("t_cHadronEne25x25_1", "std::vector<double>", &t_cHadronEne25x25_1);
1284  tree_->Branch("t_cHadronEne25x25_2", "std::vector<double>", &t_cHadronEne25x25_2);
1285  tree_->Branch("t_cHadronEne25x25_3", "std::vector<double>", &t_cHadronEne25x25_3);
1286  tree_->Branch("t_nHadronEne25x25", "std::vector<double>", &t_nHadronEne25x25);
1287  tree_->Branch("t_photonEne25x25", "std::vector<double>", &t_photonEne25x25);
1288  tree_->Branch("t_eleEne25x25", "std::vector<double>", &t_eleEne25x25);
1289  tree_->Branch("t_muEne25x25", "std::vector<double>", &t_muEne25x25);
1290 
1291  tree_->Branch("t_maxNearP21x21", "std::vector<double>", &t_maxNearP21x21);
1292  tree_->Branch("t_cHadronEne21x21", "std::vector<double>", &t_cHadronEne21x21);
1293  tree_->Branch("t_cHadronEne21x21_1", "std::vector<double>", &t_cHadronEne21x21_1);
1294  tree_->Branch("t_cHadronEne21x21_2", "std::vector<double>", &t_cHadronEne21x21_2);
1295  tree_->Branch("t_cHadronEne21x21_3", "std::vector<double>", &t_cHadronEne21x21_3);
1296  tree_->Branch("t_nHadronEne21x21", "std::vector<double>", &t_nHadronEne21x21);
1297  tree_->Branch("t_photonEne21x21", "std::vector<double>", &t_photonEne21x21);
1298  tree_->Branch("t_eleEne21x21", "std::vector<double>", &t_eleEne21x21);
1299  tree_->Branch("t_muEne21x21", "std::vector<double>", &t_muEne21x21);
1300 
1301  tree_->Branch("t_maxNearP15x15", "std::vector<double>", &t_maxNearP15x15);
1302  tree_->Branch("t_cHadronEne15x15", "std::vector<double>", &t_cHadronEne15x15);
1303  tree_->Branch("t_cHadronEne15x15_1", "std::vector<double>", &t_cHadronEne15x15_1);
1304  tree_->Branch("t_cHadronEne15x15_2", "std::vector<double>", &t_cHadronEne15x15_2);
1305  tree_->Branch("t_cHadronEne15x15_3", "std::vector<double>", &t_cHadronEne15x15_3);
1306  tree_->Branch("t_nHadronEne15x15", "std::vector<double>", &t_nHadronEne15x15);
1307  tree_->Branch("t_photonEne15x15", "std::vector<double>", &t_photonEne15x15);
1308  tree_->Branch("t_eleEne15x15", "std::vector<double>", &t_eleEne15x15);
1309  tree_->Branch("t_muEne15x15", "std::vector<double>", &t_muEne15x15);
1310 
1311  tree_->Branch("t_maxNearP11x11", "std::vector<double>", &t_maxNearP11x11);
1312  tree_->Branch("t_cHadronEne11x11", "std::vector<double>", &t_cHadronEne11x11);
1313  tree_->Branch("t_cHadronEne11x11_1", "std::vector<double>", &t_cHadronEne11x11_1);
1314  tree_->Branch("t_cHadronEne11x11_2", "std::vector<double>", &t_cHadronEne11x11_2);
1315  tree_->Branch("t_cHadronEne11x11_3", "std::vector<double>", &t_cHadronEne11x11_3);
1316  tree_->Branch("t_nHadronEne11x11", "std::vector<double>", &t_nHadronEne11x11);
1317  tree_->Branch("t_photonEne11x11", "std::vector<double>", &t_photonEne11x11);
1318  tree_->Branch("t_eleEne11x11", "std::vector<double>", &t_eleEne11x11);
1319  tree_->Branch("t_muEne11x11", "std::vector<double>", &t_muEne11x11);
1320 
1321  tree_->Branch("t_maxNearP9x9", "std::vector<double>", &t_maxNearP9x9);
1322  tree_->Branch("t_cHadronEne9x9", "std::vector<double>", &t_cHadronEne9x9);
1323  tree_->Branch("t_cHadronEne9x9_1", "std::vector<double>", &t_cHadronEne9x9_1);
1324  tree_->Branch("t_cHadronEne9x9_2", "std::vector<double>", &t_cHadronEne9x9_2);
1325  tree_->Branch("t_cHadronEne9x9_3", "std::vector<double>", &t_cHadronEne9x9_3);
1326  tree_->Branch("t_nHadronEne9x9", "std::vector<double>", &t_nHadronEne9x9);
1327  tree_->Branch("t_photonEne9x9", "std::vector<double>", &t_photonEne9x9);
1328  tree_->Branch("t_eleEne9x9", "std::vector<double>", &t_eleEne9x9);
1329  tree_->Branch("t_muEne9x9", "std::vector<double>", &t_muEne9x9);
1330 
1331  tree_->Branch("t_maxNearP7x7", "std::vector<double>", &t_maxNearP7x7);
1332  tree_->Branch("t_cHadronEne7x7", "std::vector<double>", &t_cHadronEne7x7);
1333  tree_->Branch("t_cHadronEne7x7_1", "std::vector<double>", &t_cHadronEne7x7_1);
1334  tree_->Branch("t_cHadronEne7x7_2", "std::vector<double>", &t_cHadronEne7x7_2);
1335  tree_->Branch("t_cHadronEne7x7_3", "std::vector<double>", &t_cHadronEne7x7_3);
1336  tree_->Branch("t_nHadronEne7x7", "std::vector<double>", &t_nHadronEne7x7);
1337  tree_->Branch("t_photonEne7x7", "std::vector<double>", &t_photonEne7x7);
1338  tree_->Branch("t_eleEne7x7", "std::vector<double>", &t_eleEne7x7);
1339  tree_->Branch("t_muEne7x7", "std::vector<double>", &t_muEne7x7);
1340 
1341  tree_->Branch("t_maxNearP3x3", "std::vector<double>", &t_maxNearP3x3);
1342  tree_->Branch("t_cHadronEne3x3", "std::vector<double>", &t_cHadronEne3x3);
1343  tree_->Branch("t_cHadronEne3x3_1", "std::vector<double>", &t_cHadronEne3x3_1);
1344  tree_->Branch("t_cHadronEne3x3_2", "std::vector<double>", &t_cHadronEne3x3_2);
1345  tree_->Branch("t_cHadronEne3x3_3", "std::vector<double>", &t_cHadronEne3x3_3);
1346  tree_->Branch("t_nHadronEne3x3", "std::vector<double>", &t_nHadronEne3x3);
1347  tree_->Branch("t_photonEne3x3", "std::vector<double>", &t_photonEne3x3);
1348  tree_->Branch("t_eleEne3x3", "std::vector<double>", &t_eleEne3x3);
1349  tree_->Branch("t_muEne3x3", "std::vector<double>", &t_muEne3x3);
1350 
1351  tree_->Branch("t_maxNearP1x1", "std::vector<double>", &t_maxNearP1x1);
1352  tree_->Branch("t_cHadronEne1x1", "std::vector<double>", &t_cHadronEne1x1);
1353  tree_->Branch("t_cHadronEne1x1_1", "std::vector<double>", &t_cHadronEne1x1_1);
1354  tree_->Branch("t_cHadronEne1x1_2", "std::vector<double>", &t_cHadronEne1x1_2);
1355  tree_->Branch("t_cHadronEne1x1_3", "std::vector<double>", &t_cHadronEne1x1_3);
1356  tree_->Branch("t_nHadronEne1x1", "std::vector<double>", &t_nHadronEne1x1);
1357  tree_->Branch("t_photonEne1x1", "std::vector<double>", &t_photonEne1x1);
1358  tree_->Branch("t_eleEne1x1", "std::vector<double>", &t_eleEne1x1);
1359  tree_->Branch("t_muEne1x1", "std::vector<double>", &t_muEne1x1);
1360 
1361  tree_->Branch("t_maxNearPHC1x1", "std::vector<double>", &t_maxNearPHC1x1);
1362  tree_->Branch("t_cHadronEneHC1x1", "std::vector<double>", &t_cHadronEneHC1x1);
1363  tree_->Branch("t_cHadronEneHC1x1_1", "std::vector<double>", &t_cHadronEneHC1x1_1);
1364  tree_->Branch("t_cHadronEneHC1x1_2", "std::vector<double>", &t_cHadronEneHC1x1_2);
1365  tree_->Branch("t_cHadronEneHC1x1_3", "std::vector<double>", &t_cHadronEneHC1x1_3);
1366  tree_->Branch("t_nHadronEneHC1x1", "std::vector<double>", &t_nHadronEneHC1x1);
1367  tree_->Branch("t_photonEneHC1x1", "std::vector<double>", &t_photonEneHC1x1);
1368  tree_->Branch("t_eleEneHC1x1", "std::vector<double>", &t_eleEneHC1x1);
1369  tree_->Branch("t_muEneHC1x1", "std::vector<double>", &t_muEneHC1x1);
1370 
1371  tree_->Branch("t_maxNearPHC3x3", "std::vector<double>", &t_maxNearPHC3x3);
1372  tree_->Branch("t_cHadronEneHC3x3", "std::vector<double>", &t_cHadronEneHC3x3);
1373  tree_->Branch("t_cHadronEneHC3x3_1", "std::vector<double>", &t_cHadronEneHC3x3_1);
1374  tree_->Branch("t_cHadronEneHC3x3_2", "std::vector<double>", &t_cHadronEneHC3x3_2);
1375  tree_->Branch("t_cHadronEneHC3x3_3", "std::vector<double>", &t_cHadronEneHC3x3_3);
1376  tree_->Branch("t_nHadronEneHC3x3", "std::vector<double>", &t_nHadronEneHC3x3);
1377  tree_->Branch("t_photonEneHC3x3", "std::vector<double>", &t_photonEneHC3x3);
1378  tree_->Branch("t_eleEneHC3x3", "std::vector<double>", &t_eleEneHC3x3);
1379  tree_->Branch("t_muEneHC3x3", "std::vector<double>", &t_muEneHC3x3);
1380 
1381  tree_->Branch("t_maxNearPHC5x5", "std::vector<double>", &t_maxNearPHC5x5);
1382  tree_->Branch("t_cHadronEneHC5x5", "std::vector<double>", &t_cHadronEneHC5x5);
1383  tree_->Branch("t_cHadronEneHC5x5_1", "std::vector<double>", &t_cHadronEneHC5x5_1);
1384  tree_->Branch("t_cHadronEneHC5x5_2", "std::vector<double>", &t_cHadronEneHC5x5_2);
1385  tree_->Branch("t_cHadronEneHC5x5_3", "std::vector<double>", &t_cHadronEneHC5x5_3);
1386  tree_->Branch("t_nHadronEneHC5x5", "std::vector<double>", &t_nHadronEneHC5x5);
1387  tree_->Branch("t_photonEneHC5x5", "std::vector<double>", &t_photonEneHC5x5);
1388  tree_->Branch("t_eleEneHC5x5", "std::vector<double>", &t_eleEneHC5x5);
1389  tree_->Branch("t_muEneHC5x5", "std::vector<double>", &t_muEneHC5x5);
1390 
1391  tree_->Branch("t_maxNearPHC7x7", "std::vector<double>", &t_maxNearPHC7x7);
1392  tree_->Branch("t_cHadronEneHC7x7", "std::vector<double>", &t_cHadronEneHC7x7);
1393  tree_->Branch("t_cHadronEneHC7x7_1", "std::vector<double>", &t_cHadronEneHC7x7_1);
1394  tree_->Branch("t_cHadronEneHC7x7_2", "std::vector<double>", &t_cHadronEneHC7x7_2);
1395  tree_->Branch("t_cHadronEneHC7x7_3", "std::vector<double>", &t_cHadronEneHC7x7_3);
1396  tree_->Branch("t_nHadronEneHC7x7", "std::vector<double>", &t_nHadronEneHC7x7);
1397  tree_->Branch("t_photonEneHC7x7", "std::vector<double>", &t_photonEneHC7x7);
1398  tree_->Branch("t_eleEneHC7x7", "std::vector<double>", &t_eleEneHC7x7);
1399  tree_->Branch("t_muEneHC7x7", "std::vector<double>", &t_muEneHC7x7);
1400 
1401  tree_->Branch("t_maxNearPR", "std::vector<double>", &t_maxNearPR);
1402  tree_->Branch("t_cHadronEneR", "std::vector<double>", &t_cHadronEneR);
1403  tree_->Branch("t_cHadronEneR_1", "std::vector<double>", &t_cHadronEneR_1);
1404  tree_->Branch("t_cHadronEneR_2", "std::vector<double>", &t_cHadronEneR_2);
1405  tree_->Branch("t_cHadronEneR_3", "std::vector<double>", &t_cHadronEneR_3);
1406  tree_->Branch("t_nHadronEneR", "std::vector<double>", &t_nHadronEneR);
1407  tree_->Branch("t_photonEneR", "std::vector<double>", &t_photonEneR);
1408  tree_->Branch("t_eleEneR", "std::vector<double>", &t_eleEneR);
1409  tree_->Branch("t_muEneR", "std::vector<double>", &t_muEneR);
1410 
1411  tree_->Branch("t_maxNearPIsoR", "std::vector<double>", &t_maxNearPIsoR);
1412  tree_->Branch("t_cHadronEneIsoR", "std::vector<double>", &t_cHadronEneIsoR);
1413  tree_->Branch("t_cHadronEneIsoR_1", "std::vector<double>", &t_cHadronEneIsoR_1);
1414  tree_->Branch("t_cHadronEneIsoR_2", "std::vector<double>", &t_cHadronEneIsoR_2);
1415  tree_->Branch("t_cHadronEneIsoR_3", "std::vector<double>", &t_cHadronEneIsoR_3);
1416  tree_->Branch("t_nHadronEneIsoR", "std::vector<double>", &t_nHadronEneIsoR);
1417  tree_->Branch("t_photonEneIsoR", "std::vector<double>", &t_photonEneIsoR);
1418  tree_->Branch("t_eleEneIsoR", "std::vector<double>", &t_eleEneIsoR);
1419  tree_->Branch("t_muEneIsoR", "std::vector<double>", &t_muEneIsoR);
1420 
1421  tree_->Branch("t_maxNearPHCR", "std::vector<double>", &t_maxNearPHCR);
1422  tree_->Branch("t_cHadronEneHCR", "std::vector<double>", &t_cHadronEneHCR);
1423  tree_->Branch("t_cHadronEneHCR_1", "std::vector<double>", &t_cHadronEneHCR_1);
1424  tree_->Branch("t_cHadronEneHCR_2", "std::vector<double>", &t_cHadronEneHCR_2);
1425  tree_->Branch("t_cHadronEneHCR_3", "std::vector<double>", &t_cHadronEneHCR_3);
1426  tree_->Branch("t_nHadronEneHCR", "std::vector<double>", &t_nHadronEneHCR);
1427  tree_->Branch("t_photonEneHCR", "std::vector<double>", &t_photonEneHCR);
1428  tree_->Branch("t_eleEneHCR", "std::vector<double>", &t_eleEneHCR);
1429  tree_->Branch("t_muEneHCR", "std::vector<double>", &t_muEneHCR);
1430 
1431  tree_->Branch("t_maxNearPIsoHCR", "std::vector<double>", &t_maxNearPIsoHCR);
1432  tree_->Branch("t_cHadronEneIsoHCR", "std::vector<double>", &t_cHadronEneIsoHCR);
1433  tree_->Branch("t_cHadronEneIsoHCR_1", "std::vector<double>", &t_cHadronEneIsoHCR_1);
1434  tree_->Branch("t_cHadronEneIsoHCR_2", "std::vector<double>", &t_cHadronEneIsoHCR_2);
1435  tree_->Branch("t_cHadronEneIsoHCR_3", "std::vector<double>", &t_cHadronEneIsoHCR_3);
1436  tree_->Branch("t_nHadronEneIsoHCR", "std::vector<double>", &t_nHadronEneIsoHCR);
1437  tree_->Branch("t_photonEneIsoHCR", "std::vector<double>", &t_photonEneIsoHCR);
1438  tree_->Branch("t_eleEneIsoHCR", "std::vector<double>", &t_eleEneIsoHCR);
1439  tree_->Branch("t_muEneIsoHCR", "std::vector<double>", &t_muEneIsoHCR);
1440 
1441  tree_->Branch("t_L1Decision", "std::vector<int>", &t_L1Decision);
1442  tree_->Branch("t_L1CenJetPt", "std::vector<double>", &t_L1CenJetPt);
1443  tree_->Branch("t_L1CenJetEta", "std::vector<double>", &t_L1CenJetEta);
1444  tree_->Branch("t_L1CenJetPhi", "std::vector<double>", &t_L1CenJetPhi);
1445  tree_->Branch("t_L1FwdJetPt", "std::vector<double>", &t_L1FwdJetPt);
1446  tree_->Branch("t_L1FwdJetEta", "std::vector<double>", &t_L1FwdJetEta);
1447  tree_->Branch("t_L1FwdJetPhi", "std::vector<double>", &t_L1FwdJetPhi);
1448  tree_->Branch("t_L1TauJetPt", "std::vector<double>", &t_L1TauJetPt);
1449  tree_->Branch("t_L1TauJetEta", "std::vector<double>", &t_L1TauJetEta);
1450  tree_->Branch("t_L1TauJetPhi", "std::vector<double>", &t_L1TauJetPhi);
1451  tree_->Branch("t_L1MuonPt", "std::vector<double>", &t_L1MuonPt);
1452  tree_->Branch("t_L1MuonEta", "std::vector<double>", &t_L1MuonEta);
1453  tree_->Branch("t_L1MuonPhi", "std::vector<double>", &t_L1MuonPhi);
1454  tree_->Branch("t_L1IsoEMPt", "std::vector<double>", &t_L1IsoEMPt);
1455  tree_->Branch("t_L1IsoEMEta", "std::vector<double>", &t_L1IsoEMEta);
1456  tree_->Branch("t_L1IsoEMPhi", "std::vector<double>", &t_L1IsoEMPhi);
1457  tree_->Branch("t_L1NonIsoEMPt", "std::vector<double>", &t_L1NonIsoEMPt);
1458  tree_->Branch("t_L1NonIsoEMEta", "std::vector<double>", &t_L1NonIsoEMEta);
1459  tree_->Branch("t_L1NonIsoEMPhi", "std::vector<double>", &t_L1NonIsoEMPhi);
1460  tree_->Branch("t_L1METPt", "std::vector<double>", &t_L1METPt);
1461  tree_->Branch("t_L1METEta", "std::vector<double>", &t_L1METEta);
1462  tree_->Branch("t_L1METPhi", "std::vector<double>", &t_L1METPhi);
1463 }
1464 
1466  // t_maxNearP31x31 ->clear();
1467  // t_nEvtProc ->clear();
1468 
1469  t_isoTrkPAll->clear();
1470  t_isoTrkPtAll->clear();
1471  t_isoTrkPhiAll->clear();
1472  t_isoTrkEtaAll->clear();
1473  t_isoTrkDPhiAll->clear();
1474  t_isoTrkDEtaAll->clear();
1475  t_isoTrkPdgIdAll->clear();
1476 
1477  t_isoTrkP->clear();
1478  t_isoTrkPt->clear();
1479  t_isoTrkEne->clear();
1480  t_isoTrkEta->clear();
1481  t_isoTrkPhi->clear();
1482  t_isoTrkEtaEC->clear();
1483  t_isoTrkPhiEC->clear();
1484  t_isoTrkPdgId->clear();
1485 
1486  t_maxNearP31x31->clear();
1487  t_cHadronEne31x31->clear();
1488  t_cHadronEne31x31_1->clear();
1489  t_cHadronEne31x31_2->clear();
1490  t_cHadronEne31x31_3->clear();
1491  t_nHadronEne31x31->clear();
1492  t_photonEne31x31->clear();
1493  t_eleEne31x31->clear();
1494  t_muEne31x31->clear();
1495 
1496  t_maxNearP25x25->clear();
1497  t_cHadronEne25x25->clear();
1498  t_cHadronEne25x25_1->clear();
1499  t_cHadronEne25x25_2->clear();
1500  t_cHadronEne25x25_3->clear();
1501  t_nHadronEne25x25->clear();
1502  t_photonEne25x25->clear();
1503  t_eleEne25x25->clear();
1504  t_muEne25x25->clear();
1505 
1506  t_maxNearP21x21->clear();
1507  t_cHadronEne21x21->clear();
1508  t_cHadronEne21x21_1->clear();
1509  t_cHadronEne21x21_2->clear();
1510  t_cHadronEne21x21_3->clear();
1511  t_nHadronEne21x21->clear();
1512  t_photonEne21x21->clear();
1513  t_eleEne21x21->clear();
1514  t_muEne21x21->clear();
1515 
1516  t_maxNearP15x15->clear();
1517  t_cHadronEne15x15->clear();
1518  t_cHadronEne15x15_1->clear();
1519  t_cHadronEne15x15_2->clear();
1520  t_cHadronEne15x15_3->clear();
1521  t_nHadronEne15x15->clear();
1522  t_photonEne15x15->clear();
1523  t_eleEne15x15->clear();
1524  t_muEne15x15->clear();
1525 
1526  t_maxNearP11x11->clear();
1527  t_cHadronEne11x11->clear();
1528  t_cHadronEne11x11_1->clear();
1529  t_cHadronEne11x11_2->clear();
1530  t_cHadronEne11x11_3->clear();
1531  t_nHadronEne11x11->clear();
1532  t_photonEne11x11->clear();
1533  t_eleEne11x11->clear();
1534  t_muEne11x11->clear();
1535 
1536  t_maxNearP9x9->clear();
1537  t_cHadronEne9x9->clear();
1538  t_cHadronEne9x9_1->clear();
1539  t_cHadronEne9x9_2->clear();
1540  t_cHadronEne9x9_3->clear();
1541  t_nHadronEne9x9->clear();
1542  t_photonEne9x9->clear();
1543  t_eleEne9x9->clear();
1544  t_muEne9x9->clear();
1545 
1546  t_maxNearP7x7->clear();
1547  t_cHadronEne7x7->clear();
1548  t_cHadronEne7x7_1->clear();
1549  t_cHadronEne7x7_2->clear();
1550  t_cHadronEne7x7_3->clear();
1551  t_nHadronEne7x7->clear();
1552  t_photonEne7x7->clear();
1553  t_eleEne7x7->clear();
1554  t_muEne7x7->clear();
1555 
1556  t_maxNearP3x3->clear();
1557  t_cHadronEne3x3->clear();
1558  t_cHadronEne3x3_1->clear();
1559  t_cHadronEne3x3_2->clear();
1560  t_cHadronEne3x3_3->clear();
1561  t_nHadronEne3x3->clear();
1562  t_photonEne3x3->clear();
1563  t_eleEne3x3->clear();
1564  t_muEne3x3->clear();
1565 
1566  t_maxNearP1x1->clear();
1567  t_cHadronEne1x1->clear();
1568  t_cHadronEne1x1_1->clear();
1569  t_cHadronEne1x1_2->clear();
1570  t_cHadronEne1x1_3->clear();
1571  t_nHadronEne1x1->clear();
1572  t_photonEne1x1->clear();
1573  t_eleEne1x1->clear();
1574  t_muEne1x1->clear();
1575 
1576  t_maxNearPHC1x1->clear();
1577  t_cHadronEneHC1x1->clear();
1578  t_cHadronEneHC1x1_1->clear();
1579  t_cHadronEneHC1x1_2->clear();
1580  t_cHadronEneHC1x1_3->clear();
1581  t_nHadronEneHC1x1->clear();
1582  t_photonEneHC1x1->clear();
1583  t_eleEneHC1x1->clear();
1584  t_muEneHC1x1->clear();
1585 
1586  t_maxNearPHC3x3->clear();
1587  t_cHadronEneHC3x3->clear();
1588  t_cHadronEneHC3x3_1->clear();
1589  t_cHadronEneHC3x3_2->clear();
1590  t_cHadronEneHC3x3_3->clear();
1591  t_nHadronEneHC3x3->clear();
1592  t_photonEneHC3x3->clear();
1593  t_eleEneHC3x3->clear();
1594  t_muEneHC3x3->clear();
1595 
1596  t_maxNearPHC5x5->clear();
1597  t_cHadronEneHC5x5->clear();
1598  t_cHadronEneHC5x5_1->clear();
1599  t_cHadronEneHC5x5_2->clear();
1600  t_cHadronEneHC5x5_3->clear();
1601  t_nHadronEneHC5x5->clear();
1602  t_photonEneHC5x5->clear();
1603  t_eleEneHC5x5->clear();
1604  t_muEneHC5x5->clear();
1605 
1606  t_maxNearPHC7x7->clear();
1607  t_cHadronEneHC7x7->clear();
1608  t_cHadronEneHC7x7_1->clear();
1609  t_cHadronEneHC7x7_2->clear();
1610  t_cHadronEneHC7x7_3->clear();
1611  t_nHadronEneHC7x7->clear();
1612  t_photonEneHC7x7->clear();
1613  t_eleEneHC7x7->clear();
1614  t_muEneHC7x7->clear();
1615 
1616  t_maxNearPR->clear();
1617  t_cHadronEneR->clear();
1618  t_cHadronEneR_1->clear();
1619  t_cHadronEneR_2->clear();
1620  t_cHadronEneR_3->clear();
1621  t_nHadronEneR->clear();
1622  t_photonEneR->clear();
1623  t_eleEneR->clear();
1624  t_muEneR->clear();
1625 
1626  t_maxNearPIsoR->clear();
1627  t_cHadronEneIsoR->clear();
1628  t_cHadronEneIsoR_1->clear();
1629  t_cHadronEneIsoR_2->clear();
1630  t_cHadronEneIsoR_3->clear();
1631  t_nHadronEneIsoR->clear();
1632  t_photonEneIsoR->clear();
1633  t_eleEneIsoR->clear();
1634  t_muEneIsoR->clear();
1635 
1636  t_maxNearPHCR->clear();
1637  t_cHadronEneHCR->clear();
1638  t_cHadronEneHCR_1->clear();
1639  t_cHadronEneHCR_2->clear();
1640  t_cHadronEneHCR_3->clear();
1641  t_nHadronEneHCR->clear();
1642  t_photonEneHCR->clear();
1643  t_eleEneHCR->clear();
1644  t_muEneHCR->clear();
1645 
1646  t_maxNearPIsoHCR->clear();
1647  t_cHadronEneIsoHCR->clear();
1648  t_cHadronEneIsoHCR_1->clear();
1649  t_cHadronEneIsoHCR_2->clear();
1650  t_cHadronEneIsoHCR_3->clear();
1651  t_nHadronEneIsoHCR->clear();
1652  t_photonEneIsoHCR->clear();
1653  t_eleEneIsoHCR->clear();
1654  t_muEneIsoHCR->clear();
1655 
1656  t_L1Decision->clear();
1657  t_L1CenJetPt->clear();
1658  t_L1CenJetEta->clear();
1659  t_L1CenJetPhi->clear();
1660  t_L1FwdJetPt->clear();
1661  t_L1FwdJetEta->clear();
1662  t_L1FwdJetPhi->clear();
1663  t_L1TauJetPt->clear();
1664  t_L1TauJetEta->clear();
1665  t_L1TauJetPhi->clear();
1666  t_L1MuonPt->clear();
1667  t_L1MuonEta->clear();
1668  t_L1MuonPhi->clear();
1669  t_L1IsoEMPt->clear();
1670  t_L1IsoEMEta->clear();
1671  t_L1IsoEMPhi->clear();
1672  t_L1NonIsoEMPt->clear();
1673  t_L1NonIsoEMEta->clear();
1674  t_L1NonIsoEMPhi->clear();
1675  t_L1METPt->clear();
1676  t_L1METEta->clear();
1677  t_L1METPhi->clear();
1678 }
1679 
1681  int partID[Particles] = {11, -11, 21, 211, -211, 321, -321, 2212, 2112, -2212, -2112, 130};
1682  int ix = -1;
1683  for (int ik = 0; ik < Particles; ++ik) {
1684  if (pdgId == partID[ik]) {
1685  ix = ik;
1686  break;
1687  }
1688  }
1689  return ix;
1690 }
1691 
1692 //define this as a plug-in
std::vector< double > * t_cHadronEneHC1x1_3
static const std::string kSharedResource
Definition: TFileService.h:76
std::vector< double > * t_eleEne7x7
std::vector< double > * t_nHadronEne21x21
constexpr double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:26
std::vector< double > * t_cHadronEneHC7x7_2
Log< level::Info, true > LogVerbatim
std::vector< double > * t_isoTrkEtaAll
std::vector< double > * t_maxNearPHCR
std::vector< double > * t_isoTrkPdgId
double genPartPBins_[NPBins_+1]
std::vector< double > * t_L1FwdJetPhi
std::vector< double > * t_eleEne31x31
std::vector< double > * t_eleEneHC7x7
std::vector< spr::propagatedTrackID > propagateCALO(edm::Handle< reco::TrackCollection > &trkCollection, const CaloGeometry *geo, const MagneticField *bField, const std::string &theTrackQuality, bool debug=false)
std::vector< int > * t_L1Decision
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::vector< double > * t_cHadronEneIsoR_1
std::vector< double > * t_nHadronEne7x7
std::vector< double > * t_isoTrkPt
std::vector< double > * t_L1TauJetPhi
std::vector< double > * t_L1TauJetPt
std::vector< double > * t_cHadronEneHCR_1
static constexpr int EtaBins_
std::vector< double > * t_L1CenJetEta
std::vector< double > * t_photonEne7x7
std::vector< double > * t_L1MuonPt
std::vector< double > * t_isoTrkEta
std::vector< double > * t_cHadronEneHC7x7
std::vector< double > * t_cHadronEneHC7x7_3
std::vector< double > * t_cHadronEne7x7_2
double cHadronEne_[3]
Definition: GenSimInfo.h:48
std::vector< double > * t_cHadronEne15x15_3
static constexpr int PBins_
std::vector< double > * t_maxNearP15x15
double photonEne
Definition: GenSimInfo.h:46
std::vector< double > * t_nHadronEneHC7x7
std::vector< double > * t_photonEne21x21
HepPDT::ParticleDataTable ParticleDataTable
std::vector< double > * t_cHadronEneIsoHCR_2
std::vector< double > * t_cHadronEne25x25
std::vector< double > * t_photonEneHC5x5
std::vector< double > * t_cHadronEneHC1x1_2
edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extCenJet_
std::vector< double > * t_L1IsoEMEta
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
std::vector< double > * t_muEneIsoHCR
std::vector< double > * t_eleEne11x11
Geom::Phi< T > phi() const
Definition: PV3DBase.h:66
IsolatedGenParticles(const edm::ParameterSet &)
edm::ESGetToken< CaloTopology, CaloTopologyRecord > tok_caloTopology_
std::vector< double > * t_cHadronEneR
std::vector< double > * t_eleEne3x3
std::vector< double > * t_L1IsoEMPt
T eta() const
Definition: PV3DBase.h:73
std::vector< double > * t_cHadronEne3x3_2
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
std::vector< double > * t_cHadronEneHC3x3_2
std::vector< double > * t_photonEne1x1
std::vector< double > * t_cHadronEne1x1_2
std::vector< double > * t_nHadronEneR
std::vector< double > * t_cHadronEneIsoR_3
std::vector< double > * t_maxNearP11x11
std::vector< double > * t_maxNearPHC7x7
edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extTauJet_
std::vector< double > * t_cHadronEneHC5x5_2
std::vector< double > * t_photonEneHCR
std::vector< double > * t_L1METEta
const DecisionWord & decisionWord(int bxInEventValue) const
std::vector< double > * t_muEneIsoR
std::vector< double > * t_nHadronEne9x9
std::vector< double > * t_L1MuonEta
std::vector< double > * t_isoTrkPdgIdAll
std::vector< double > * t_muEneHC7x7
std::vector< double > * t_cHadronEne31x31
std::vector< double > * t_nHadronEneIsoHCR
std::vector< double > * t_L1FwdJetPt
std::vector< double > * t_cHadronEne31x31_1
std::vector< double > * t_photonEneHC3x3
static constexpr int NPBins_
std::vector< double > * t_cHadronEneIsoHCR_1
static const size_t nL1BitsMax_
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > tok_magField_
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:31
std::vector< double > * t_muEneR
std::vector< double > * t_muEne9x9
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > tok_geom_
std::vector< double > * t_muEne21x21
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > tok_L1GTrorsrc_
std::vector< double > * t_maxNearP7x7
edm::EDGetTokenT< l1extra::L1MuonParticleCollection > tok_L1extMusrc_
static constexpr int NEtaBins_
std::vector< double > * t_muEneHC1x1
std::vector< double > * t_photonEneHC7x7
const std::vector< L1GlobalTriggerObjectMap > & gtObjectMap() const
get / set the vector of object maps
std::vector< double > * t_maxNearPIsoHCR
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
double cHadronEne
Definition: GenSimInfo.h:46
std::vector< double > * t_L1TauJetEta
std::vector< double > * t_cHadronEneHC5x5
double nHadronEne
Definition: GenSimInfo.h:46
std::vector< double > * t_cHadronEne31x31_2
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
std::vector< double > * t_isoTrkPAll
std::vector< double > * t_nHadronEneHC1x1
std::vector< double > * t_eleEneIsoHCR
std::vector< double > * t_eleEneHC5x5
std::vector< double > * t_cHadronEneIsoHCR
std::vector< double > * t_muEneHCR
int iEvent
Definition: GenABIO.cc:224
std::vector< double > * t_cHadronEne7x7_1
std::vector< double > * t_maxNearP25x25
std::vector< double > * t_cHadronEne3x3_3
std::vector< double > * t_cHadronEneHC7x7_1
std::vector< double > * t_cHadronEneHC5x5_1
double genPartEtaBins_[NEtaBins_+1]
edm::EDGetTokenT< l1extra::L1EmParticleCollection > tok_L1Em_
std::vector< double > * t_eleEne25x25
std::vector< double > * t_eleEne9x9
std::vector< double > * t_eleEne1x1
std::vector< double > * t_muEne11x11
std::vector< double > * t_eleEneHCR
std::vector< double > * t_muEne7x7
std::vector< double > * t_cHadronEneHC1x1
std::vector< bool > DecisionWord
typedefs
std::vector< double > * t_cHadronEneR_3
std::vector< double > * t_cHadronEne11x11_1
std::vector< double > * t_muEne1x1
std::vector< double > * t_cHadronEne15x15_1
std::vector< double > * t_cHadronEneIsoHCR_3
std::vector< double > * t_cHadronEneIsoR
std::vector< double > * t_eleEneHC3x3
std::vector< double > * t_isoTrkDEtaAll
std::vector< double > * t_muEne25x25
std::vector< double > * t_cHadronEne9x9_3
std::vector< double > * t_L1NonIsoEMPt
std::vector< double > * t_photonEne25x25
std::vector< double > * t_maxNearP21x21
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
std::vector< double > * t_maxNearP31x31
std::vector< double > * t_muEneHC3x3
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:10
std::vector< double > * t_cHadronEneHC3x3
std::vector< double > * t_cHadronEne11x11
std::vector< double > * t_cHadronEne25x25_3
std::vector< double > * t_cHadronEneHCR_3
std::vector< double > * t_L1CenJetPt
bool getData(T &iHolder) const
Definition: EventSetup.h:122
std::vector< double > * t_maxNearPHC5x5
std::vector< double > * t_cHadronEneHCR_2
std::vector< double > * t_cHadronEne11x11_3
std::vector< double > * t_cHadronEneHCR
std::vector< double > * t_cHadronEne1x1
std::vector< double > * t_isoTrkDPhiAll
std::vector< double > * t_photonEneIsoHCR
std::vector< double > * t_nHadronEne31x31
std::vector< double > * t_maxNearP3x3
std::vector< double > * t_cHadronEne1x1_1
std::vector< double > * t_cHadronEne21x21_1
const HepMC::GenEvent * GetEvent() const
Definition: HepMCProduct.h:37
std::vector< double > * t_isoTrkPhiEC
std::vector< double > * t_cHadronEne11x11_2
std::vector< double > * t_L1CenJetPhi
std::vector< double > * t_maxNearP1x1
edm::EDGetTokenT< L1GlobalTriggerObjectMapRecord > tok_L1GTobjmap_
std::vector< double > * t_maxNearPHC3x3
std::vector< double > * t_nHadronEneHCR
std::vector< double > * t_eleEneR
std::vector< double > * t_cHadronEneIsoR_2
std::vector< double > * t_cHadronEne9x9_1
std::vector< double > * t_eleEneIsoR
std::vector< double > * t_cHadronEneR_2
std::vector< double > * t_isoTrkPhiAll
void fillTrack(GlobalPoint &posVec, math::XYZTLorentzVector &momVec, GlobalPoint &posECAL, int pdgId, bool okECAL, bool accpet)
std::vector< double > * t_photonEneHC1x1
edm::ESGetToken< HepPDT::ParticleDataTable, PDTRecord > tok_pdt_
std::vector< double > * t_L1FwdJetEta
std::vector< double > * t_maxNearPR
edm::EDGetTokenT< l1extra::L1EmParticleCollection > tok_L1extNonIsoEm_
std::vector< double > * t_muEne31x31
void fillIsolatedTrack(math::XYZTLorentzVector &momVec, GlobalPoint &posECAL, int pdgId)
std::vector< double > * t_isoTrkPtAll
std::vector< double > * t_isoTrkP
std::vector< double > * t_nHadronEne11x11
std::vector< double > * t_nHadronEneIsoR
std::vector< double > * t_L1NonIsoEMPhi
std::vector< double > * t_eleEne21x21
std::vector< double > * t_maxNearPHC1x1
std::vector< double > * t_cHadronEne9x9_2
std::vector< double > * t_cHadronEne31x31_3
std::vector< double > * t_maxNearP9x9
std::vector< double > * t_photonEne31x31
std::vector< double > * t_nHadronEneHC3x3
std::vector< double > * t_cHadronEne15x15_2
std::vector< double > * t_photonEne15x15
std::vector< double > * t_L1NonIsoEMEta
std::vector< double > * t_isoTrkPhi
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< double > * t_nHadronEne15x15
std::vector< double > * t_cHadronEneHC1x1_1
std::vector< double > * t_photonEneR
std::vector< double > * t_isoTrkEtaEC
std::vector< double > * t_nHadronEne1x1
std::vector< double > * t_cHadronEne3x3
bool isValid() const
Definition: HandleBase.h:70
edm::EDGetTokenT< edm::HepMCProduct > tok_hepmc_
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< double > * t_cHadronEne25x25_2
std::vector< double > * t_L1IsoEMPhi
std::vector< double > * t_cHadronEneHC5x5_3
std::string algoBitToName_[nL1BitsMax_]
edm::EDGetTokenT< reco::GenParticleCollection > tok_genParticles_
std::vector< double > * t_photonEne9x9
std::vector< double > * t_L1METPhi
std::vector< double > * t_nHadronEne25x25
std::vector< double > * t_photonEne3x3
std::vector< double > * t_cHadronEneHC3x3_3
std::vector< double > * t_eleEneHC1x1
std::vector< double > * t_photonEne11x11
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:90
std::vector< double > * t_muEne3x3
std::vector< double > * t_cHadronEne9x9
std::vector< double > * t_muEne15x15
std::vector< double > * t_cHadronEne21x21_2
std::vector< double > * t_cHadronEne3x3_1
std::vector< double > * t_cHadronEneHC3x3_1
edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extFwdJet_
std::vector< double > * t_cHadronEne25x25_1
std::vector< double > * t_cHadronEne15x15
std::vector< double > * t_cHadronEne21x21
std::vector< double > * t_L1METPt
std::vector< double > * t_muEneHC5x5
int etaBin(const l1t::HGCalMulticluster *cl)
std::vector< double > * t_cHadronEneR_1
std::vector< double > * t_cHadronEne21x21_3
std::vector< double > * t_L1MuonPhi
double maxNearP
Definition: GenSimInfo.h:45
std::vector< double > * t_cHadronEne7x7_3
static constexpr int Particles
std::vector< double > * t_photonEneIsoR
std::vector< double > * t_cHadronEne7x7
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > tok_topo_
std::vector< double > * t_eleEne15x15
std::vector< double > * t_maxNearPIsoR
std::vector< double > * t_nHadronEne3x3
std::vector< double > * t_nHadronEneHC5x5
std::vector< double > * t_isoTrkEne
std::vector< double > * t_cHadronEne1x1_3