CMS 3D CMS Logo

IsolatedTracksCone.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: IsolatedParticles
4 // Class: IsolatedTracksCone
5 //
14 //
15 // Original Author: Jim Hirschauer (adaptation of Seema Sharma's
16 // IsolatedTracksNew)
17 // Created: Thu Nov 6 15:30:40 CST 2008
18 //
19 //
20 // system include files
21 #include <cmath>
22 #include <map>
23 #include <memory>
24 #include <string>
25 #include <vector>
26 
27 #include <Math/GenVector/VectorUtil.h>
28 
29 // user include files
38 
40 
50 // muons and tracks
54 // Vertices
57 //L1 objects
65 
74 
75 //TFile Service
78 
79 // ecal / hcal
86 
89 
90 // SimHit, SimTrack, ...
96 
97 // track associator
100 
101 // tracker hit associator
105 
106 // root objects
107 #include "TROOT.h"
108 #include "TSystem.h"
109 #include "TFile.h"
110 #include "TH1F.h"
111 #include "TH2F.h"
112 #include "TProfile.h"
113 #include "TDirectory.h"
114 #include "TTree.h"
115 
116 class IsolatedTracksCone : public edm::one::EDAnalyzer<edm::one::SharedResources> {
117 public:
118  explicit IsolatedTracksCone(const edm::ParameterSet&);
119  ~IsolatedTracksCone() override;
120 
121  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
122 
123 private:
124  void beginJob() override;
125  void analyze(const edm::Event&, const edm::EventSetup&) override;
126  void endJob() override;
127 
128  void printTrack(const reco::Track* pTrack);
129 
130  // void BookHistograms();
131  void buildTree();
132  void clearTrackVectors();
133 
134  static constexpr int nEtaBins_ = 4;
135  static constexpr int nPBins_ = 21;
136  std::array<double, nPBins_ + 1> genPartPBins_;
137  std::array<double, nEtaBins_ + 1> genPartEtaBins;
138 
139  const bool doMC_;
140  const int myverbose_;
141  const bool useJetTrigger_;
143  const int debugTrks_;
145 
147 
151 
155 
159 
164 
170 
172  const int debugEcalSimInfo_;
174 
175  // track associator to detector parameters
177  std::unique_ptr<TrackDetectorAssociator> trackAssociator_;
178 
179  TTree* ntp_;
180 
181  TH1F* h_RawPt;
182  TH1F* h_RawP;
183  TH1F* h_RawEta;
184  TH1F* h_RawPhi;
185 
186  int nRawTRK;
188  int nFailPt;
189  int nFailEta;
192  int nEVT;
194  int nTRK;
195  double leadL1JetPT;
196  double leadL1JetEta;
197  double leadL1JetPhi;
198 
199  std::unique_ptr<std::vector<std::vector<int> > > t_v_hnNearTRKs;
200  std::unique_ptr<std::vector<std::vector<int> > > t_v_hnLayers_maxNearP;
201  std::unique_ptr<std::vector<std::vector<int> > > t_v_htrkQual_maxNearP;
202  std::unique_ptr<std::vector<std::vector<double> > > t_v_hmaxNearP_goodTrk;
203  std::unique_ptr<std::vector<std::vector<double> > > t_v_hmaxNearP;
204 
205  std::unique_ptr<std::vector<std::vector<int> > > t_v_cone_hnNearTRKs;
206  std::unique_ptr<std::vector<std::vector<int> > > t_v_cone_hnLayers_maxNearP;
207  std::unique_ptr<std::vector<std::vector<int> > > t_v_cone_htrkQual_maxNearP;
208  std::unique_ptr<std::vector<std::vector<double> > > t_v_cone_hmaxNearP_goodTrk;
209  std::unique_ptr<std::vector<std::vector<double> > > t_v_cone_hmaxNearP;
210 
211  std::unique_ptr<std::vector<double> > t_trkNOuterHits;
212  std::unique_ptr<std::vector<double> > t_trkNLayersCrossed;
213  std::unique_ptr<std::vector<double> > t_dtFromLeadJet;
214  std::unique_ptr<std::vector<double> > t_trkP;
215  std::unique_ptr<std::vector<double> > t_simP;
216  std::unique_ptr<std::vector<double> > t_trkPt;
217  std::unique_ptr<std::vector<double> > t_trkEta;
218  std::unique_ptr<std::vector<double> > t_trkPhi;
219  std::unique_ptr<std::vector<double> > t_e3x3;
220 
221  std::unique_ptr<std::vector<std::vector<double> > > t_v_eDR;
222  std::unique_ptr<std::vector<std::vector<double> > > t_v_eMipDR;
223 
224  std::unique_ptr<std::vector<double> > t_h3x3;
225  std::unique_ptr<std::vector<double> > t_h5x5;
226  std::unique_ptr<std::vector<double> > t_hsim3x3;
227  std::unique_ptr<std::vector<double> > t_hsim5x5;
228 
229  std::unique_ptr<std::vector<double> > t_nRH_h3x3;
230  std::unique_ptr<std::vector<double> > t_nRH_h5x5;
231 
232  std::unique_ptr<std::vector<double> > t_hsim3x3Matched;
233  std::unique_ptr<std::vector<double> > t_hsim5x5Matched;
234  std::unique_ptr<std::vector<double> > t_hsim3x3Rest;
235  std::unique_ptr<std::vector<double> > t_hsim5x5Rest;
236  std::unique_ptr<std::vector<double> > t_hsim3x3Photon;
237  std::unique_ptr<std::vector<double> > t_hsim5x5Photon;
238  std::unique_ptr<std::vector<double> > t_hsim3x3NeutHad;
239  std::unique_ptr<std::vector<double> > t_hsim5x5NeutHad;
240  std::unique_ptr<std::vector<double> > t_hsim3x3CharHad;
241  std::unique_ptr<std::vector<double> > t_hsim5x5CharHad;
242  std::unique_ptr<std::vector<double> > t_hsim3x3PdgMatched;
243  std::unique_ptr<std::vector<double> > t_hsim5x5PdgMatched;
244  std::unique_ptr<std::vector<double> > t_hsim3x3Total;
245  std::unique_ptr<std::vector<double> > t_hsim5x5Total;
246 
247  std::unique_ptr<std::vector<int> > t_hsim3x3NMatched;
248  std::unique_ptr<std::vector<int> > t_hsim3x3NRest;
249  std::unique_ptr<std::vector<int> > t_hsim3x3NPhoton;
250  std::unique_ptr<std::vector<int> > t_hsim3x3NNeutHad;
251  std::unique_ptr<std::vector<int> > t_hsim3x3NCharHad;
252  std::unique_ptr<std::vector<int> > t_hsim3x3NTotal;
253 
254  std::unique_ptr<std::vector<int> > t_hsim5x5NMatched;
255  std::unique_ptr<std::vector<int> > t_hsim5x5NRest;
256  std::unique_ptr<std::vector<int> > t_hsim5x5NPhoton;
257  std::unique_ptr<std::vector<int> > t_hsim5x5NNeutHad;
258  std::unique_ptr<std::vector<int> > t_hsim5x5NCharHad;
259  std::unique_ptr<std::vector<int> > t_hsim5x5NTotal;
260 
261  std::unique_ptr<std::vector<double> > t_distFromHotCell_h3x3;
262  std::unique_ptr<std::vector<int> > t_ietaFromHotCell_h3x3;
263  std::unique_ptr<std::vector<int> > t_iphiFromHotCell_h3x3;
264  std::unique_ptr<std::vector<double> > t_distFromHotCell_h5x5;
265  std::unique_ptr<std::vector<int> > t_ietaFromHotCell_h5x5;
266  std::unique_ptr<std::vector<int> > t_iphiFromHotCell_h5x5;
267 
268  std::unique_ptr<std::vector<double> > t_trkHcalEne;
269  std::unique_ptr<std::vector<double> > t_trkEcalEne;
270 
271  std::unique_ptr<std::vector<std::vector<double> > > t_v_hsimInfoConeMatched;
272  std::unique_ptr<std::vector<std::vector<double> > > t_v_hsimInfoConeRest;
273  std::unique_ptr<std::vector<std::vector<double> > > t_v_hsimInfoConePhoton;
274  std::unique_ptr<std::vector<std::vector<double> > > t_v_hsimInfoConeNeutHad;
275  std::unique_ptr<std::vector<std::vector<double> > > t_v_hsimInfoConeCharHad;
276  std::unique_ptr<std::vector<std::vector<double> > > t_v_hsimInfoConePdgMatched;
277  std::unique_ptr<std::vector<std::vector<double> > > t_v_hsimInfoConeTotal;
278 
279  std::unique_ptr<std::vector<std::vector<int> > > t_v_hsimInfoConeNMatched;
280  std::unique_ptr<std::vector<std::vector<int> > > t_v_hsimInfoConeNRest;
281  std::unique_ptr<std::vector<std::vector<int> > > t_v_hsimInfoConeNPhoton;
282  std::unique_ptr<std::vector<std::vector<int> > > t_v_hsimInfoConeNNeutHad;
283  std::unique_ptr<std::vector<std::vector<int> > > t_v_hsimInfoConeNCharHad;
284  std::unique_ptr<std::vector<std::vector<int> > > t_v_hsimInfoConeNTotal;
285 
286  std::unique_ptr<std::vector<std::vector<double> > > t_v_hsimCone;
287  std::unique_ptr<std::vector<std::vector<double> > > t_v_hCone;
288  std::unique_ptr<std::vector<std::vector<int> > > t_v_nRecHitsCone;
289  std::unique_ptr<std::vector<std::vector<int> > > t_v_nSimHitsCone;
290 
291  std::unique_ptr<std::vector<std::vector<double> > > t_v_distFromHotCell;
292  std::unique_ptr<std::vector<std::vector<int> > > t_v_ietaFromHotCell;
293  std::unique_ptr<std::vector<std::vector<int> > > t_v_iphiFromHotCell;
294 
295  std::unique_ptr<std::vector<std::vector<int> > > t_v_hlTriggers;
296  std::unique_ptr<std::vector<int> > t_hltHB;
297  std::unique_ptr<std::vector<int> > t_hltHE;
298  std::unique_ptr<std::vector<int> > t_hltL1Jet15;
299  std::unique_ptr<std::vector<int> > t_hltJet30;
300  std::unique_ptr<std::vector<int> > t_hltJet50;
301  std::unique_ptr<std::vector<int> > t_hltJet80;
302  std::unique_ptr<std::vector<int> > t_hltJet110;
303  std::unique_ptr<std::vector<int> > t_hltJet140;
304  std::unique_ptr<std::vector<int> > t_hltJet180;
305  std::unique_ptr<std::vector<int> > t_hltL1SingleEG5;
306  std::unique_ptr<std::vector<int> > t_hltZeroBias;
307  std::unique_ptr<std::vector<int> > t_hltMinBiasHcal;
308  std::unique_ptr<std::vector<int> > t_hltMinBiasEcal;
309  std::unique_ptr<std::vector<int> > t_hltMinBiasPixel;
310  std::unique_ptr<std::vector<int> > t_hltSingleIsoTau30_Trk5;
311  std::unique_ptr<std::vector<int> > t_hltDoubleLooseIsoTau15_Trk5;
312 
313  std::unique_ptr<std::vector<std::vector<int> > > t_v_RH_h3x3_ieta;
314  std::unique_ptr<std::vector<std::vector<int> > > t_v_RH_h3x3_iphi;
315  std::unique_ptr<std::vector<std::vector<double> > > t_v_RH_h3x3_ene;
316  std::unique_ptr<std::vector<std::vector<int> > > t_v_RH_h5x5_ieta;
317  std::unique_ptr<std::vector<std::vector<int> > > t_v_RH_h5x5_iphi;
318  std::unique_ptr<std::vector<std::vector<double> > > t_v_RH_h5x5_ene;
319  std::unique_ptr<std::vector<std::vector<int> > > t_v_RH_r26_ieta;
320  std::unique_ptr<std::vector<std::vector<int> > > t_v_RH_r26_iphi;
321  std::unique_ptr<std::vector<std::vector<double> > > t_v_RH_r26_ene;
322  std::unique_ptr<std::vector<std::vector<int> > > t_v_RH_r44_ieta;
323  std::unique_ptr<std::vector<std::vector<int> > > t_v_RH_r44_iphi;
324  std::unique_ptr<std::vector<std::vector<double> > > t_v_RH_r44_ene;
325 
326  std::unique_ptr<std::vector<unsigned int> > t_irun;
327  std::unique_ptr<std::vector<unsigned int> > t_ievt;
328  std::unique_ptr<std::vector<unsigned int> > t_ilum;
329 };
330 
332  : doMC_(iConfig.getUntrackedParameter<bool>("doMC", false)),
333  myverbose_(iConfig.getUntrackedParameter<int>("verbosity", 5)),
334  useJetTrigger_(iConfig.getUntrackedParameter<bool>("useJetTrigger", false)),
335  drLeadJetVeto_(iConfig.getUntrackedParameter<double>("drLeadJetVeto", 1.2)),
336  ptMinLeadJet_(iConfig.getUntrackedParameter<double>("ptMinLeadJet", 15.0)),
337  debugTrks_(iConfig.getUntrackedParameter<int>("debugTracks")),
338  printTrkHitPattern_(iConfig.getUntrackedParameter<bool>("printTrkHitPattern")),
339  trackerHitAssociatorConfig_(consumesCollector()),
340  tok_L1extTauJet_(
341  consumes<l1extra::L1JetParticleCollection>(iConfig.getParameter<edm::InputTag>("L1extraTauJetSource"))),
342  tok_L1extCenJet_(
343  consumes<l1extra::L1JetParticleCollection>(iConfig.getParameter<edm::InputTag>("L1extraCenJetSource"))),
344  tok_L1extFwdJet_(
345  consumes<l1extra::L1JetParticleCollection>(iConfig.getParameter<edm::InputTag>("L1extraFwdJetSource"))),
346  tok_EB_(consumes<EcalRecHitCollection>(edm::InputTag("ecalRecHit", "EcalRecHitsEB"))),
347  tok_EE_(consumes<EcalRecHitCollection>(edm::InputTag("ecalRecHit", "EcalRecHitsEE"))),
348  tok_hbhe_(consumes<HBHERecHitCollection>(edm::InputTag("hbhereco"))),
349  tok_genTrack_(consumes<reco::TrackCollection>(edm::InputTag("generalTracks"))),
350  tok_simTk_(consumes<edm::SimTrackContainer>(edm::InputTag("g4SimHits"))),
351  tok_simVtx_(consumes<edm::SimVertexContainer>(edm::InputTag("g4SimHits"))),
352  tok_caloEB_(consumes<edm::PCaloHitContainer>(edm::InputTag("g4SimHits", "EcalHitsEB"))),
353  tok_caloEE_(consumes<edm::PCaloHitContainer>(edm::InputTag("g4SimHits", "EcalHitsEE"))),
354  tok_caloHH_(consumes<edm::PCaloHitContainer>(edm::InputTag("g4SimHits", "HcalHits"))),
355  tok_trigger_(consumes<edm::TriggerResults>(edm::InputTag("TriggerResults", "", "HLT"))),
356  tok_geom_(esConsumes()),
357  tok_caloTopology_(esConsumes()),
358  tok_topo_(esConsumes()),
359  tok_ecalChStatus_(esConsumes()),
360  tok_sevlv_(esConsumes()),
361  minTrackP_(iConfig.getUntrackedParameter<double>("minTrackP", 10.0)),
362  maxTrackEta_(iConfig.getUntrackedParameter<double>("maxTrackEta", 5.0)),
363  maxNearTrackP_(iConfig.getUntrackedParameter<double>("maxNearTrackP", 1.0)),
364  debugEcalSimInfo_(iConfig.getUntrackedParameter<int>("debugEcalSimInfo")),
365  applyEcalIsolation_(iConfig.getUntrackedParameter<bool>("applyEcalIsolation")) {
366  //now do what ever initialization is needed
367 
368  edm::ParameterSet parameters = iConfig.getParameter<edm::ParameterSet>("TrackAssociatorParameters");
371  trackAssociator_ = std::make_unique<TrackDetectorAssociator>();
372  trackAssociator_->useDefaultPropagator();
373 
374  if (myverbose_ >= 0) {
375  edm::LogVerbatim("IsoTrack") << "Parameters read from config file \n"
376  << "myverbose_ " << myverbose_ << "\n"
377  << "useJetTrigger_ " << useJetTrigger_ << "\n"
378  << "drLeadJetVeto_ " << drLeadJetVeto_ << "\n"
379  << "minTrackP_ " << minTrackP_ << "\n"
380  << "maxTrackEta_ " << maxTrackEta_ << "\n"
381  << "maxNearTrackP_ " << maxNearTrackP_;
382  }
383 }
384 
386 
389  desc.addUntracked<bool>("doMC", false);
390  desc.addUntracked<int>("verbosity", 1);
391  desc.addUntracked<bool>("useJetTrigger", false);
392  desc.addUntracked<double>("drLeadJetVeto", 1.2);
393  desc.addUntracked<double>("ptMinLeadJet", 15.0);
394  desc.addUntracked<int>("debugTracks", 0);
395  desc.addUntracked<bool>("printTrkHitPattern", true);
396  desc.addUntracked<double>("minTrackP", 1.0);
397  desc.addUntracked<double>("maxTrackEta", 2.6);
398  desc.addUntracked<double>("maxNearTrackP", 1.0);
399  desc.addUntracked<bool>("debugEcalSimInfo", false);
400  desc.addUntracked<bool>("applyEcalIsolation", true);
401  desc.addUntracked<bool>("debugL1Info", false);
402  desc.add<edm::InputTag>("L1extraTauJetSource", edm::InputTag("l1extraParticles", "Tau"));
403  desc.add<edm::InputTag>("L1extraCenJetSource", edm::InputTag("l1extraParticles", "Central"));
404  desc.add<edm::InputTag>("L1extraFwdJetSource", edm::InputTag("l1extraParticles", "Forward"));
405  //The following parameters are used as default for track association
406  edm::ParameterSetDescription desc_TrackAssoc;
407  desc_TrackAssoc.add<double>("muonMaxDistanceSigmaX", 0.0);
408  desc_TrackAssoc.add<double>("muonMaxDistanceSigmaY", 0.0);
409  desc_TrackAssoc.add<edm::InputTag>("CSCSegmentCollectionLabel", edm::InputTag("cscSegments"));
410  desc_TrackAssoc.add<double>("dRHcal", 9999.0);
411  desc_TrackAssoc.add<double>("dREcal", 9999.0);
412  desc_TrackAssoc.add<edm::InputTag>("CaloTowerCollectionLabel", edm::InputTag("towerMaker"));
413  desc_TrackAssoc.add<bool>("useEcal", true);
414  desc_TrackAssoc.add<double>("dREcalPreselection", 0.05);
415  desc_TrackAssoc.add<edm::InputTag>("HORecHitCollectionLabel", edm::InputTag("horeco"));
416  desc_TrackAssoc.add<double>("dRMuon", 9999.0);
417  desc_TrackAssoc.add<std::string>("crossedEnergyType", "SinglePointAlongTrajectory");
418  desc_TrackAssoc.add<double>("muonMaxDistanceX", 5.0);
419  desc_TrackAssoc.add<double>("muonMaxDistanceY", 5.0);
420  desc_TrackAssoc.add<bool>("useHO", false);
421  desc_TrackAssoc.add<bool>("accountForTrajectoryChangeCalo", false);
422  desc_TrackAssoc.add<edm::InputTag>("DTRecSegment4DCollectionLabel", edm::InputTag("dt4DSegments"));
423  desc_TrackAssoc.add<edm::InputTag>("EERecHitCollectionLabel", edm::InputTag("ecalRecHit", "EcalRecHitsEE"));
424  desc_TrackAssoc.add<double>("dRHcalPreselection", 0.2);
425  desc_TrackAssoc.add<bool>("useMuon", false);
426  desc_TrackAssoc.add<bool>("useCalo", true);
427  desc_TrackAssoc.add<edm::InputTag>("EBRecHitCollectionLabel", edm::InputTag("ecalRecHit", "EcalRecHitsEB"));
428  desc_TrackAssoc.add<double>("dRMuonPreselection", 0.2);
429  desc_TrackAssoc.add<bool>("truthMatch", false);
430  desc_TrackAssoc.add<edm::InputTag>("HBHERecHitCollectionLabel", edm::InputTag("hbhereco"));
431  desc_TrackAssoc.add<bool>("useHcal", true);
432  desc_TrackAssoc.add<bool>("usePreshower", false);
433  desc_TrackAssoc.add<double>("dRPreshowerPreselection", 0.2);
434  desc_TrackAssoc.add<double>("trajectoryUncertaintyTolerance", 1.0);
435  desc.add<edm::ParameterSetDescription>("TrackAssociatorParameters", desc_TrackAssoc);
436  descriptions.add("isolatedTracksCone", desc);
437 }
438 
440  unsigned int irun = (unsigned int)iEvent.id().run();
441  unsigned int ilum = (unsigned int)iEvent.getLuminosityBlock().luminosityBlock();
442  unsigned int ievt = (unsigned int)iEvent.id().event();
443 
445 
446  // check the L1 objects
447  bool L1Pass = false;
448  leadL1JetPT = -999, leadL1JetEta = -999, leadL1JetPhi = -999;
449  if (!useJetTrigger_) {
450  L1Pass = true;
451  } else {
453  iEvent.getByToken(tok_L1extTauJet_, l1TauHandle);
454  l1extra::L1JetParticleCollection::const_iterator itr;
455  for (itr = l1TauHandle->begin(); itr != l1TauHandle->end(); ++itr) {
456  if (itr->pt() > leadL1JetPT) {
457  leadL1JetPT = itr->pt();
458  leadL1JetEta = itr->eta();
459  leadL1JetPhi = itr->phi();
460  }
461  }
463  iEvent.getByToken(tok_L1extCenJet_, l1CenJetHandle);
464  for (itr = l1CenJetHandle->begin(); itr != l1CenJetHandle->end(); ++itr) {
465  if (itr->pt() > leadL1JetPT) {
466  leadL1JetPT = itr->pt();
467  leadL1JetEta = itr->eta();
468  leadL1JetPhi = itr->phi();
469  }
470  }
472  iEvent.getByToken(tok_L1extFwdJet_, l1FwdJetHandle);
473  for (itr = l1FwdJetHandle->begin(); itr != l1FwdJetHandle->end(); ++itr) {
474  if (itr->pt() > leadL1JetPT) {
475  leadL1JetPT = itr->pt();
476  leadL1JetEta = itr->eta();
477  leadL1JetPhi = itr->phi();
478  }
479  }
480  if (leadL1JetPT > ptMinLeadJet_) {
481  L1Pass = true;
482  }
483  }
484 
486  // Break now if L1Pass is false
488  if (!L1Pass) {
489  nEVT_failL1++;
490  // edm::LogVerbatim("IsoTrack") << "L1Pass is false : " << L1Pass;
491  // return;
492  }
493 
495  // Get the collection handles
497 
498  const CaloGeometry* geo = &iSetup.getData(tok_geom_);
503 
504  const CaloTopology* caloTopology = &iSetup.getData(tok_caloTopology_);
505  const HcalTopology* theHBHETopology = &iSetup.getData(tok_topo_);
506 
507  edm::Handle<EcalRecHitCollection> barrelRecHitsHandle;
508  edm::Handle<EcalRecHitCollection> endcapRecHitsHandle;
509  iEvent.getByToken(tok_EB_, barrelRecHitsHandle);
510  iEvent.getByToken(tok_EE_, endcapRecHitsHandle);
511 
512  // Retrieve the good/bad ECAL channels from the DB
513  const EcalChannelStatus* theEcalChStatus = &iSetup.getData(tok_ecalChStatus_);
514 
516  iEvent.getByToken(tok_hbhe_, hbhe);
517  const HBHERecHitCollection Hithbhe = *(hbhe.product());
518 
520  iEvent.getByToken(tok_genTrack_, trkCollection);
521  reco::TrackCollection::const_iterator trkItr;
522  if (debugTrks_ > 1) {
523  edm::LogVerbatim("IsoTrack") << "Track Collection: ";
524  edm::LogVerbatim("IsoTrack") << "Number of Tracks " << trkCollection->size();
525  }
526  std::string theTrackQuality = "highPurity";
527  reco::TrackBase::TrackQuality trackQuality_ = reco::TrackBase::qualityByName(theTrackQuality);
528 
529  //get Handles to SimTracks and SimHits
531  if (doMC_)
532  iEvent.getByToken(tok_simTk_, SimTk);
533 
535  if (doMC_)
536  iEvent.getByToken(tok_simVtx_, SimVtx);
537 
538  //get Handles to PCaloHitContainers of eb/ee/hbhe
540  if (doMC_)
541  iEvent.getByToken(tok_caloEB_, pcaloeb);
542 
544  if (doMC_)
545  iEvent.getByToken(tok_caloEE_, pcaloee);
546 
548  if (doMC_)
549  iEvent.getByToken(tok_caloHH_, pcalohh);
550 
552  // Get HLT_IsoTrackHB/HE Information
554 
556  iEvent.getByToken(tok_trigger_, triggerResults);
557 
558  std::vector<int> v_hlTriggers;
559  int hltHB(-99);
560  int hltHE(-99);
561  int hltL1Jet15(-99);
562  int hltJet30(-99);
563  int hltJet50(-99);
564  int hltJet80(-99);
565  int hltJet110(-99);
566  int hltJet140(-99);
567  int hltJet180(-99);
568  int hltL1SingleEG5(-99);
569  int hltZeroBias(-99);
570  int hltMinBiasHcal(-99);
571  int hltMinBiasEcal(-99);
572  int hltMinBiasPixel(-99);
573  int hltSingleIsoTau30_Trk5(-99);
574  int hltDoubleLooseIsoTau15_Trk5(-99);
575 
576  if (triggerResults.isValid()) {
577  const edm::TriggerNames& triggerNames = iEvent.triggerNames(*triggerResults);
578  // TriggerNames class triggerNames.init(*triggerResults);
579 
580  for (unsigned int i = 0; i < triggerResults->size(); i++) {
581  // edm::LogVerbatim("IsoTrack") << "triggerNames.triggerName(" << i << ") = " << triggerNames.triggerName(i);
582  if (triggerNames.triggerName(i) == "HLT_IsoTrackHE_1E31")
583  hltHE = triggerResults->accept(i);
584  if (triggerNames.triggerName(i) == "HLT_IsoTrackHB_1E31")
585  hltHB = triggerResults->accept(i);
586  if (triggerNames.triggerName(i) == "HLT_L1Jet15")
587  hltL1Jet15 = triggerResults->accept(i);
588  if (triggerNames.triggerName(i) == "HLT_Jet30")
589  hltJet30 = triggerResults->accept(i);
590  if (triggerNames.triggerName(i) == "HLT_Jet50")
591  hltJet50 = triggerResults->accept(i);
592  if (triggerNames.triggerName(i) == "HLT_Jet80")
593  hltJet80 = triggerResults->accept(i);
594  if (triggerNames.triggerName(i) == "HLT_Jet110")
595  hltJet110 = triggerResults->accept(i);
596  if (triggerNames.triggerName(i) == "HLT_Jet140")
597  hltJet140 = triggerResults->accept(i);
598  if (triggerNames.triggerName(i) == "HLT_Jet180")
599  hltJet180 = triggerResults->accept(i);
600  if (triggerNames.triggerName(i) == "HLT_L1SingleEG5")
601  hltL1SingleEG5 = triggerResults->accept(i);
602  if (triggerNames.triggerName(i) == "HLT_ZeroBias")
603  hltZeroBias = triggerResults->accept(i);
604  if (triggerNames.triggerName(i) == "HLT_MinBiasHcal")
605  hltMinBiasHcal = triggerResults->accept(i);
606  if (triggerNames.triggerName(i) == "HLT_MinBiasEcal")
607  hltMinBiasEcal = triggerResults->accept(i);
608  if (triggerNames.triggerName(i) == "HLT_MinBiasPixel")
609  hltMinBiasPixel = triggerResults->accept(i);
610  if (triggerNames.triggerName(i) == "HLT_SingleIsoTau30_Trk5")
611  hltSingleIsoTau30_Trk5 = triggerResults->accept(i);
612  if (triggerNames.triggerName(i) == "HLT_DoubleLooseIsoTau15_Trk5")
613  hltDoubleLooseIsoTau15_Trk5 = triggerResults->accept(i);
614  }
615  }
616 
618  // Primary loop over tracks
620  std::unique_ptr<TrackerHitAssociator> associate;
621  if (doMC_)
622  associate = std::make_unique<TrackerHitAssociator>(iEvent, trackerHitAssociatorConfig_);
623 
624  nTRK = 0;
625  nRawTRK = 0;
626  nFailPt = 0;
627  nFailEta = 0;
629  nMissEcal = 0;
630  nMissHcal = 0;
631 
632  const EcalSeverityLevelAlgo* sevlv = &iSetup.getData(tok_sevlv_);
633  for (trkItr = trkCollection->begin(); trkItr != trkCollection->end(); ++trkItr) {
634  nRawTRK++;
635 
636  const reco::Track* pTrack = &(*trkItr);
637 
639  // Check for min Pt and max Eta P
641 
642  bool trkQual = pTrack->quality(trackQuality_);
643  bool goodPt = pTrack->p() > minTrackP_;
644  bool goodEta = std::abs(pTrack->momentum().eta()) < maxTrackEta_;
645 
646  double eta1 = pTrack->momentum().eta();
647  double phi1 = pTrack->momentum().phi();
648  double pt1 = pTrack->pt();
649  double p1 = pTrack->p();
650 
651  if (!goodEta) {
652  nFailEta++;
653  }
654  if (!goodPt) {
655  nFailPt++;
656  }
657  if (!trkQual) {
659  }
660 
661  h_RawPt->Fill(pt1);
662  h_RawP->Fill(p1);
663  h_RawEta->Fill(eta1);
664  h_RawPhi->Fill(phi1);
665 
666  if (!goodEta || !goodPt || !trkQual)
667  continue; // Skip to next track
668 
670  // Find track trajectory
672 
673  const FreeTrajectoryState fts1 =
674  trackAssociator_->getFreeTrajectoryState(&iSetup.getData(parameters_.bFieldToken), *pTrack);
675 
676  TrackDetMatchInfo info1 = trackAssociator_->associate(iEvent, iSetup, fts1, parameters_);
677 
679  // First confirm track makes it to Hcal
681 
682  if (info1.trkGlobPosAtHcal.x() == 0 && info1.trkGlobPosAtHcal.y() == 0 && info1.trkGlobPosAtHcal.z() == 0) {
683  nMissHcal++;
684  continue;
685  }
686 
687  const GlobalPoint hpoint1(info1.trkGlobPosAtHcal.x(), info1.trkGlobPosAtHcal.y(), info1.trkGlobPosAtHcal.z());
688 
690  // Get basic quantities
692 
693  const reco::HitPattern& hitp = pTrack->hitPattern();
694  int nLayersCrossed = hitp.trackerLayersWithMeasurement();
695  int nOuterHits = hitp.stripTOBLayersWithMeasurement() + hitp.stripTECLayersWithMeasurement();
696 
697  double simP = 0;
698  if (doMC_) {
699  edm::SimTrackContainer::const_iterator matchedSimTrk =
700  spr::matchedSimTrack(iEvent, SimTk, SimVtx, pTrack, *associate, false);
701  simP = matchedSimTrk->momentum().P();
702  }
704  // Get Ecal Point
706 
707  const GlobalPoint point1(info1.trkGlobPosAtEcal.x(), info1.trkGlobPosAtEcal.y(), info1.trkGlobPosAtEcal.z());
708 
709  // Sanity check that track hits Ecal
710 
711  if (info1.trkGlobPosAtEcal.x() == 0 && info1.trkGlobPosAtEcal.y() == 0 && info1.trkGlobPosAtEcal.z() == 0) {
712  edm::LogVerbatim("IsoTrack") << "Track doesn't reach Ecal.";
713  nMissEcal++;
714  continue;
715  }
716 
717  // Get Track Momentum - make sure you have latest version of TrackDetMatchInfo
718 
719  GlobalVector trackMomAtEcal = info1.trkMomAtEcal;
720  GlobalVector trackMomAtHcal = info1.trkMomAtHcal;
721 
723  // If using Jet trigger, get distance from leading jet
725 
726  double drFromLeadJet = 999.0;
727  if (useJetTrigger_) {
728  double dphi = reco::deltaPhi(phi1, leadL1JetPhi);
729  double deta = eta1 - leadL1JetEta;
730  drFromLeadJet = sqrt(dphi * dphi + deta * deta);
731  }
732 
734  // Define Arrays for sizes of Charge, Neut Iso Radii and
735  // Clustering Cone Radius.
737 
738  const int a_size = 7;
739  double a_coneR[a_size];
740  double a_charIsoR[a_size];
741  double a_neutIsoR[a_size];
742 
743  a_coneR[0] = 17.49; // = area of 2x2
744  a_coneR[1] = 26.23; // = area of 3x3
745  a_coneR[2] = 30.61;
746  a_coneR[3] = 34.98; // = area of 4x4
747  a_coneR[4] = 39.35;
748  a_coneR[5] = 43.72; // = area of 5x5
749  a_coneR[6] = 52.46; // = area of 6x6
750 
751  for (int i = 0; i < a_size; i++) {
752  a_charIsoR[i] = a_coneR[i] + 28.9; // 28.9 gives 55.1 for 3x3 benchmark
753  a_neutIsoR[i] = a_charIsoR[i] * 0.726; // Ecal radius = 0.726*Hcal radius
754  }
755 
757  // Do Neutral Iso in radius on Ecal surface.
759 
760  // NxN cluster
761  double e3x3 = -999.0;
762  double trkEcalEne = -999.0;
763 
764  if (std::abs(point1.eta()) < 1.479) {
765  const DetId isoCell = gEB->getClosestCell(point1);
766  e3x3 = spr::eECALmatrix(
767  isoCell, barrelRecHitsHandle, endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology, sevlv, 1, 1)
768  .first;
769  trkEcalEne = spr::eCaloSimInfo(iEvent, geo, pcaloeb, pcaloee, SimTk, SimVtx, pTrack, *associate);
770  } else {
771  const DetId isoCell = gEE->getClosestCell(point1);
772  e3x3 = spr::eECALmatrix(
773  isoCell, barrelRecHitsHandle, endcapRecHitsHandle, *theEcalChStatus, geo, caloTopology, sevlv, 1, 1)
774  .first;
775  trkEcalEne = spr::eCaloSimInfo(iEvent, geo, pcaloeb, pcaloee, SimTk, SimVtx, pTrack, *associate);
776  }
777 
778  // Cone cluster
779 
780  // Set up array of cone sizes for MIP cut
781  const int a_mip_size = 5;
782  double a_mipR[a_mip_size];
783  a_mipR[0] = 3.84; // = area of 3x3 ecal
784  a_mipR[1] = 14.0;
785  a_mipR[2] = 19.0;
786  a_mipR[3] = 24.0;
787  a_mipR[4] = 9.0; // = from standard analyzer
788 
789  std::vector<double> v_eDR;
790  for (int i = 0; i < a_size; i++) {
791  int nRH_eDR = 0;
792 
793  // Cone in ecal
794  double eDR = spr::eCone_ecal(
795  geo, barrelRecHitsHandle, endcapRecHitsHandle, hpoint1, point1, a_neutIsoR[i], trackMomAtEcal, nRH_eDR);
796  v_eDR.push_back(eDR);
797  }
798 
799  std::vector<double> v_eMipDR;
800  for (int i = 0; i < a_mip_size; i++) {
801  int nRH_eMipDR = 0;
802  double eMipDR = spr::eCone_ecal(
803  geo, barrelRecHitsHandle, endcapRecHitsHandle, hpoint1, point1, a_mipR[i], trackMomAtEcal, nRH_eMipDR);
804 
805  v_eMipDR.push_back(eMipDR);
806  }
807 
809  // Do charge isolation in radius at Hcal surface for 5 different
810  // radii defined above in a_charIso
812 
813  std::vector<double> v_hmaxNearP_goodTrk;
814  std::vector<double> v_hmaxNearP;
815  std::vector<int> v_hnNearTRKs;
816  std::vector<int> v_hnLayers_maxNearP;
817  std::vector<int> v_htrkQual_maxNearP;
818 
819  std::vector<double> v_cone_hmaxNearP_goodTrk;
820  std::vector<double> v_cone_hmaxNearP;
821  std::vector<int> v_cone_hnNearTRKs;
822  std::vector<int> v_cone_hnLayers_maxNearP;
823  std::vector<int> v_cone_htrkQual_maxNearP;
824 
825  for (int i = 0; i < a_size; i++) {
826  double hmaxNearP = -999.0;
827  int hnNearTRKs = 0;
828  int hnLayers_maxNearP = 0;
829  int htrkQual_maxNearP = -1;
830  double hmaxNearP_goodTrk = -999.0;
831 
832  double conehmaxNearP = -999.0;
833  int conehnNearTRKs = 0;
834  int conehnLayers_maxNearP = 0;
835  int conehtrkQual_maxNearP = -1;
836  double conehmaxNearP_goodTrk = -999.0;
837 
838  conehmaxNearP = spr::coneChargeIsolation(iEvent,
839  iSetup,
840  trkItr,
841  trkCollection,
843  parameters_,
844  theTrackQuality,
845  conehnNearTRKs,
846  conehnLayers_maxNearP,
847  conehtrkQual_maxNearP,
848  conehmaxNearP_goodTrk,
849  hpoint1,
850  trackMomAtHcal,
851  a_charIsoR[i]);
852 
853  v_hmaxNearP_goodTrk.push_back(hmaxNearP_goodTrk);
854  v_hmaxNearP.push_back(hmaxNearP);
855  v_hnNearTRKs.push_back(hnNearTRKs);
856  v_hnLayers_maxNearP.push_back(hnLayers_maxNearP);
857  v_htrkQual_maxNearP.push_back(htrkQual_maxNearP);
858 
859  v_cone_hmaxNearP_goodTrk.push_back(conehmaxNearP_goodTrk);
860  v_cone_hmaxNearP.push_back(conehmaxNearP);
861  v_cone_hnNearTRKs.push_back(conehnNearTRKs);
862  v_cone_hnLayers_maxNearP.push_back(conehnLayers_maxNearP);
863  v_cone_htrkQual_maxNearP.push_back(conehtrkQual_maxNearP);
864  }
865 
866  double h3x3 = -999.0, h5x5 = -999.0;
867  double hsim3x3 = -999.0, hsim5x5 = -999.0, trkHcalEne = -999.0;
868  std::map<std::string, double> hsimInfo3x3, hsimInfo5x5;
869  double distFromHotCell_h3x3 = -99.;
870  int ietaFromHotCell_h3x3 = -99;
871  int iphiFromHotCell_h3x3 = -99;
872  double distFromHotCell_h5x5 = -99.;
873  int ietaFromHotCell_h5x5 = -99;
874  int iphiFromHotCell_h5x5 = -99;
875 
876  GlobalPoint gPosHotCell_h3x3(0., 0., 0.);
877  GlobalPoint gPosHotCell_h5x5(0., 0., 0.);
878 
879  int nRH_h3x3(0), nRH_h5x5(0);
880 
881  // Hcal Energy Clustering
882 
883  // Get closetcell for ietaFromHotCell and iphiFromHotCell
884  DetId ClosestCell;
885  if (std::abs(pTrack->eta()) < 1.392) {
886  ClosestCell = gHB->getClosestCell(hpoint1);
887  } else {
888  ClosestCell = gHE->getClosestCell(hpoint1);
889  }
890  // Transform into HcalDetId so that I can get ieta, iphi later.
891  HcalDetId ClosestCell_HcalDetId(ClosestCell.rawId());
892 
893  // Using NxN Cluster
894  std::vector<int> v_RH_h3x3_ieta;
895  std::vector<int> v_RH_h3x3_iphi;
896  std::vector<double> v_RH_h3x3_ene;
897  std::vector<int> v_RH_h5x5_ieta;
898  std::vector<int> v_RH_h5x5_iphi;
899  std::vector<double> v_RH_h5x5_ene;
900 
901  h3x3 = spr::eHCALmatrix(geo,
902  theHBHETopology,
903  ClosestCell,
904  hbhe,
905  1,
906  1,
907  nRH_h3x3,
908  v_RH_h3x3_ieta,
909  v_RH_h3x3_iphi,
910  v_RH_h3x3_ene,
911  gPosHotCell_h3x3);
912  distFromHotCell_h3x3 = spr::getDistInPlaneTrackDir(hpoint1, trackMomAtHcal, gPosHotCell_h3x3);
913 
914  h5x5 = spr::eHCALmatrix(geo,
915  theHBHETopology,
916  ClosestCell,
917  hbhe,
918  2,
919  2,
920  nRH_h5x5,
921  v_RH_h5x5_ieta,
922  v_RH_h5x5_iphi,
923  v_RH_h5x5_ene,
924  gPosHotCell_h5x5);
925  distFromHotCell_h5x5 = spr::getDistInPlaneTrackDir(hpoint1, trackMomAtHcal, gPosHotCell_h5x5);
926 
927  // double heta = (double)hpoint1.eta();
928  // double hphi = (double)hpoint1.phi();
929  std::vector<int> multiplicity3x3;
930  std::vector<int> multiplicity5x5;
931  if (doMC_) {
932  hsim3x3 = spr::eHCALmatrix(theHBHETopology, ClosestCell, pcalohh, 1, 1);
933  hsim5x5 = spr::eHCALmatrix(theHBHETopology, ClosestCell, pcalohh, 2, 2);
934 
935  hsimInfo3x3 = spr::eHCALSimInfo(
936  iEvent, theHBHETopology, ClosestCell, pcalohh, SimTk, SimVtx, pTrack, *associate, 1, 1, multiplicity3x3);
937  hsimInfo5x5 = spr::eHCALSimInfo(
938  iEvent, theHBHETopology, ClosestCell, pcalohh, SimTk, SimVtx, pTrack, *associate, 2, 2, multiplicity5x5);
939 
940  // Get energy from all simhits in hcal associated with iso track
941  trkHcalEne = spr::eCaloSimInfo(iEvent, geo, pcalohh, SimTk, SimVtx, pTrack, *associate);
942  }
943 
944  // Finally for cones of varying radii.
945  std::vector<double> v_hsimInfoConeMatched;
946  std::vector<double> v_hsimInfoConeRest;
947  std::vector<double> v_hsimInfoConePhoton;
948  std::vector<double> v_hsimInfoConeNeutHad;
949  std::vector<double> v_hsimInfoConeCharHad;
950  std::vector<double> v_hsimInfoConePdgMatched;
951  std::vector<double> v_hsimInfoConeTotal;
952 
953  std::vector<int> v_hsimInfoConeNMatched;
954  std::vector<int> v_hsimInfoConeNTotal;
955  std::vector<int> v_hsimInfoConeNNeutHad;
956  std::vector<int> v_hsimInfoConeNCharHad;
957  std::vector<int> v_hsimInfoConeNPhoton;
958  std::vector<int> v_hsimInfoConeNRest;
959 
960  std::vector<double> v_hsimCone;
961  std::vector<double> v_hCone;
962 
963  std::vector<int> v_nRecHitsCone;
964  std::vector<int> v_nSimHitsCone;
965 
966  std::vector<double> v_distFromHotCell;
967  std::vector<int> v_ietaFromHotCell;
968  std::vector<int> v_iphiFromHotCell;
969  GlobalPoint gposHotCell(0., 0., 0.);
970 
971  std::vector<int> v_RH_r26_ieta;
972  std::vector<int> v_RH_r26_iphi;
973  std::vector<double> v_RH_r26_ene;
974  std::vector<int> v_RH_r44_ieta;
975  std::vector<int> v_RH_r44_iphi;
976  std::vector<double> v_RH_r44_ene;
977 
978  for (int i = 0; i < a_size; i++) {
979  std::map<std::string, double> hsimInfoCone;
980  double hsimCone = -999.0, hCone = -999.0;
981  double distFromHotCell = -99.0;
982  int ietaFromHotCell = -99;
983  int iphiFromHotCell = -99;
984  int ietaHotCell = -99;
985  int iphiHotCell = -99;
986  int nRecHitsCone = -999;
987  int nSimHitsCone = -999;
988 
989  std::vector<int> multiplicityCone;
990  std::vector<DetId> coneRecHitDetIds;
991  if (doMC_)
992  hsimCone = spr::eCone_hcal(geo, pcalohh, hpoint1, point1, a_coneR[i], trackMomAtHcal, nSimHitsCone);
993 
994  // If needed, get ieta and iphi of rechits for cones of 23.25
995  // and for hitmap for debugging
996  bool makeHitmaps = false;
997  if (a_coneR[i] == 26.23 && makeHitmaps) {
998  hCone = spr::eCone_hcal(geo,
999  hbhe,
1000  hpoint1,
1001  point1,
1002  a_coneR[i],
1003  trackMomAtHcal,
1004  nRecHitsCone,
1005  v_RH_r26_ieta,
1006  v_RH_r26_iphi,
1007  v_RH_r26_ene,
1008  coneRecHitDetIds,
1009  distFromHotCell,
1010  ietaHotCell,
1011  iphiHotCell,
1012  gposHotCell);
1013  } else if (a_coneR[i] == 43.72 && makeHitmaps) {
1014  hCone = spr::eCone_hcal(geo,
1015  hbhe,
1016  hpoint1,
1017  point1,
1018  a_coneR[i],
1019  trackMomAtHcal,
1020  nRecHitsCone,
1021  v_RH_r44_ieta,
1022  v_RH_r44_iphi,
1023  v_RH_r44_ene,
1024  coneRecHitDetIds,
1025  distFromHotCell,
1026  ietaHotCell,
1027  iphiHotCell,
1028  gposHotCell);
1029  } else {
1030  hCone = spr::eCone_hcal(geo,
1031  hbhe,
1032  hpoint1,
1033  point1,
1034  a_coneR[i],
1035  trackMomAtHcal,
1036  nRecHitsCone,
1037  coneRecHitDetIds,
1038  distFromHotCell,
1039  ietaHotCell,
1040  iphiHotCell,
1041  gposHotCell);
1042  }
1043 
1044  if (ietaHotCell != 99) {
1045  ietaFromHotCell = ietaHotCell - ClosestCell_HcalDetId.ieta();
1046  iphiFromHotCell = iphiHotCell - ClosestCell_HcalDetId.iphi();
1047  }
1048 
1049  // SimHits NOT matched to RecHits
1050  if (doMC_) {
1051  hsimInfoCone = spr::eHCALSimInfoCone(iEvent,
1052  pcalohh,
1053  SimTk,
1054  SimVtx,
1055  pTrack,
1056  *associate,
1057  geo,
1058  hpoint1,
1059  point1,
1060  a_coneR[i],
1061  trackMomAtHcal,
1062  multiplicityCone);
1063 
1064  // SimHits matched to RecHits
1065  // hsimInfoCone = spr::eHCALSimInfoCone(iEvent,pcalohh, SimTk, SimVtx,
1066  // pTrack, *associate,
1067  // geo, hpoint1, point1,
1068  // a_coneR[i], trackMomAtHcal,
1069  // multiplicityCone,
1070  // coneRecHitDetIds);
1071 
1072  v_hsimInfoConeMatched.push_back(hsimInfoCone["eMatched"]);
1073  v_hsimInfoConeRest.push_back(hsimInfoCone["eRest"]);
1074  v_hsimInfoConePhoton.push_back(hsimInfoCone["eGamma"]);
1075  v_hsimInfoConeNeutHad.push_back(hsimInfoCone["eNeutralHad"]);
1076  v_hsimInfoConeCharHad.push_back(hsimInfoCone["eChargedHad"]);
1077  v_hsimInfoConePdgMatched.push_back(hsimInfoCone["pdgMatched"]);
1078  v_hsimInfoConeTotal.push_back(hsimInfoCone["eTotal"]);
1079 
1080  v_hsimInfoConeNMatched.push_back(multiplicityCone.at(0));
1081 
1082  v_hsimInfoConeNTotal.push_back(multiplicityCone.at(1));
1083  v_hsimInfoConeNNeutHad.push_back(multiplicityCone.at(2));
1084  v_hsimInfoConeNCharHad.push_back(multiplicityCone.at(3));
1085  v_hsimInfoConeNPhoton.push_back(multiplicityCone.at(4));
1086  v_hsimInfoConeNRest.push_back(multiplicityCone.at(5));
1087 
1088  v_hsimCone.push_back(hsimCone);
1089  v_nSimHitsCone.push_back(nSimHitsCone);
1090  }
1091  v_hCone.push_back(hCone);
1092  v_nRecHitsCone.push_back(nRecHitsCone);
1093 
1094  v_distFromHotCell.push_back(distFromHotCell);
1095  v_ietaFromHotCell.push_back(ietaFromHotCell);
1096  v_iphiFromHotCell.push_back(iphiFromHotCell);
1097  }
1098 
1100  // Fill Vectors that go into root file
1102 
1103  t_v_hnNearTRKs->push_back(v_hnNearTRKs);
1104  t_v_hnLayers_maxNearP->push_back(v_hnLayers_maxNearP);
1105  t_v_htrkQual_maxNearP->push_back(v_htrkQual_maxNearP);
1106  t_v_hmaxNearP_goodTrk->push_back(v_hmaxNearP_goodTrk);
1107  t_v_hmaxNearP->push_back(v_hmaxNearP);
1108 
1109  t_v_cone_hnNearTRKs->push_back(v_cone_hnNearTRKs);
1110  t_v_cone_hnLayers_maxNearP->push_back(v_cone_hnLayers_maxNearP);
1111  t_v_cone_htrkQual_maxNearP->push_back(v_cone_htrkQual_maxNearP);
1112  t_v_cone_hmaxNearP_goodTrk->push_back(v_cone_hmaxNearP_goodTrk);
1113  t_v_cone_hmaxNearP->push_back(v_cone_hmaxNearP);
1114 
1115  // t_hScale ->push_back(hScale );
1116  t_trkNOuterHits->push_back(nOuterHits);
1117  t_trkNLayersCrossed->push_back(nLayersCrossed);
1118  t_dtFromLeadJet->push_back(drFromLeadJet);
1119  t_trkP->push_back(p1);
1120  t_trkPt->push_back(pt1);
1121  t_trkEta->push_back(eta1);
1122  t_trkPhi->push_back(phi1);
1123 
1124  t_e3x3->push_back(e3x3);
1125  t_v_eDR->push_back(v_eDR);
1126  t_v_eMipDR->push_back(v_eMipDR);
1127 
1128  t_h3x3->push_back(h3x3);
1129  t_h5x5->push_back(h5x5);
1130  t_nRH_h3x3->push_back(nRH_h3x3);
1131  t_nRH_h5x5->push_back(nRH_h5x5);
1132 
1133  t_v_RH_h3x3_ieta->push_back(v_RH_h3x3_ieta);
1134  t_v_RH_h3x3_iphi->push_back(v_RH_h3x3_iphi);
1135  t_v_RH_h3x3_ene->push_back(v_RH_h3x3_ene);
1136  t_v_RH_h5x5_ieta->push_back(v_RH_h5x5_ieta);
1137  t_v_RH_h5x5_iphi->push_back(v_RH_h5x5_iphi);
1138  t_v_RH_h5x5_ene->push_back(v_RH_h5x5_ene);
1139 
1140  if (doMC_) {
1141  t_simP->push_back(simP);
1142  t_hsim3x3->push_back(hsim3x3);
1143  t_hsim5x5->push_back(hsim5x5);
1144 
1145  t_hsim3x3Matched->push_back(hsimInfo3x3["eMatched"]);
1146  t_hsim5x5Matched->push_back(hsimInfo5x5["eMatched"]);
1147  t_hsim3x3Rest->push_back(hsimInfo3x3["eRest"]);
1148  t_hsim5x5Rest->push_back(hsimInfo5x5["eRest"]);
1149  t_hsim3x3Photon->push_back(hsimInfo3x3["eGamma"]);
1150  t_hsim5x5Photon->push_back(hsimInfo5x5["eGamma"]);
1151  t_hsim3x3NeutHad->push_back(hsimInfo3x3["eNeutralHad"]);
1152  t_hsim5x5NeutHad->push_back(hsimInfo5x5["eNeutralHad"]);
1153  t_hsim3x3CharHad->push_back(hsimInfo3x3["eChargedHad"]);
1154  t_hsim5x5CharHad->push_back(hsimInfo5x5["eChargedHad"]);
1155  t_hsim3x3Total->push_back(hsimInfo3x3["eTotal"]);
1156  t_hsim5x5Total->push_back(hsimInfo5x5["eTotal"]);
1157  t_hsim3x3PdgMatched->push_back(hsimInfo3x3["pdgMatched"]);
1158  t_hsim5x5PdgMatched->push_back(hsimInfo5x5["pdgMatched"]);
1159 
1160  t_hsim3x3NMatched->push_back(multiplicity3x3.at(0));
1161  t_hsim3x3NTotal->push_back(multiplicity3x3.at(1));
1162  t_hsim3x3NNeutHad->push_back(multiplicity3x3.at(2));
1163  t_hsim3x3NCharHad->push_back(multiplicity3x3.at(3));
1164  t_hsim3x3NPhoton->push_back(multiplicity3x3.at(4));
1165  t_hsim3x3NRest->push_back(multiplicity3x3.at(5));
1166 
1167  t_hsim5x5NMatched->push_back(multiplicity5x5.at(0));
1168  t_hsim5x5NTotal->push_back(multiplicity5x5.at(1));
1169  t_hsim5x5NNeutHad->push_back(multiplicity5x5.at(2));
1170  t_hsim5x5NCharHad->push_back(multiplicity5x5.at(3));
1171  t_hsim5x5NPhoton->push_back(multiplicity5x5.at(4));
1172  t_hsim5x5NRest->push_back(multiplicity5x5.at(5));
1173  }
1174 
1175  t_distFromHotCell_h3x3->push_back(distFromHotCell_h3x3);
1176  t_ietaFromHotCell_h3x3->push_back(ietaFromHotCell_h3x3);
1177  t_iphiFromHotCell_h3x3->push_back(iphiFromHotCell_h3x3);
1178  t_distFromHotCell_h5x5->push_back(distFromHotCell_h5x5);
1179  t_ietaFromHotCell_h5x5->push_back(ietaFromHotCell_h5x5);
1180  t_iphiFromHotCell_h5x5->push_back(iphiFromHotCell_h5x5);
1181 
1182  if (doMC_) {
1183  t_trkHcalEne->push_back(trkHcalEne);
1184  t_trkEcalEne->push_back(trkEcalEne);
1185 
1186  t_v_hsimInfoConeMatched->push_back(v_hsimInfoConeMatched);
1187  t_v_hsimInfoConeRest->push_back(v_hsimInfoConeRest);
1188  t_v_hsimInfoConePhoton->push_back(v_hsimInfoConePhoton);
1189  t_v_hsimInfoConeNeutHad->push_back(v_hsimInfoConeNeutHad);
1190  t_v_hsimInfoConeCharHad->push_back(v_hsimInfoConeCharHad);
1191  t_v_hsimInfoConePdgMatched->push_back(v_hsimInfoConePdgMatched);
1192  t_v_hsimInfoConeTotal->push_back(v_hsimInfoConeTotal);
1193 
1194  t_v_hsimInfoConeNMatched->push_back(v_hsimInfoConeNMatched);
1195  t_v_hsimInfoConeNTotal->push_back(v_hsimInfoConeNTotal);
1196  t_v_hsimInfoConeNNeutHad->push_back(v_hsimInfoConeNNeutHad);
1197  t_v_hsimInfoConeNCharHad->push_back(v_hsimInfoConeNCharHad);
1198  t_v_hsimInfoConeNPhoton->push_back(v_hsimInfoConeNPhoton);
1199  t_v_hsimInfoConeNRest->push_back(v_hsimInfoConeNRest);
1200 
1201  t_v_hsimCone->push_back(v_hsimCone);
1202  t_v_hCone->push_back(v_hCone);
1203  t_v_nRecHitsCone->push_back(v_nRecHitsCone);
1204  t_v_nSimHitsCone->push_back(v_nSimHitsCone);
1205  }
1206 
1207  t_v_distFromHotCell->push_back(v_distFromHotCell);
1208  t_v_ietaFromHotCell->push_back(v_ietaFromHotCell);
1209  t_v_iphiFromHotCell->push_back(v_iphiFromHotCell);
1210 
1211  t_v_RH_r26_ieta->push_back(v_RH_r26_ieta);
1212  t_v_RH_r26_iphi->push_back(v_RH_r26_iphi);
1213  t_v_RH_r26_ene->push_back(v_RH_r26_ene);
1214  t_v_RH_r44_ieta->push_back(v_RH_r44_ieta);
1215  t_v_RH_r44_iphi->push_back(v_RH_r44_iphi);
1216  t_v_RH_r44_ene->push_back(v_RH_r44_ene);
1217 
1218  t_v_hlTriggers->push_back(v_hlTriggers);
1219  t_hltHB->push_back(hltHB);
1220  t_hltHE->push_back(hltHE);
1221  t_hltL1Jet15->push_back(hltL1Jet15);
1222  t_hltJet30->push_back(hltJet30);
1223  t_hltJet50->push_back(hltJet50);
1224  t_hltJet80->push_back(hltJet80);
1225  t_hltJet110->push_back(hltJet110);
1226  t_hltJet140->push_back(hltJet140);
1227  t_hltJet180->push_back(hltJet180);
1228  t_hltL1SingleEG5->push_back(hltL1SingleEG5);
1229  t_hltZeroBias->push_back(hltZeroBias);
1230  t_hltMinBiasHcal->push_back(hltMinBiasHcal);
1231  t_hltMinBiasEcal->push_back(hltMinBiasEcal);
1232  t_hltMinBiasPixel->push_back(hltMinBiasPixel);
1233  t_hltSingleIsoTau30_Trk5->push_back(hltSingleIsoTau30_Trk5);
1234  t_hltDoubleLooseIsoTau15_Trk5->push_back(hltDoubleLooseIsoTau15_Trk5);
1235 
1236  t_irun->push_back(irun);
1237  t_ievt->push_back(ievt);
1238  t_ilum->push_back(ilum);
1239 
1240  nTRK++;
1241 
1242  } // Loop over track collection
1243 
1244  // edm::LogVerbatim("IsoTrack") << "nEVT= " << nEVT;
1245 
1246  ntp_->Fill();
1247  nEVT++;
1248 }
1249 
1251  // hbScale = 120.0;
1252  // heScale = 135.0;
1253  nEVT = 0;
1254  nEVT_failL1 = 0;
1255  nTRK = 0;
1256 
1257  genPartPBins_ = {{0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0,
1258  12.0, 15.0, 20.0, 25.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 100.0}};
1259 
1260  genPartEtaBins = {{0.0, 0.5, 1.1, 1.7, 2.0}};
1261 
1262  t_v_hnNearTRKs = std::make_unique<std::vector<std::vector<int> > >();
1263  t_v_hnLayers_maxNearP = std::make_unique<std::vector<std::vector<int> > >();
1264  t_v_htrkQual_maxNearP = std::make_unique<std::vector<std::vector<int> > >();
1265  t_v_hmaxNearP_goodTrk = std::make_unique<std::vector<std::vector<double> > >();
1266  t_v_hmaxNearP = std::make_unique<std::vector<std::vector<double> > >();
1267 
1268  t_v_cone_hnNearTRKs = std::make_unique<std::vector<std::vector<int> > >();
1269  t_v_cone_hnLayers_maxNearP = std::make_unique<std::vector<std::vector<int> > >();
1270  t_v_cone_htrkQual_maxNearP = std::make_unique<std::vector<std::vector<int> > >();
1271  t_v_cone_hmaxNearP_goodTrk = std::make_unique<std::vector<std::vector<double> > >();
1272  t_v_cone_hmaxNearP = std::make_unique<std::vector<std::vector<double> > >();
1273 
1274  // t_hScale = std::make_unique<std::vector<double> >();
1275  t_trkNOuterHits = std::make_unique<std::vector<double> >();
1276  t_trkNLayersCrossed = std::make_unique<std::vector<double> >();
1277  t_dtFromLeadJet = std::make_unique<std::vector<double> >();
1278  t_trkP = std::make_unique<std::vector<double> >();
1279  t_trkPt = std::make_unique<std::vector<double> >();
1280  t_trkEta = std::make_unique<std::vector<double> >();
1281  t_trkPhi = std::make_unique<std::vector<double> >();
1282 
1283  t_e3x3 = std::make_unique<std::vector<double> >();
1284  t_v_eDR = std::make_unique<std::vector<std::vector<double> > >();
1285  t_v_eMipDR = std::make_unique<std::vector<std::vector<double> > >();
1286 
1287  t_h3x3 = std::make_unique<std::vector<double> >();
1288  t_h5x5 = std::make_unique<std::vector<double> >();
1289 
1290  t_nRH_h3x3 = std::make_unique<std::vector<double> >();
1291  t_nRH_h5x5 = std::make_unique<std::vector<double> >();
1292 
1293  if (doMC_) {
1294  t_simP = std::make_unique<std::vector<double> >();
1295  t_hsim3x3 = std::make_unique<std::vector<double> >();
1296  t_hsim5x5 = std::make_unique<std::vector<double> >();
1297 
1298  t_hsim3x3Matched = std::make_unique<std::vector<double> >();
1299  t_hsim5x5Matched = std::make_unique<std::vector<double> >();
1300  t_hsim3x3Rest = std::make_unique<std::vector<double> >();
1301  t_hsim5x5Rest = std::make_unique<std::vector<double> >();
1302  t_hsim3x3Photon = std::make_unique<std::vector<double> >();
1303  t_hsim5x5Photon = std::make_unique<std::vector<double> >();
1304  t_hsim3x3NeutHad = std::make_unique<std::vector<double> >();
1305  t_hsim5x5NeutHad = std::make_unique<std::vector<double> >();
1306  t_hsim3x3CharHad = std::make_unique<std::vector<double> >();
1307  t_hsim5x5CharHad = std::make_unique<std::vector<double> >();
1308  t_hsim3x3PdgMatched = std::make_unique<std::vector<double> >();
1309  t_hsim5x5PdgMatched = std::make_unique<std::vector<double> >();
1310  t_hsim3x3Total = std::make_unique<std::vector<double> >();
1311  t_hsim5x5Total = std::make_unique<std::vector<double> >();
1312 
1313  t_hsim3x3NMatched = std::make_unique<std::vector<int> >();
1314  t_hsim3x3NTotal = std::make_unique<std::vector<int> >();
1315  t_hsim3x3NNeutHad = std::make_unique<std::vector<int> >();
1316  t_hsim3x3NCharHad = std::make_unique<std::vector<int> >();
1317  t_hsim3x3NPhoton = std::make_unique<std::vector<int> >();
1318  t_hsim3x3NRest = std::make_unique<std::vector<int> >();
1319 
1320  t_hsim5x5NMatched = std::make_unique<std::vector<int> >();
1321  t_hsim5x5NTotal = std::make_unique<std::vector<int> >();
1322  t_hsim5x5NNeutHad = std::make_unique<std::vector<int> >();
1323  t_hsim5x5NCharHad = std::make_unique<std::vector<int> >();
1324  t_hsim5x5NPhoton = std::make_unique<std::vector<int> >();
1325  t_hsim5x5NRest = std::make_unique<std::vector<int> >();
1326 
1327  t_trkHcalEne = std::make_unique<std::vector<double> >();
1328  t_trkEcalEne = std::make_unique<std::vector<double> >();
1329  }
1330 
1331  t_distFromHotCell_h3x3 = std::make_unique<std::vector<double> >();
1332  t_ietaFromHotCell_h3x3 = std::make_unique<std::vector<int> >();
1333  t_iphiFromHotCell_h3x3 = std::make_unique<std::vector<int> >();
1334  t_distFromHotCell_h5x5 = std::make_unique<std::vector<double> >();
1335  t_ietaFromHotCell_h5x5 = std::make_unique<std::vector<int> >();
1336  t_iphiFromHotCell_h5x5 = std::make_unique<std::vector<int> >();
1337 
1338  if (doMC_) {
1339  t_v_hsimInfoConeMatched = std::make_unique<std::vector<std::vector<double> > >();
1340  t_v_hsimInfoConeRest = std::make_unique<std::vector<std::vector<double> > >();
1341  t_v_hsimInfoConePhoton = std::make_unique<std::vector<std::vector<double> > >();
1342  t_v_hsimInfoConeNeutHad = std::make_unique<std::vector<std::vector<double> > >();
1343  t_v_hsimInfoConeCharHad = std::make_unique<std::vector<std::vector<double> > >();
1344  t_v_hsimInfoConePdgMatched = std::make_unique<std::vector<std::vector<double> > >();
1345  t_v_hsimInfoConeTotal = std::make_unique<std::vector<std::vector<double> > >();
1346 
1347  t_v_hsimInfoConeNMatched = std::make_unique<std::vector<std::vector<int> > >();
1348  t_v_hsimInfoConeNTotal = std::make_unique<std::vector<std::vector<int> > >();
1349  t_v_hsimInfoConeNNeutHad = std::make_unique<std::vector<std::vector<int> > >();
1350  t_v_hsimInfoConeNCharHad = std::make_unique<std::vector<std::vector<int> > >();
1351  t_v_hsimInfoConeNPhoton = std::make_unique<std::vector<std::vector<int> > >();
1352  t_v_hsimInfoConeNRest = std::make_unique<std::vector<std::vector<int> > >();
1353 
1354  t_v_hsimCone = std::make_unique<std::vector<std::vector<double> > >();
1355  }
1356 
1357  t_v_hCone = std::make_unique<std::vector<std::vector<double> > >();
1358  t_v_nRecHitsCone = std::make_unique<std::vector<std::vector<int> > >();
1359  t_v_nSimHitsCone = std::make_unique<std::vector<std::vector<int> > >();
1360 
1361  t_v_distFromHotCell = std::make_unique<std::vector<std::vector<double> > >();
1362  t_v_ietaFromHotCell = std::make_unique<std::vector<std::vector<int> > >();
1363  t_v_iphiFromHotCell = std::make_unique<std::vector<std::vector<int> > >();
1364 
1365  t_v_RH_h3x3_ieta = std::make_unique<std::vector<std::vector<int> > >();
1366  t_v_RH_h3x3_iphi = std::make_unique<std::vector<std::vector<int> > >();
1367  t_v_RH_h3x3_ene = std::make_unique<std::vector<std::vector<double> > >();
1368  t_v_RH_h5x5_ieta = std::make_unique<std::vector<std::vector<int> > >();
1369  t_v_RH_h5x5_iphi = std::make_unique<std::vector<std::vector<int> > >();
1370  t_v_RH_h5x5_ene = std::make_unique<std::vector<std::vector<double> > >();
1371  t_v_RH_r26_ieta = std::make_unique<std::vector<std::vector<int> > >();
1372  t_v_RH_r26_iphi = std::make_unique<std::vector<std::vector<int> > >();
1373  t_v_RH_r26_ene = std::make_unique<std::vector<std::vector<double> > >();
1374  t_v_RH_r44_ieta = std::make_unique<std::vector<std::vector<int> > >();
1375  t_v_RH_r44_iphi = std::make_unique<std::vector<std::vector<int> > >();
1376  t_v_RH_r44_ene = std::make_unique<std::vector<std::vector<double> > >();
1377 
1378  t_v_hlTriggers = std::make_unique<std::vector<std::vector<int> > >();
1379 
1380  t_hltHE = std::make_unique<std::vector<int> >();
1381  t_hltHB = std::make_unique<std::vector<int> >();
1382  t_hltL1Jet15 = std::make_unique<std::vector<int> >();
1383  t_hltJet30 = std::make_unique<std::vector<int> >();
1384  t_hltJet50 = std::make_unique<std::vector<int> >();
1385  t_hltJet80 = std::make_unique<std::vector<int> >();
1386  t_hltJet110 = std::make_unique<std::vector<int> >();
1387  t_hltJet140 = std::make_unique<std::vector<int> >();
1388  t_hltJet180 = std::make_unique<std::vector<int> >();
1389  t_hltL1SingleEG5 = std::make_unique<std::vector<int> >();
1390  t_hltZeroBias = std::make_unique<std::vector<int> >();
1391  t_hltMinBiasHcal = std::make_unique<std::vector<int> >();
1392  t_hltMinBiasEcal = std::make_unique<std::vector<int> >();
1393  t_hltMinBiasPixel = std::make_unique<std::vector<int> >();
1394  t_hltSingleIsoTau30_Trk5 = std::make_unique<std::vector<int> >();
1395  t_hltDoubleLooseIsoTau15_Trk5 = std::make_unique<std::vector<int> >();
1396 
1397  t_irun = std::make_unique<std::vector<unsigned int> >();
1398  t_ievt = std::make_unique<std::vector<unsigned int> >();
1399  t_ilum = std::make_unique<std::vector<unsigned int> >();
1400 
1401  buildTree();
1402 }
1403 
1405  t_v_hnNearTRKs->clear();
1406  t_v_hnLayers_maxNearP->clear();
1407  t_v_htrkQual_maxNearP->clear();
1408  t_v_hmaxNearP_goodTrk->clear();
1409  t_v_hmaxNearP->clear();
1410 
1411  t_v_cone_hnNearTRKs->clear();
1412  t_v_cone_hnLayers_maxNearP->clear();
1413  t_v_cone_htrkQual_maxNearP->clear();
1414  t_v_cone_hmaxNearP_goodTrk->clear();
1415  t_v_cone_hmaxNearP->clear();
1416 
1417  // t_hScale ->clear();
1418  t_trkNOuterHits->clear();
1419  t_trkNLayersCrossed->clear();
1420  t_dtFromLeadJet->clear();
1421  t_trkP->clear();
1422  t_trkPt->clear();
1423  t_trkEta->clear();
1424  t_trkPhi->clear();
1425  t_e3x3->clear();
1426  t_v_eDR->clear();
1427  t_v_eMipDR->clear();
1428  t_h3x3->clear();
1429  t_h5x5->clear();
1430  t_nRH_h3x3->clear();
1431  t_nRH_h5x5->clear();
1432 
1433  if (doMC_) {
1434  t_simP->clear();
1435  t_hsim3x3->clear();
1436  t_hsim5x5->clear();
1437  t_hsim3x3Matched->clear();
1438  t_hsim5x5Matched->clear();
1439  t_hsim3x3Rest->clear();
1440  t_hsim5x5Rest->clear();
1441  t_hsim3x3Photon->clear();
1442  t_hsim5x5Photon->clear();
1443  t_hsim3x3NeutHad->clear();
1444  t_hsim5x5NeutHad->clear();
1445  t_hsim3x3CharHad->clear();
1446  t_hsim5x5CharHad->clear();
1447  t_hsim3x3PdgMatched->clear();
1448  t_hsim5x5PdgMatched->clear();
1449  t_hsim3x3Total->clear();
1450  t_hsim5x5Total->clear();
1451 
1452  t_hsim3x3NMatched->clear();
1453  t_hsim3x3NTotal->clear();
1454  t_hsim3x3NNeutHad->clear();
1455  t_hsim3x3NCharHad->clear();
1456  t_hsim3x3NPhoton->clear();
1457  t_hsim3x3NRest->clear();
1458 
1459  t_hsim5x5NMatched->clear();
1460  t_hsim5x5NTotal->clear();
1461  t_hsim5x5NNeutHad->clear();
1462  t_hsim5x5NCharHad->clear();
1463  t_hsim5x5NPhoton->clear();
1464  t_hsim5x5NRest->clear();
1465 
1466  t_trkHcalEne->clear();
1467  t_trkEcalEne->clear();
1468  }
1469 
1470  t_distFromHotCell_h3x3->clear();
1471  t_ietaFromHotCell_h3x3->clear();
1472  t_iphiFromHotCell_h3x3->clear();
1473  t_distFromHotCell_h5x5->clear();
1474  t_ietaFromHotCell_h5x5->clear();
1475  t_iphiFromHotCell_h5x5->clear();
1476 
1477  if (doMC_) {
1478  t_v_hsimInfoConeMatched->clear();
1479  t_v_hsimInfoConeRest->clear();
1480  t_v_hsimInfoConePhoton->clear();
1481  t_v_hsimInfoConeNeutHad->clear();
1482  t_v_hsimInfoConeCharHad->clear();
1483  t_v_hsimInfoConePdgMatched->clear();
1484  t_v_hsimInfoConeTotal->clear();
1485 
1486  t_v_hsimInfoConeNMatched->clear();
1487  t_v_hsimInfoConeNRest->clear();
1488  t_v_hsimInfoConeNPhoton->clear();
1489  t_v_hsimInfoConeNNeutHad->clear();
1490  t_v_hsimInfoConeNCharHad->clear();
1491  t_v_hsimInfoConeNTotal->clear();
1492 
1493  t_v_hsimCone->clear();
1494  }
1495 
1496  t_v_hCone->clear();
1497  t_v_nRecHitsCone->clear();
1498  t_v_nSimHitsCone->clear();
1499 
1500  t_v_distFromHotCell->clear();
1501  t_v_ietaFromHotCell->clear();
1502  t_v_iphiFromHotCell->clear();
1503 
1504  t_v_RH_h3x3_ieta->clear();
1505  t_v_RH_h3x3_iphi->clear();
1506  t_v_RH_h3x3_ene->clear();
1507  t_v_RH_h5x5_ieta->clear();
1508  t_v_RH_h5x5_iphi->clear();
1509  t_v_RH_h5x5_ene->clear();
1510  t_v_RH_r26_ieta->clear();
1511  t_v_RH_r26_iphi->clear();
1512  t_v_RH_r26_ene->clear();
1513  t_v_RH_r44_ieta->clear();
1514  t_v_RH_r44_iphi->clear();
1515  t_v_RH_r44_ene->clear();
1516 
1517  t_v_hlTriggers->clear();
1518  t_hltHB->clear();
1519  t_hltHE->clear();
1520  t_hltL1Jet15->clear();
1521  t_hltJet30->clear();
1522  t_hltJet50->clear();
1523  t_hltJet80->clear();
1524  t_hltJet110->clear();
1525  t_hltJet140->clear();
1526  t_hltJet180->clear();
1527  t_hltL1SingleEG5->clear();
1528  t_hltZeroBias->clear();
1529  t_hltMinBiasHcal->clear();
1530  t_hltMinBiasEcal->clear();
1531  t_hltMinBiasPixel->clear();
1532  t_hltSingleIsoTau30_Trk5->clear();
1534 
1535  t_irun->clear();
1536  t_ievt->clear();
1537  t_ilum->clear();
1538 }
1539 
1540 // ----- method called once each job just after ending the event loop ----
1542  edm::LogVerbatim("IsoTrack") << "Number of Events Processed " << nEVT << " failed L1 " << nEVT_failL1;
1543 }
1544 
1547  h_RawPt = fs->make<TH1F>("hRawPt", "hRawPt", 100, 0.0, 100.0);
1548  h_RawP = fs->make<TH1F>("hRawP", "hRawP", 100, 0.0, 100.0);
1549  h_RawEta = fs->make<TH1F>("hRawEta", "hRawEta", 15, 0.0, 3.0);
1550  h_RawPhi = fs->make<TH1F>("hRawPhi", "hRawPhi", 100, -3.2, 3.2);
1551 
1552  ntp_ = fs->make<TTree>("ntp", "ntp");
1553 
1554  // Counters
1555  ntp_->Branch("nEVT", &nEVT, "nEVT/I");
1556  ntp_->Branch("leadL1JetPT", &leadL1JetPT, "leadL1JetPT/D");
1557  ntp_->Branch("leadL1JetEta", &leadL1JetEta, "leadL1JetEta/D");
1558  ntp_->Branch("leadL1JetPhi", &leadL1JetPhi, "leadL1JetPhi/D");
1559  ntp_->Branch("nTRK", &nTRK, "nTRK/I");
1560  ntp_->Branch("nRawTRK", &nRawTRK, "nRawTRK/I");
1561  ntp_->Branch("nFailHighPurityQaul", &nFailHighPurityQaul, "nFailHighPurityQaul/I");
1562  ntp_->Branch("nFailPt", &nFailPt, "nFailPt/I");
1563  ntp_->Branch("nFailEta", &nFailEta, "nFailEta/I");
1564  ntp_->Branch("nMissEcal", &nMissEcal, "nMissEcal/I");
1565  ntp_->Branch("nMissHcal", &nMissHcal, "nMissHcal/I");
1566 
1567  ntp_->Branch("hnNearTRKs", "std::vector<std::vector<int> > ", &t_v_hnNearTRKs);
1568  ntp_->Branch("hnLayers_maxNearP", "std::vector<std::vector<int> > ", &t_v_hnLayers_maxNearP);
1569  ntp_->Branch("htrkQual_maxNearP", "std::vector<std::vector<int> > ", &t_v_htrkQual_maxNearP);
1570  ntp_->Branch("hmaxNearP_goodTrk", "std::vector<std::vector<double> >", &t_v_hmaxNearP_goodTrk);
1571  ntp_->Branch("hmaxNearP", "std::vector<std::vector<double> >", &t_v_hmaxNearP);
1572 
1573  ntp_->Branch("cone_hnNearTRKs", "std::vector<std::vector<int> > ", &t_v_cone_hnNearTRKs);
1574  ntp_->Branch("cone_hnLayers_maxNearP", "std::vector<std::vector<int> > ", &t_v_cone_hnLayers_maxNearP);
1575  ntp_->Branch("cone_htrkQual_maxNearP", "std::vector<std::vector<int> > ", &t_v_cone_htrkQual_maxNearP);
1576  ntp_->Branch("cone_hmaxNearP_goodTrk", "std::vector<std::vector<double> >", &t_v_cone_hmaxNearP_goodTrk);
1577  ntp_->Branch("cone_hmaxNearP", "std::vector<std::vector<double> >", &t_v_cone_hmaxNearP);
1578 
1579  //ntp_->Branch("hScale" , "std::vector<double>", &t_hScale );
1580  ntp_->Branch("trkNOuterHits", "std::vector<double>", &t_trkNOuterHits);
1581  ntp_->Branch("trkNLayersCrossed", "std::vector<double>", &t_trkNLayersCrossed);
1582  ntp_->Branch("drFromLeadJet", "std::vector<double>", &t_dtFromLeadJet);
1583  ntp_->Branch("trkP", "std::vector<double>", &t_trkP);
1584  ntp_->Branch("trkPt", "std::vector<double>", &t_trkPt);
1585  ntp_->Branch("trkEta", "std::vector<double>", &t_trkEta);
1586  ntp_->Branch("trkPhi", "std::vector<double>", &t_trkPhi);
1587  ntp_->Branch("e3x3", "std::vector<double>", &t_e3x3);
1588 
1589  ntp_->Branch("e3x3", "std::vector<double>", &t_e3x3);
1590  ntp_->Branch("v_eDR", "std::vector<std::vector<double> >", &t_v_eDR);
1591  ntp_->Branch("v_eMipDR", "std::vector<std::vector<double> >", &t_v_eMipDR);
1592 
1593  ntp_->Branch("h3x3", "std::vector<double>", &t_h3x3);
1594  ntp_->Branch("h5x5", "std::vector<double>", &t_h5x5);
1595  ntp_->Branch("nRH_h3x3", "std::vector<double>", &t_nRH_h3x3);
1596  ntp_->Branch("nRH_h5x5", "std::vector<double>", &t_nRH_h5x5);
1597 
1598  if (doMC_) {
1599  ntp_->Branch("simP", "std::vector<double>", &t_simP);
1600  ntp_->Branch("hsim3x3", "std::vector<double>", &t_hsim3x3);
1601  ntp_->Branch("hsim5x5", "std::vector<double>", &t_hsim5x5);
1602 
1603  ntp_->Branch("hsim3x3Matched", "std::vector<double>", &t_hsim3x3Matched);
1604  ntp_->Branch("hsim5x5Matched", "std::vector<double>", &t_hsim5x5Matched);
1605  ntp_->Branch("hsim3x3Rest", "std::vector<double>", &t_hsim3x3Rest);
1606  ntp_->Branch("hsim5x5Rest", "std::vector<double>", &t_hsim5x5Rest);
1607  ntp_->Branch("hsim3x3Photon", "std::vector<double>", &t_hsim3x3Photon);
1608  ntp_->Branch("hsim5x5Photon", "std::vector<double>", &t_hsim5x5Photon);
1609  ntp_->Branch("hsim3x3NeutHad", "std::vector<double>", &t_hsim3x3NeutHad);
1610  ntp_->Branch("hsim5x5NeutHad", "std::vector<double>", &t_hsim5x5NeutHad);
1611  ntp_->Branch("hsim3x3CharHad", "std::vector<double>", &t_hsim3x3CharHad);
1612  ntp_->Branch("hsim5x5CharHad", "std::vector<double>", &t_hsim5x5CharHad);
1613  ntp_->Branch("hsim3x3PdgMatched", "std::vector<double>", &t_hsim3x3PdgMatched);
1614  ntp_->Branch("hsim5x5PdgMatched", "std::vector<double>", &t_hsim5x5PdgMatched);
1615  ntp_->Branch("hsim3x3Total", "std::vector<double>", &t_hsim3x3Total);
1616  ntp_->Branch("hsim5x5Total", "std::vector<double>", &t_hsim5x5Total);
1617 
1618  ntp_->Branch("hsim3x3NMatched", "std::vector<int>", &t_hsim3x3NMatched);
1619  ntp_->Branch("hsim3x3NRest", "std::vector<int>", &t_hsim3x3NRest);
1620  ntp_->Branch("hsim3x3NPhoton", "std::vector<int>", &t_hsim3x3NPhoton);
1621  ntp_->Branch("hsim3x3NNeutHad", "std::vector<int>", &t_hsim3x3NNeutHad);
1622  ntp_->Branch("hsim3x3NCharHad", "std::vector<int>", &t_hsim3x3NCharHad);
1623  ntp_->Branch("hsim3x3NTotal", "std::vector<int>", &t_hsim3x3NTotal);
1624 
1625  ntp_->Branch("hsim5x5NMatched", "std::vector<int>", &t_hsim5x5NMatched);
1626  ntp_->Branch("hsim5x5NRest", "std::vector<int>", &t_hsim5x5NRest);
1627  ntp_->Branch("hsim5x5NPhoton", "std::vector<int>", &t_hsim5x5NPhoton);
1628  ntp_->Branch("hsim5x5NNeutHad", "std::vector<int>", &t_hsim5x5NNeutHad);
1629  ntp_->Branch("hsim5x5NCharHad", "std::vector<int>", &t_hsim5x5NCharHad);
1630  ntp_->Branch("hsim5x5NTotal", "std::vector<int>", &t_hsim5x5NTotal);
1631 
1632  ntp_->Branch("trkHcalEne", "std::vector<double>", &t_trkHcalEne);
1633  ntp_->Branch("trkEcalEne", "std::vector<double>", &t_trkEcalEne);
1634  }
1635 
1636  ntp_->Branch("distFromHotCell_h3x3", "std::vector<double>", &t_distFromHotCell_h3x3);
1637  ntp_->Branch("ietaFromHotCell_h3x3", "std::vector<int>", &t_ietaFromHotCell_h3x3);
1638  ntp_->Branch("iphiFromHotCell_h3x3", "std::vector<int>", &t_iphiFromHotCell_h3x3);
1639  ntp_->Branch("distFromHotCell_h5x5", "std::vector<double>", &t_distFromHotCell_h5x5);
1640  ntp_->Branch("ietaFromHotCell_h5x5", "std::vector<int>", &t_ietaFromHotCell_h5x5);
1641  ntp_->Branch("iphiFromHotCell_h5x5", "std::vector<int>", &t_iphiFromHotCell_h5x5);
1642 
1643  if (doMC_) {
1644  ntp_->Branch("v_hsimInfoConeMatched", "std::vector<std::vector<double> >", &t_v_hsimInfoConeMatched);
1645  ntp_->Branch("v_hsimInfoConeRest", "std::vector<std::vector<double> >", &t_v_hsimInfoConeRest);
1646  ntp_->Branch("v_hsimInfoConePhoton", "std::vector<std::vector<double> >", &t_v_hsimInfoConePhoton);
1647  ntp_->Branch("v_hsimInfoConeNeutHad", "std::vector<std::vector<double> >", &t_v_hsimInfoConeNeutHad);
1648  ntp_->Branch("v_hsimInfoConeCharHad", "std::vector<std::vector<double> >", &t_v_hsimInfoConeCharHad);
1649  ntp_->Branch("v_hsimInfoConePdgMatched", "std::vector<std::vector<double> >", &t_v_hsimInfoConePdgMatched);
1650  ntp_->Branch("v_hsimInfoConeTotal", "std::vector<std::vector<double> >", &t_v_hsimInfoConeTotal);
1651 
1652  ntp_->Branch("v_hsimInfoConeNMatched", "std::vector<std::vector<int> >", &t_v_hsimInfoConeNMatched);
1653  ntp_->Branch("v_hsimInfoConeNRest", "std::vector<std::vector<int> >", &t_v_hsimInfoConeNRest);
1654  ntp_->Branch("v_hsimInfoConeNPhoton", "std::vector<std::vector<int> >", &t_v_hsimInfoConeNPhoton);
1655  ntp_->Branch("v_hsimInfoConeNNeutHad", "std::vector<std::vector<int> >", &t_v_hsimInfoConeNNeutHad);
1656  ntp_->Branch("v_hsimInfoConeNCharHad", "std::vector<std::vector<int> >", &t_v_hsimInfoConeNCharHad);
1657  ntp_->Branch("v_hsimInfoConeNTotal", "std::vector<std::vector<int> >", &t_v_hsimInfoConeNTotal);
1658 
1659  ntp_->Branch("v_hsimCone", "std::vector<std::vector<double> >", &t_v_hsimCone);
1660  }
1661 
1662  ntp_->Branch("v_hCone", "std::vector<std::vector<double> >", &t_v_hCone);
1663  ntp_->Branch("v_nRecHitsCone", "std::vector<std::vector<int> >", &t_v_nRecHitsCone);
1664  ntp_->Branch("v_nSimHitsCone", "std::vector<std::vector<int> >", &t_v_nSimHitsCone);
1665 
1666  ntp_->Branch("v_distFromHotCell", "std::vector<std::vector<double> >", &t_v_distFromHotCell);
1667  ntp_->Branch("v_ietaFromHotCell", "std::vector<std::vector<int> >", &t_v_ietaFromHotCell);
1668  ntp_->Branch("v_iphiFromHotCell", "std::vector<std::vector<int> >", &t_v_iphiFromHotCell);
1669 
1670  ntp_->Branch("v_RH_h3x3_ieta", "std::vector<std::vector<int> >", &t_v_RH_h3x3_ieta);
1671  ntp_->Branch("v_RH_h3x3_iphi", "std::vector<std::vector<int> >", &t_v_RH_h3x3_iphi);
1672  ntp_->Branch("v_RH_h3x3_ene", "std::vector<std::vector<double> >", &t_v_RH_h3x3_ene);
1673  ntp_->Branch("v_RH_h5x5_ieta", "std::vector<std::vector<int> >", &t_v_RH_h5x5_ieta);
1674  ntp_->Branch("v_RH_h5x5_iphi", "std::vector<std::vector<int> >", &t_v_RH_h5x5_iphi);
1675  ntp_->Branch("v_RH_h5x5_ene", "std::vector<std::vector<double> >", &t_v_RH_h5x5_ene);
1676  ntp_->Branch("v_RH_r26_ieta", "std::vector<std::vector<int> >", &t_v_RH_r26_ieta);
1677  ntp_->Branch("v_RH_r26_iphi", "std::vector<std::vector<int> >", &t_v_RH_r26_iphi);
1678  ntp_->Branch("v_RH_r26_ene", "std::vector<std::vector<double> >", &t_v_RH_r26_ene);
1679  ntp_->Branch("v_RH_r44_ieta", "std::vector<std::vector<int> >", &t_v_RH_r44_ieta);
1680  ntp_->Branch("v_RH_r44_iphi", "std::vector<std::vector<int> >", &t_v_RH_r44_iphi);
1681  ntp_->Branch("v_RH_r44_ene", "std::vector<std::vector<double> >", &t_v_RH_r44_ene);
1682 
1683  ntp_->Branch("v_hlTriggers", "std::vector<std::vector<int> >", &t_v_hlTriggers);
1684  ntp_->Branch("v_hltHB", "std::vector<int>", &t_hltHB);
1685  ntp_->Branch("v_hltHE", "std::vector<int>", &t_hltHE);
1686  ntp_->Branch("v_hltL1Jet15", "std::vector<int>", &t_hltL1Jet15);
1687  ntp_->Branch("v_hltJet30", "std::vector<int>", &t_hltJet30);
1688  ntp_->Branch("v_hltJet50", "std::vector<int>", &t_hltJet50);
1689  ntp_->Branch("v_hltJet80", "std::vector<int>", &t_hltJet80);
1690  ntp_->Branch("v_hltJet110", "std::vector<int>", &t_hltJet110);
1691  ntp_->Branch("v_hltJet140", "std::vector<int>", &t_hltJet140);
1692  ntp_->Branch("v_hltJet180", "std::vector<int>", &t_hltJet180);
1693  ntp_->Branch("v_hltL1SingleEG5", "std::vector<int>", &t_hltL1SingleEG5);
1694  ntp_->Branch("v_hltZeroBias", "std::vector<int>", &t_hltZeroBias);
1695  ntp_->Branch("v_hltMinBiasHcal", "std::vector<int>", &t_hltMinBiasHcal);
1696  ntp_->Branch("v_hltMinBiasEcal", "std::vector<int>", &t_hltMinBiasEcal);
1697  ntp_->Branch("v_hltMinBiasPixel", "std::vector<int>", &t_hltMinBiasPixel);
1698  ntp_->Branch("v_hltSingleIsoTau30_Trk5", "std::vector<int>", &t_hltSingleIsoTau30_Trk5);
1699  ntp_->Branch("v_hltDoubleLooseIsoTau15_Trk5", "std::vector<int>", &t_hltDoubleLooseIsoTau15_Trk5);
1700 
1701  ntp_->Branch("irun", "std::vector<unsigned int>", &t_irun);
1702  ntp_->Branch("ievt", "std::vector<unsigned int>", &t_ievt);
1703  ntp_->Branch("ilum", "std::vector<unsigned int>", &t_ilum);
1704 }
1705 
1707  std::string theTrackQuality = "highPurity";
1708  reco::TrackBase::TrackQuality trackQuality_ = reco::TrackBase::qualityByName(theTrackQuality);
1709 
1710  edm::LogVerbatim("IsoTrack") << " Reference Point " << pTrack->referencePoint() << "\n"
1711  << " TrackMmentum " << pTrack->momentum() << " (pt,eta,phi)(" << pTrack->pt() << ","
1712  << pTrack->eta() << "," << pTrack->phi() << ")"
1713  << " p " << pTrack->p() << "\n"
1714  << " Normalized chi2 " << pTrack->normalizedChi2() << " charge " << pTrack->charge()
1715  << " qoverp() " << pTrack->qoverp() << "+-" << pTrack->qoverpError() << " d0 "
1716  << pTrack->d0() << "\n"
1717  << " NValidHits " << pTrack->numberOfValidHits() << " NLostHits "
1718  << pTrack->numberOfLostHits() << " TrackQuality " << pTrack->qualityName(trackQuality_)
1719  << " " << pTrack->quality(trackQuality_);
1720 
1721  if (printTrkHitPattern_) {
1722  const reco::HitPattern& p = pTrack->hitPattern();
1723  for (int i = 0; i < p.numberOfAllHits(reco::HitPattern::TRACK_HITS); i++) {
1724  p.printHitPattern(reco::HitPattern::TRACK_HITS, i, std::cout);
1725  }
1726  }
1727 }
1728 
1729 //define this as a plug-in
Vector3DBase
Definition: Vector3DBase.h:8
IsolatedTracksCone::t_v_RH_r26_ieta
std::unique_ptr< std::vector< std::vector< int > > > t_v_RH_r26_ieta
Definition: IsolatedTracksCone.cc:319
IsolatedTracksCone::doMC_
const bool doMC_
Definition: IsolatedTracksCone.cc:139
EcalSeverityLevelAlgo
Definition: EcalSeverityLevelAlgo.h:33
IsolatedTracksCone::h_RawP
TH1F * h_RawP
Definition: IsolatedTracksCone.cc:182
IsolatedTracksCone::t_hsim3x3NeutHad
std::unique_ptr< std::vector< double > > t_hsim3x3NeutHad
Definition: IsolatedTracksCone.cc:238
IsolatedTracksCone::t_v_cone_hmaxNearP_goodTrk
std::unique_ptr< std::vector< std::vector< double > > > t_v_cone_hmaxNearP_goodTrk
Definition: IsolatedTracksCone.cc:208
IsolatedTracksCone::endJob
void endJob() override
Definition: IsolatedTracksCone.cc:1541
IsolatedTracksCone::t_hsim5x5NTotal
std::unique_ptr< std::vector< int > > t_hsim5x5NTotal
Definition: IsolatedTracksCone.cc:259
BeamSpotPI::parameters
parameters
Definition: BeamSpotPayloadInspectorHelper.h:29
Handle.h
L1JetParticleCollection
IsolatedTracksCone::t_nRH_h5x5
std::unique_ptr< std::vector< double > > t_nRH_h5x5
Definition: IsolatedTracksCone.cc:230
IsolatedTracksCone::t_hsim5x5Matched
std::unique_ptr< std::vector< double > > t_hsim5x5Matched
Definition: IsolatedTracksCone.cc:233
electrons_cff.bool
bool
Definition: electrons_cff.py:393
EDAnalyzer.h
mps_fire.i
i
Definition: mps_fire.py:428
IsolatedTracksCone::nFailEta
int nFailEta
Definition: IsolatedTracksCone.cc:189
reco::TrackBase::qoverpError
double qoverpError() const
error on signed transverse curvature
Definition: TrackBase.h:732
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
FreeTrajectoryState.h
CaloNavigator.h
IsolatedTracksCone::t_v_RH_h3x3_ene
std::unique_ptr< std::vector< std::vector< double > > > t_v_RH_h3x3_ene
Definition: IsolatedTracksCone.cc:315
IsolatedTracksCone::drLeadJetVeto_
const double drLeadJetVeto_
Definition: IsolatedTracksCone.cc:142
funct::false
false
Definition: Factorize.h:29
IsolatedTracksCone::tok_trigger_
const edm::EDGetTokenT< edm::TriggerResults > tok_trigger_
Definition: IsolatedTracksCone.cc:163
IsolatedTracksCone::h_RawPt
TH1F * h_RawPt
Definition: IsolatedTracksCone.cc:181
IsolatedTracksCone::t_v_hsimInfoConeNRest
std::unique_ptr< std::vector< std::vector< int > > > t_v_hsimInfoConeNRest
Definition: IsolatedTracksCone.cc:280
IsolatedTracksCone::t_e3x3
std::unique_ptr< std::vector< double > > t_e3x3
Definition: IsolatedTracksCone.cc:219
TriggerResults.h
reco::TrackBase::referencePoint
const Point & referencePoint() const
Reference point on the track.
Definition: TrackBase.h:667
IsolatedTracksCone::t_hltL1SingleEG5
std::unique_ptr< std::vector< int > > t_hltL1SingleEG5
Definition: IsolatedTracksCone.cc:305
IsolatedTracksCone::t_v_RH_h5x5_ene
std::unique_ptr< std::vector< std::vector< double > > > t_v_RH_h5x5_ene
Definition: IsolatedTracksCone.cc:318
IsolatedTracksCone::t_v_hsimInfoConeNPhoton
std::unique_ptr< std::vector< std::vector< int > > > t_v_hsimInfoConeNPhoton
Definition: IsolatedTracksCone.cc:281
IsolatedTracksCone::clearTrackVectors
void clearTrackVectors()
Definition: IsolatedTracksCone.cc:1404
IsolatedTracksCone::genPartPBins_
std::array< double, nPBins_+1 > genPartPBins_
Definition: IsolatedTracksCone.cc:136
IsolatedTracksCone::tok_caloEE_
const edm::EDGetTokenT< edm::PCaloHitContainer > tok_caloEE_
Definition: IsolatedTracksCone.cc:161
reco::TrackBase::p
double p() const
momentum vector magnitude
Definition: TrackBase.h:631
TrackDetectorAssociator.h
EcalSeverityLevelAlgoRcd.h
IsolatedTracksCone::ntp_
TTree * ntp_
Definition: IsolatedTracksCone.cc:179
IsolatedTracksCone::nEVT_failL1
int nEVT_failL1
Definition: IsolatedTracksCone.cc:193
IsolatedTracksCone::tok_geom_
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > tok_geom_
Definition: IsolatedTracksCone.cc:165
reco::deltaPhi
constexpr double deltaPhi(double phi1, double phi2)
Definition: deltaPhi.h:26
deltaPhi.h
TriggerEvent.h
IsolatedTracksCone::t_dtFromLeadJet
std::unique_ptr< std::vector< double > > t_dtFromLeadJet
Definition: IsolatedTracksCone.cc:213
edm::EDGetTokenT< l1extra::L1JetParticleCollection >
LuminosityBlock.h
edm
HLT enums.
Definition: AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
gather_cfg.cout
cout
Definition: gather_cfg.py:144
HcalTopology
Definition: HcalTopology.h:26
EBDetId.h
EEDetId.h
DetId::Hcal
Definition: DetId.h:28
IsolatedTracksCone::t_v_RH_h5x5_iphi
std::unique_ptr< std::vector< std::vector< int > > > t_v_RH_h5x5_iphi
Definition: IsolatedTracksCone.cc:317
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89287
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
spr::eHCALSimInfo
std::map< std::string, double > eHCALSimInfo(const edm::Event &, const HcalTopology *topology, const DetId &det, const CaloGeometry *geo, edm::Handle< T > &hits, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, const reco::Track *pTrack, TrackerHitAssociator &associate, int ieta, int iphi, double timeCut=150, bool includeHO=false, bool debug=false)
triggerResults
static const std::string triggerResults
Definition: EdmProvDump.cc:45
TrackDetMatchInfo::trkGlobPosAtHcal
math::XYZPoint trkGlobPosAtHcal
Definition: TrackDetMatchInfo.h:39
CaloGeometry::getSubdetectorGeometry
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:34
IsolatedTracksCone::useJetTrigger_
const bool useJetTrigger_
Definition: IsolatedTracksCone.cc:141
IsolatedTracksCone::trackAssociator_
std::unique_ptr< TrackDetectorAssociator > trackAssociator_
Definition: IsolatedTracksCone.cc:177
IsolatedTracksCone::t_v_hsimInfoConeMatched
std::unique_ptr< std::vector< std::vector< double > > > t_v_hsimInfoConeMatched
Definition: IsolatedTracksCone.cc:271
IsolatedTracksCone::t_v_RH_r26_iphi
std::unique_ptr< std::vector< std::vector< int > > > t_v_RH_r26_iphi
Definition: IsolatedTracksCone.cc:320
reco::TrackBase::TrackQuality
TrackQuality
track quality
Definition: TrackBase.h:150
TriggerTypeDefs.h
edm::SortedCollection< EcalRecHit >
IsolatedTracksCone::t_trkEcalEne
std::unique_ptr< std::vector< double > > t_trkEcalEne
Definition: IsolatedTracksCone.cc:269
edm::EDConsumerBase::consumesCollector
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
Definition: EDConsumerBase.cc:46
IsolatedTracksCone::t_v_RH_r26_ene
std::unique_ptr< std::vector< std::vector< double > > > t_v_RH_r26_ene
Definition: IsolatedTracksCone.cc:321
reco::TrackBase::qualityName
static std::string qualityName(TrackQuality)
Definition: TrackBase.h:572
IsolatedTracksCone::t_trkP
std::unique_ptr< std::vector< double > > t_trkP
Definition: IsolatedTracksCone.cc:214
IsolatedTracksCone::t_v_hsimInfoConeNNeutHad
std::unique_ptr< std::vector< std::vector< int > > > t_v_hsimInfoConeNNeutHad
Definition: IsolatedTracksCone.cc:282
TrackerHitAssociator.h
IsolatedTracksCone::t_v_hsimInfoConeRest
std::unique_ptr< std::vector< std::vector< double > > > t_v_hsimInfoConeRest
Definition: IsolatedTracksCone.cc:272
IsolatedTracksCone::t_v_hmaxNearP
std::unique_ptr< std::vector< std::vector< double > > > t_v_hmaxNearP
Definition: IsolatedTracksCone.cc:203
IsolatedTracksCone::t_ietaFromHotCell_h5x5
std::unique_ptr< std::vector< int > > t_ietaFromHotCell_h5x5
Definition: IsolatedTracksCone.cc:265
FindCaloHitCone.h
IsolatedTracksCone::t_trkNLayersCrossed
std::unique_ptr< std::vector< double > > t_trkNLayersCrossed
Definition: IsolatedTracksCone.cc:212
IsolatedTracksCone::t_v_cone_hnLayers_maxNearP
std::unique_ptr< std::vector< std::vector< int > > > t_v_cone_hnLayers_maxNearP
Definition: IsolatedTracksCone.cc:206
IsolatedTracksCone::t_hsim5x5
std::unique_ptr< std::vector< double > > t_hsim5x5
Definition: IsolatedTracksCone.cc:227
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
IsolatedTracksCone::t_v_eDR
std::unique_ptr< std::vector< std::vector< double > > > t_v_eDR
Definition: IsolatedTracksCone.cc:221
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
HcalBarrel
Definition: HcalAssistant.h:33
TrackerHitAssociator::Config
Definition: TrackerHitAssociator.h:57
IsolatedTracksCone::t_v_hsimCone
std::unique_ptr< std::vector< std::vector< double > > > t_v_hsimCone
Definition: IsolatedTracksCone.cc:286
EcalCondObjectContainer
Definition: EcalCondObjectContainer.h:13
IsolatedTracksCone::t_iphiFromHotCell_h3x3
std::unique_ptr< std::vector< int > > t_iphiFromHotCell_h3x3
Definition: IsolatedTracksCone.cc:263
edm::Handle
Definition: AssociativeIterator.h:50
IsolatedTracksCone::tok_caloTopology_
const edm::ESGetToken< CaloTopology, CaloTopologyRecord > tok_caloTopology_
Definition: IsolatedTracksCone.cc:166
reco::TrackBase::numberOfValidHits
unsigned short numberOfValidHits() const
number of valid hits found
Definition: TrackBase.h:798
spr::getDistInPlaneTrackDir
double getDistInPlaneTrackDir(const GlobalPoint &caloPoint, const GlobalVector &caloVector, const GlobalPoint &rechitPoint, bool debug=false)
Definition: FindDistCone.cc:12
IsolatedTracksCone::t_hsim3x3NPhoton
std::unique_ptr< std::vector< int > > t_hsim3x3NPhoton
Definition: IsolatedTracksCone.cc:249
IsolatedTracksCone::t_hsim5x5NNeutHad
std::unique_ptr< std::vector< int > > t_hsim5x5NNeutHad
Definition: IsolatedTracksCone.cc:257
CaloTopology
Definition: CaloTopology.h:19
EcalBarrel
Definition: EcalSubdetector.h:10
EcalRecHitCollections.h
IsolatedTracksCone::t_v_RH_h3x3_iphi
std::unique_ptr< std::vector< std::vector< int > > > t_v_RH_h3x3_iphi
Definition: IsolatedTracksCone.cc:314
IsolatedTracksCone::tok_L1extFwdJet_
const edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extFwdJet_
Definition: IsolatedTracksCone.cc:150
IsolatedTracksCone::t_v_cone_htrkQual_maxNearP
std::unique_ptr< std::vector< std::vector< int > > > t_v_cone_htrkQual_maxNearP
Definition: IsolatedTracksCone.cc:207
IsolatedTracksCone::t_v_hsimInfoConePhoton
std::unique_ptr< std::vector< std::vector< double > > > t_v_hsimInfoConePhoton
Definition: IsolatedTracksCone.cc:273
IsolatedTracksCone::tok_caloHH_
const edm::EDGetTokenT< edm::PCaloHitContainer > tok_caloHH_
Definition: IsolatedTracksCone.cc:162
reco::TrackBase::pt
double pt() const
track transverse momentum
Definition: TrackBase.h:637
IsolatedTracksCone::tok_topo_
const edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > tok_topo_
Definition: IsolatedTracksCone.cc:167
DetId
Definition: DetId.h:17
IsolatedTracksCone::t_hltL1Jet15
std::unique_ptr< std::vector< int > > t_hltL1Jet15
Definition: IsolatedTracksCone.cc:298
IsolatedTracksCone::tok_L1extCenJet_
const edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extCenJet_
Definition: IsolatedTracksCone.cc:149
IsolatedTracksCone::t_hltDoubleLooseIsoTau15_Trk5
std::unique_ptr< std::vector< int > > t_hltDoubleLooseIsoTau15_Trk5
Definition: IsolatedTracksCone.cc:311
IsolatedTracksCone::t_v_RH_h5x5_ieta
std::unique_ptr< std::vector< std::vector< int > > > t_v_RH_h5x5_ieta
Definition: IsolatedTracksCone.cc:316
MakerMacros.h
IsolatedTracksCone::t_nRH_h3x3
std::unique_ptr< std::vector< double > > t_nRH_h3x3
Definition: IsolatedTracksCone.cc:229
CaloGeometry
Definition: CaloGeometry.h:21
reco::HitPattern
Definition: HitPattern.h:147
IsolatedTracksCone::t_irun
std::unique_ptr< std::vector< unsigned int > > t_irun
Definition: IsolatedTracksCone.cc:326
FindCaloHit.h
Track.h
TrackFwd.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
spr::eECALmatrix
double eECALmatrix(const DetId &detId, edm::Handle< T > &hitsEB, edm::Handle< T > &hitsEE, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, double ebThr=-100, double eeThr=-100, double tMin=-500, double tMax=500, bool debug=false)
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
reco::HitPattern::trackerLayersWithMeasurement
int trackerLayersWithMeasurement() const
Definition: HitPattern.cc:513
IsolatedTracksCone::leadL1JetEta
double leadL1JetEta
Definition: IsolatedTracksCone.cc:196
IsolatedTracksCone::debugEcalSimInfo_
const int debugEcalSimInfo_
Definition: IsolatedTracksCone.cc:172
L1TEGammaOffline_cfi.triggerNames
triggerNames
Definition: L1TEGammaOffline_cfi.py:40
IsolatedTracksCone::t_v_hsimInfoConeNCharHad
std::unique_ptr< std::vector< std::vector< int > > > t_v_hsimInfoConeNCharHad
Definition: IsolatedTracksCone.cc:283
Service.h
IsolatedTracksCone::nPBins_
static constexpr int nPBins_
Definition: IsolatedTracksCone.cc:135
ChargeIsolation.h
IsolatedTracksCone::t_v_eMipDR
std::unique_ptr< std::vector< std::vector< double > > > t_v_eMipDR
Definition: IsolatedTracksCone.cc:222
IsolatedTracksCone::t_hsim3x3NNeutHad
std::unique_ptr< std::vector< int > > t_hsim3x3NNeutHad
Definition: IsolatedTracksCone.cc:250
IsolatedTracksCone::ptMinLeadJet_
const double ptMinLeadJet_
Definition: IsolatedTracksCone.cc:142
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
SimVertex.h
eHCALMatrix.h
IsolatedTracksCone::t_hsim3x3Total
std::unique_ptr< std::vector< double > > t_hsim3x3Total
Definition: IsolatedTracksCone.cc:244
reco::TrackBase::numberOfLostHits
unsigned short numberOfLostHits() const
number of cases where track crossed a layer without getting a hit.
Definition: TrackBase.h:801
reco::Track
Definition: Track.h:27
IsolatedTracksCone::nEtaBins_
static constexpr int nEtaBins_
Definition: IsolatedTracksCone.cc:134
spr::coneChargeIsolation
double coneChargeIsolation(const edm::Event &iEvent, const edm::EventSetup &iSetup, reco::TrackCollection::const_iterator trkItr, edm::Handle< reco::TrackCollection > trkCollection, TrackDetectorAssociator &associator, TrackAssociatorParameters &parameters_, const std::string &theTrackQuality, int &nNearTRKs, int &nLayers_maxNearP, int &trkQual_maxNearP, double &maxNearP_goodTrk, const GlobalPoint &hpoint1, const GlobalVector &trackMom, double dR)
Definition: ChargeIsolation.cc:224
IsolatedTracksCone::tok_genTrack_
const edm::EDGetTokenT< reco::TrackCollection > tok_genTrack_
Definition: IsolatedTracksCone.cc:156
IsolatedTracksCone::t_hsim3x3Rest
std::unique_ptr< std::vector< double > > t_hsim3x3Rest
Definition: IsolatedTracksCone.cc:234
IsolatedTracksCone::t_hltJet30
std::unique_ptr< std::vector< int > > t_hltJet30
Definition: IsolatedTracksCone.cc:299
IsolatedTracksCone::t_hsim5x5Rest
std::unique_ptr< std::vector< double > > t_hsim5x5Rest
Definition: IsolatedTracksCone.cc:235
IsolatedTracksCone::t_hsim5x5NMatched
std::unique_ptr< std::vector< int > > t_hsim5x5NMatched
Definition: IsolatedTracksCone.cc:254
IsolatedTracksCone::t_hsim3x3CharHad
std::unique_ptr< std::vector< double > > t_hsim3x3CharHad
Definition: IsolatedTracksCone.cc:240
HLT_FULL_cff.pt1
pt1
Definition: HLT_FULL_cff.py:9870
reco::TrackBase::charge
int charge() const
track electric charge
Definition: TrackBase.h:596
IsolatedTracksCone::t_v_distFromHotCell
std::unique_ptr< std::vector< std::vector< double > > > t_v_distFromHotCell
Definition: IsolatedTracksCone.cc:291
IsolatedTracksCone::t_hsim5x5NPhoton
std::unique_ptr< std::vector< int > > t_hsim5x5NPhoton
Definition: IsolatedTracksCone.cc:256
Point3DBase< float, GlobalTag >
TrackAssociatorParameters::loadParameters
void loadParameters(const edm::ParameterSet &, edm::ConsumesCollector &)
Definition: TrackAssociatorParameters.cc:18
IsolatedTracksCone::printTrkHitPattern_
const bool printTrkHitPattern_
Definition: IsolatedTracksCone.cc:144
eECALMatrix.h
eCone.h
EcalSeverityLevelAlgo.h
reco::TrackBase::phi
double phi() const
azimuthal angle of momentum vector
Definition: TrackBase.h:649
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
IsolatedTracksCone::t_v_cone_hmaxNearP
std::unique_ptr< std::vector< std::vector< double > > > t_v_cone_hmaxNearP
Definition: IsolatedTracksCone.cc:209
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
Vertex.h
IsolatedTracksCone::tok_caloEB_
const edm::EDGetTokenT< edm::PCaloHitContainer > tok_caloEB_
Definition: IsolatedTracksCone.cc:160
EcalEndcap
Definition: EcalSubdetector.h:10
IsolatedTracksCone::t_v_hsimInfoConeCharHad
std::unique_ptr< std::vector< std::vector< double > > > t_v_hsimInfoConeCharHad
Definition: IsolatedTracksCone.cc:275
TFileService.h
HLT_FULL_cff.eta1
eta1
Definition: HLT_FULL_cff.py:9541
IsolatedTracksCone::t_hltSingleIsoTau30_Trk5
std::unique_ptr< std::vector< int > > t_hltSingleIsoTau30_Trk5
Definition: IsolatedTracksCone.cc:310
IsolatedTracksCone::t_hltJet110
std::unique_ptr< std::vector< int > > t_hltJet110
Definition: IsolatedTracksCone.cc:302
IsolatedTracksCone::t_hltMinBiasEcal
std::unique_ptr< std::vector< int > > t_hltMinBiasEcal
Definition: IsolatedTracksCone.cc:308
IsolatedTracksCone::leadL1JetPhi
double leadL1JetPhi
Definition: IsolatedTracksCone.cc:197
IsolatedTracksCone::t_v_hnLayers_maxNearP
std::unique_ptr< std::vector< std::vector< int > > > t_v_hnLayers_maxNearP
Definition: IsolatedTracksCone.cc:200
IsolatedTracksCone::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: IsolatedTracksCone.cc:439
CaloSubdetectorGeometry.h
IsolatedTracksCone::tok_ecalChStatus_
const edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > tok_ecalChStatus_
Definition: IsolatedTracksCone.cc:168
L1JetParticleFwd.h
IsolatedTracksCone::tok_sevlv_
const edm::ESGetToken< EcalSeverityLevelAlgo, EcalSeverityLevelAlgoRcd > tok_sevlv_
Definition: IsolatedTracksCone.cc:169
edm::ParameterSet
Definition: ParameterSet.h:47
IsolatedTracksCone::t_hltHE
std::unique_ptr< std::vector< int > > t_hltHE
Definition: IsolatedTracksCone.cc:297
IsolatedTracksCone::t_h3x3
std::unique_ptr< std::vector< double > > t_h3x3
Definition: IsolatedTracksCone.cc:224
Event.h
IsolatedTracksCone::t_iphiFromHotCell_h5x5
std::unique_ptr< std::vector< int > > t_iphiFromHotCell_h5x5
Definition: IsolatedTracksCone.cc:266
IsolatedTracksCone::maxNearTrackP_
const double maxNearTrackP_
Definition: IsolatedTracksCone.cc:171
IsolatedTracksCone::IsolatedTracksCone
IsolatedTracksCone(const edm::ParameterSet &)
Definition: IsolatedTracksCone.cc:331
IsolatedTracksCone::nTRK
int nTRK
Definition: IsolatedTracksCone.cc:194
IsolatedTracksCone::t_v_hnNearTRKs
std::unique_ptr< std::vector< std::vector< int > > > t_v_hnNearTRKs
Definition: IsolatedTracksCone.cc:199
IsolatedTracksCone::t_v_RH_r44_ieta
std::unique_ptr< std::vector< std::vector< int > > > t_v_RH_r44_ieta
Definition: IsolatedTracksCone.cc:322
IsolatedTracksCone::t_hsim3x3NTotal
std::unique_ptr< std::vector< int > > t_hsim3x3NTotal
Definition: IsolatedTracksCone.cc:252
IsolatedTracksCone::t_v_iphiFromHotCell
std::unique_ptr< std::vector< std::vector< int > > > t_v_iphiFromHotCell
Definition: IsolatedTracksCone.cc:293
HcalDetId.h
IsolatedTracksCone::beginJob
void beginJob() override
Definition: IsolatedTracksCone.cc:1250
IsolatedTracksCone::nRawTRK
int nRawTRK
Definition: IsolatedTracksCone.cc:186
IsolatedTracksCone::t_v_hlTriggers
std::unique_ptr< std::vector< std::vector< int > > > t_v_hlTriggers
Definition: IsolatedTracksCone.cc:295
IsolatedTracksCone::t_hltHB
std::unique_ptr< std::vector< int > > t_hltHB
Definition: IsolatedTracksCone.cc:296
IsolatedTracksCone::printTrack
void printTrack(const reco::Track *pTrack)
Definition: IsolatedTracksCone.cc:1706
reco::TrackBase::eta
double eta() const
pseudorapidity of momentum vector
Definition: TrackBase.h:652
IsolatedTracksCone::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: IsolatedTracksCone.cc:387
IsolatedTracksCone::t_hsim5x5NRest
std::unique_ptr< std::vector< int > > t_hsim5x5NRest
Definition: IsolatedTracksCone.cc:255
IsolatedTracksCone::t_trkPhi
std::unique_ptr< std::vector< double > > t_trkPhi
Definition: IsolatedTracksCone.cc:218
CaloTopologyRecord.h
MatchingSimTrack.h
IsolatedTracksCone::t_trkNOuterHits
std::unique_ptr< std::vector< double > > t_trkNOuterHits
Definition: IsolatedTracksCone.cc:211
IsolatedTracksCone::h_RawPhi
TH1F * h_RawPhi
Definition: IsolatedTracksCone.cc:184
IsolatedTracksCone::debugTrks_
const int debugTrks_
Definition: IsolatedTracksCone.cc:143
HcalDetId
Definition: HcalDetId.h:12
edm::Service< TFileService >
spr::eCone_hcal
double eCone_hcal(const CaloGeometry *geo, edm::Handle< T > &hits, const GlobalPoint &hpoint1, const GlobalPoint &point1, double dR, const GlobalVector &trackMom, int &nRecHits, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, double tMin=-500, double tMax=500, int detOnly=-1, int useRaw=0, bool debug=false)
createfilelist.int
int
Definition: createfilelist.py:10
TriggerNames.h
iEvent
int iEvent
Definition: GenABIO.cc:224
IsolatedTracksCone::applyEcalIsolation_
const bool applyEcalIsolation_
Definition: IsolatedTracksCone.cc:173
IsolatedTracksCone::t_hltJet180
std::unique_ptr< std::vector< int > > t_hltJet180
Definition: IsolatedTracksCone.cc:304
IsolatedTracksCone::t_hsim3x3Matched
std::unique_ptr< std::vector< double > > t_hsim3x3Matched
Definition: IsolatedTracksCone.cc:232
IsolatedTracksCone::t_hltZeroBias
std::unique_ptr< std::vector< int > > t_hltZeroBias
Definition: IsolatedTracksCone.cc:306
IsolatedTracksCone::t_hltMinBiasPixel
std::unique_ptr< std::vector< int > > t_hltMinBiasPixel
Definition: IsolatedTracksCone.cc:309
reco::TrackBase::d0
double d0() const
dxy parameter in perigee convention (d0 = -dxy)
Definition: TrackBase.h:611
IsolatedTracksCone::nMissEcal
int nMissEcal
Definition: IsolatedTracksCone.cc:190
TrackDetMatchInfo::trkMomAtEcal
GlobalVector trkMomAtEcal
Definition: TrackDetMatchInfo.h:42
IsolatedTracksCone::t_v_hCone
std::unique_ptr< std::vector< std::vector< double > > > t_v_hCone
Definition: IsolatedTracksCone.cc:287
p1
double p1[4]
Definition: TauolaWrapper.h:89
IsolatedTracksCone::t_hsim5x5CharHad
std::unique_ptr< std::vector< double > > t_hsim5x5CharHad
Definition: IsolatedTracksCone.cc:241
IsolatedTracksCone::t_simP
std::unique_ptr< std::vector< double > > t_simP
Definition: IsolatedTracksCone.cc:215
edm::EventSetup
Definition: EventSetup.h:57
IsolatedTracksCone::t_v_hmaxNearP_goodTrk
std::unique_ptr< std::vector< std::vector< double > > > t_v_hmaxNearP_goodTrk
Definition: IsolatedTracksCone.cc:202
IsolatedTracksCone::t_distFromHotCell_h5x5
std::unique_ptr< std::vector< double > > t_distFromHotCell_h5x5
Definition: IsolatedTracksCone.cc:264
TrackAssociatorRecord.h
CaloSubdetectorGeometry::getClosestCell
virtual DetId getClosestCell(const GlobalPoint &r) const
Definition: CaloSubdetectorGeometry.cc:44
reco::TrackBase::normalizedChi2
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
Definition: TrackBase.h:593
DetId::Ecal
Definition: DetId.h:27
itr
std::vector< std::pair< float, float > >::iterator itr
Definition: HGCDigitizer.cc:29
IsolatedTracksCone::t_hsim3x3NMatched
std::unique_ptr< std::vector< int > > t_hsim3x3NMatched
Definition: IsolatedTracksCone.cc:247
IsolatedTracksCone::t_hsim5x5Total
std::unique_ptr< std::vector< double > > t_hsim5x5Total
Definition: IsolatedTracksCone.cc:245
HitPattern.h
edm::ESGetToken< CaloGeometry, CaloGeometryRecord >
IsolatedTracksCone::tok_hbhe_
const edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
Definition: IsolatedTracksCone.cc:154
TriggerObject.h
IsolatedTracksCone::maxTrackEta_
const double maxTrackEta_
Definition: IsolatedTracksCone.cc:171
TrackDetMatchInfo::trkGlobPosAtEcal
math::XYZPoint trkGlobPosAtEcal
Track position at different parts of the calorimeter.
Definition: TrackDetMatchInfo.h:38
IsolatedTracksCone::buildTree
void buildTree()
Definition: IsolatedTracksCone.cc:1545
reco::HitPattern::TRACK_HITS
Definition: HitPattern.h:155
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:120
IsolatedTracksCone::t_h5x5
std::unique_ptr< std::vector< double > > t_h5x5
Definition: IsolatedTracksCone.cc:225
CaloTopology.h
photonIsolationHIProducer_cfi.hbhe
hbhe
Definition: photonIsolationHIProducer_cfi.py:8
IsolatedTracksCone::t_v_nRecHitsCone
std::unique_ptr< std::vector< std::vector< int > > > t_v_nRecHitsCone
Definition: IsolatedTracksCone.cc:288
reco::TrackBase::qualityByName
static TrackQuality qualityByName(const std::string &name)
Definition: TrackBase.cc:126
VertexFwd.h
IsolatedTracksCone::trackerHitAssociatorConfig_
const TrackerHitAssociator::Config trackerHitAssociatorConfig_
Definition: IsolatedTracksCone.cc:146
IsolatedTracksCone::minTrackP_
const double minTrackP_
Definition: IsolatedTracksCone.cc:171
CaloSubdetectorTopology.h
reco::TrackBase::hitPattern
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:504
TrackDetMatchInfo
Definition: TrackDetMatchInfo.h:13
HcalTopology.h
IsolatedTracksCone::t_v_ietaFromHotCell
std::unique_ptr< std::vector< std::vector< int > > > t_v_ietaFromHotCell
Definition: IsolatedTracksCone.cc:292
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
CaloSimInfo.h
IsolatedTracksCone::genPartEtaBins
std::array< double, nEtaBins_+1 > genPartEtaBins
Definition: IsolatedTracksCone.cc:137
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
IsolatedTracksCone::t_hsim5x5Photon
std::unique_ptr< std::vector< double > > t_hsim5x5Photon
Definition: IsolatedTracksCone.cc:237
IsolatedTracksCone::t_hsim5x5NeutHad
std::unique_ptr< std::vector< double > > t_hsim5x5NeutHad
Definition: IsolatedTracksCone.cc:239
Ref.h
IsolatedTracksCone::nEVT
int nEVT
Definition: IsolatedTracksCone.cc:192
IsolatedTracksCone::t_trkEta
std::unique_ptr< std::vector< double > > t_trkEta
Definition: IsolatedTracksCone.cc:217
IsolatedTracksCone
Definition: IsolatedTracksCone.cc:116
IsolatedTracksCone::t_hsim3x3NRest
std::unique_ptr< std::vector< int > > t_hsim3x3NRest
Definition: IsolatedTracksCone.cc:248
FreeTrajectoryState
Definition: FreeTrajectoryState.h:27
IsolatedTracksCone::t_v_hsimInfoConeNTotal
std::unique_ptr< std::vector< std::vector< int > > > t_v_hsimInfoConeNTotal
Definition: IsolatedTracksCone.cc:284
edm::SimTrackContainer
std::vector< SimTrack > SimTrackContainer
Definition: SimTrackContainer.h:12
HcalEndcap
Definition: HcalAssistant.h:34
DetId.h
Frameworkfwd.h
IsolatedTracksCone::t_hltJet50
std::unique_ptr< std::vector< int > > t_hltJet50
Definition: IsolatedTracksCone.cc:300
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
IsolatedTracksCone::t_v_RH_r44_ene
std::unique_ptr< std::vector< std::vector< double > > > t_v_RH_r44_ene
Definition: IsolatedTracksCone.cc:324
IsolatedTracksCone::t_hltJet140
std::unique_ptr< std::vector< int > > t_hltJet140
Definition: IsolatedTracksCone.cc:303
IsolatedTracksCone::leadL1JetPT
double leadL1JetPT
Definition: IsolatedTracksCone.cc:195
IsolatedTracksCone::t_hsim5x5PdgMatched
std::unique_ptr< std::vector< double > > t_hsim5x5PdgMatched
Definition: IsolatedTracksCone.cc:243
spr::matchedSimTrack
edm::SimTrackContainer::const_iterator matchedSimTrack(const edm::Event &iEvent, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, const reco::Track *pTrack, TrackerHitAssociator &associate, bool debug=false)
Definition: MatchingSimTrack.cc:12
IsolatedTracksCone::t_v_hsimInfoConePdgMatched
std::unique_ptr< std::vector< std::vector< double > > > t_v_hsimInfoConePdgMatched
Definition: IsolatedTracksCone.cc:276
CaloGeometry.h
IsolatedTracksCone::t_trkHcalEne
std::unique_ptr< std::vector< double > > t_trkHcalEne
Definition: IsolatedTracksCone.cc:268
edm::TriggerNames
Definition: TriggerNames.h:55
IsolatedTracksCone::tok_L1extTauJet_
const edm::EDGetTokenT< l1extra::L1JetParticleCollection > tok_L1extTauJet_
Definition: IsolatedTracksCone.cc:148
TrackDetMatchInfo::trkMomAtHcal
GlobalVector trkMomAtHcal
Definition: TrackDetMatchInfo.h:43
IsolatedTracksCone::t_hsim5x5NCharHad
std::unique_ptr< std::vector< int > > t_hsim5x5NCharHad
Definition: IsolatedTracksCone.cc:258
IsolatedTracksCone::h_RawEta
TH1F * h_RawEta
Definition: IsolatedTracksCone.cc:183
IsolatedTracksCone::t_v_RH_r44_iphi
std::unique_ptr< std::vector< std::vector< int > > > t_v_RH_r44_iphi
Definition: IsolatedTracksCone.cc:323
edm::PCaloHitContainer
std::vector< PCaloHit > PCaloHitContainer
Definition: PCaloHitContainer.h:8
EventSetup.h
CaloSubdetectorGeometry
Definition: CaloSubdetectorGeometry.h:22
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
HcalRecHitCollections.h
IsolatedTracksCone::t_hsim3x3PdgMatched
std::unique_ptr< std::vector< double > > t_hsim3x3PdgMatched
Definition: IsolatedTracksCone.cc:242
PCaloHitContainer.h
spr::eHCALmatrix
double eHCALmatrix(const HcalTopology *topology, const DetId &det, edm::Handle< T > &hits, int ieta, int iphi, bool includeHO=false, bool algoNew=true, double hbThr=-100, double heThr=-100, double hfThr=-100, double hoThr=-100, double tMin=-500, double tMax=500, int useRaw=0, bool debug=false)
IsolatedTracksCone::nFailHighPurityQaul
int nFailHighPurityQaul
Definition: IsolatedTracksCone.cc:187
TrackAssociatorParameters::bFieldToken
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > bFieldToken
Definition: TrackAssociatorParameters.h:130
IsolatedTracksCone::nMissHcal
int nMissHcal
Definition: IsolatedTracksCone.cc:191
IsolatedTracksCone::t_v_cone_hnNearTRKs
std::unique_ptr< std::vector< std::vector< int > > > t_v_cone_hnNearTRKs
Definition: IsolatedTracksCone.cc:205
Candidate.h
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
SimTrack.h
ParameterSet.h
IsolatedTracksCone::tok_EE_
const edm::EDGetTokenT< EcalRecHitCollection > tok_EE_
Definition: IsolatedTracksCone.cc:153
IsolatedTracksCone::myverbose_
const int myverbose_
Definition: IsolatedTracksCone.cc:140
IsolatedTracksCone::t_hsim3x3NCharHad
std::unique_ptr< std::vector< int > > t_hsim3x3NCharHad
Definition: IsolatedTracksCone.cc:251
reco::TrackBase::momentum
const Vector & momentum() const
track momentum vector
Definition: TrackBase.h:664
l1extra
Definition: L1EmParticle.h:26
HLTObjectsMonitor_cfi.TriggerResults
TriggerResults
Definition: HLTObjectsMonitor_cfi.py:9
IsolatedTracksCone::~IsolatedTracksCone
~IsolatedTracksCone() override
Definition: IsolatedTracksCone.cc:385
edm::Event
Definition: Event.h:73
spr::eCone_ecal
double eCone_ecal(const CaloGeometry *geo, edm::Handle< T > &barrelhits, edm::Handle< T > &endcaphits, const GlobalPoint &hpoint1, const GlobalPoint &point1, double dR, const GlobalVector &trackMom, int &nRecHits, double ebThr=-100, double eeThr=-100, double tMin=-500, double tMax=500, bool debug=false)
IsolatedTracksCone::nFailPt
int nFailPt
Definition: IsolatedTracksCone.cc:188
spr::eCaloSimInfo
void eCaloSimInfo(std::vector< DetId > vdets, const CaloGeometry *geo, edm::Handle< T > &hitsEB, edm::Handle< T > &hitsEE, edm::Handle< edm::SimTrackContainer > &SimTk, edm::Handle< edm::SimVertexContainer > &SimVtx, edm::SimTrackContainer::const_iterator trkInfo, caloSimInfo &info, double timeCut=150, bool debug=false)
IsolatedTracksCone::t_v_hsimInfoConeNMatched
std::unique_ptr< std::vector< std::vector< int > > > t_v_hsimInfoConeNMatched
Definition: IsolatedTracksCone.cc:279
L1JetParticle.h
IsolatedTracksCone::t_hltMinBiasHcal
std::unique_ptr< std::vector< int > > t_hltMinBiasHcal
Definition: IsolatedTracksCone.cc:307
IsolatedTracksCone::t_hltJet80
std::unique_ptr< std::vector< int > > t_hltJet80
Definition: IsolatedTracksCone.cc:301
IsolatedTracksCone::tok_simTk_
const edm::EDGetTokenT< edm::SimTrackContainer > tok_simTk_
Definition: IsolatedTracksCone.cc:157
SimTrackContainer.h
reco::TrackBase::quality
bool quality(const TrackQuality) const
Track quality.
Definition: TrackBase.h:552
IsolatedTracksCone::t_hsim3x3
std::unique_ptr< std::vector< double > > t_hsim3x3
Definition: IsolatedTracksCone.cc:226
edm::SimVertexContainer
std::vector< SimVertex > SimVertexContainer
Definition: SimVertexContainer.h:12
IsolatedTracksCone::t_trkPt
std::unique_ptr< std::vector< double > > t_trkPt
Definition: IsolatedTracksCone.cc:216
edm::InputTag
Definition: InputTag.h:15
IsolatedTracksCone::t_distFromHotCell_h3x3
std::unique_ptr< std::vector< double > > t_distFromHotCell_h3x3
Definition: IsolatedTracksCone.cc:261
IsolatedTracksCone::tok_EB_
const edm::EDGetTokenT< EcalRecHitCollection > tok_EB_
Definition: IsolatedTracksCone.cc:152
reco::TrackCollection
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:14
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
SimVertexContainer.h
IsolatedTracksCone::t_v_hsimInfoConeNeutHad
std::unique_ptr< std::vector< std::vector< double > > > t_v_hsimInfoConeNeutHad
Definition: IsolatedTracksCone.cc:274
IsolatedTracksCone::t_v_nSimHitsCone
std::unique_ptr< std::vector< std::vector< int > > > t_v_nSimHitsCone
Definition: IsolatedTracksCone.cc:289
EcalChannelStatusRcd.h
IsolatedTracksCone::tok_simVtx_
const edm::EDGetTokenT< edm::SimVertexContainer > tok_simVtx_
Definition: IsolatedTracksCone.cc:158
IsolatedTracksCone::t_ilum
std::unique_ptr< std::vector< unsigned int > > t_ilum
Definition: IsolatedTracksCone.cc:328
TFileService::make
T * make(const Args &... args) const
make new ROOT object
Definition: TFileService.h:64
reco::TrackBase::qoverp
double qoverp() const
q / p
Definition: TrackBase.h:599
IsolatedTracksCone::t_v_htrkQual_maxNearP
std::unique_ptr< std::vector< std::vector< int > > > t_v_htrkQual_maxNearP
Definition: IsolatedTracksCone.cc:201
IsolatedTracksCone::t_hsim3x3Photon
std::unique_ptr< std::vector< double > > t_hsim3x3Photon
Definition: IsolatedTracksCone.cc:236
IsolatedTracksCone::t_ietaFromHotCell_h3x3
std::unique_ptr< std::vector< int > > t_ietaFromHotCell_h3x3
Definition: IsolatedTracksCone.cc:262
IsolatedTracksCone::parameters_
TrackAssociatorParameters parameters_
Definition: IsolatedTracksCone.cc:176
TrackAssociatorParameters
Definition: TrackAssociatorParameters.h:43
IsolatedTracksCone::t_ievt
std::unique_ptr< std::vector< unsigned int > > t_ievt
Definition: IsolatedTracksCone.cc:327
IsolatedTracksCone::t_v_RH_h3x3_ieta
std::unique_ptr< std::vector< std::vector< int > > > t_v_RH_h3x3_ieta
Definition: IsolatedTracksCone.cc:313
IsolatedTracksCone::t_v_hsimInfoConeTotal
std::unique_ptr< std::vector< std::vector< double > > > t_v_hsimInfoConeTotal
Definition: IsolatedTracksCone.cc:277