test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTAnalyzer.cc
Go to the documentation of this file.
1 // File: HLTAnalyzer.cc
2 // Description: Example of Analysis driver originally from Jeremy Mans,
3 // Date: 13-October-2006
4 
5 #include <boost/foreach.hpp>
6 
8 #include "HLTMessages.h"
10 
11 typedef std::pair<const char *, const edm::InputTag *> MissingCollectionInfo;
12 
13 template <class T>
14 static inline
15 bool getCollection(const edm::Event & event, std::vector<MissingCollectionInfo> & missing, edm::Handle<T> & handle, const edm::InputTag & name, const edm::EDGetTokenT<T> token, const char * description)
16 {
17  event.getByToken(token, handle);
18  bool valid = handle.isValid();
19  if (not valid) {
20  missing.push_back( std::make_pair(description, & name) );
21  handle.clear();
22  // std::cout << "not valid "<< description << " " << name << std::endl;
23  }
24  return valid;
25 }
26 
27 // Boiler-plate constructor definition of an analyzer module:
29  hlt_analysis_(conf, consumesCollector(), *this) {
30 
31  // If your module takes parameters, here is where you would define
32  // their names and types, and access them to initialize internal
33  // variables. Example as follows:
34  std::cout << " Beginning HLTAnalyzer Analysis " << std::endl;
35 
36  hltjets_ = conf.getParameter<edm::InputTag> ("hltjets");
37  hltcorjets_ = conf.getParameter<edm::InputTag> ("hltcorjets");
38  hltcorL1L2L3jets_ = conf.getParameter<edm::InputTag> ("hltcorL1L2L3jets");
39  rho_ = edm::InputTag("hltKT6CaloJets", "rho");
40  recjets_ = conf.getParameter<edm::InputTag> ("recjets");
41  reccorjets_ = conf.getParameter<edm::InputTag> ("reccorjets");
42  genjets_ = conf.getParameter<edm::InputTag> ("genjets");
43  recmet_ = conf.getParameter<edm::InputTag> ("recmet");
44  recoPFMet_ = conf.getParameter<edm::InputTag> ("pfmet");
45  genmet_ = conf.getParameter<edm::InputTag> ("genmet");
46  ht_ = conf.getParameter<edm::InputTag> ("ht");
47  recoPFJets_ = conf.getParameter<edm::InputTag> ("recoPFJets");
48  calotowers_ = conf.getParameter<edm::InputTag> ("calotowers");
49  calotowersUpperR45_ = conf.getParameter<edm::InputTag> ("calotowersUpperR45");
50  calotowersLowerR45_ = conf.getParameter<edm::InputTag> ("calotowersLowerR45");
51  calotowersNoR45_ = conf.getParameter<edm::InputTag> ("calotowersNoR45");
52  muon_ = conf.getParameter<edm::InputTag> ("muon");
53  pfmuon_ = conf.getParameter<edm::InputTag> ("pfmuon");
54  mctruth_ = conf.getParameter<edm::InputTag> ("mctruth");
55  genEventInfo_ = conf.getParameter<edm::InputTag> ("genEventInfo");
56  simhits_ = conf.getParameter<edm::InputTag> ("simhits");
57  xSection_ = conf.getUntrackedParameter<double> ("xSection",1.);
58  filterEff_ = conf.getUntrackedParameter<double> ("filterEff",1.);
59  firstLumi_ = conf.getUntrackedParameter<int> ("firstLumi",0);
60  lastLumi_ = conf.getUntrackedParameter<int> ("lastLumi",-1);
61  towerThreshold_ = conf.getParameter<double>("caloTowerThreshold");
62 
63  // keep this separate from l1extramc_ as needed by FastSim:
64  // This is purposefully done this way to allow FastSim to run with OpenHLT:
65  // The {FastSim+OpenHLT} package runs on the head of HLTrigger/HLTanalyzers
66  // where there is purposefully this duplication because FastSim does the
67  // simulation of muons seperately, and needs the same collection.
68  l1extramu_ = conf.getParameter<std::string> ("l1extramu");
69  m_l1extramu = edm::InputTag(l1extramu_, "");
70 
71  // read the L1Extra collection name, and add the instance names as needed
72  l1extramc_ = conf.getParameter<std::string> ("l1extramc");
73  m_l1extraemi = edm::InputTag(l1extramc_, "Isolated");
74  m_l1extraemn = edm::InputTag(l1extramc_, "NonIsolated");
77  m_l1extrajet = edm::InputTag("gctInternJetProducer","Internal","ANALYSIS");
81 
82  hltresults_ = conf.getParameter<edm::InputTag> ("hltresults");
83  gtReadoutRecord_ = conf.getParameter<edm::InputTag> ("l1GtReadoutRecord");
84 
85  gctBitCounts_ = edm::InputTag( conf.getParameter<edm::InputTag>("l1GctHFBitCounts").label(), "" );
86  gctRingSums_ = edm::InputTag( conf.getParameter<edm::InputTag>("l1GctHFRingSums").label(), "" );
87 
88  MuCandTag2_ = conf.getParameter<edm::InputTag> ("MuCandTag2");
89  MuIsolTag2_ = conf.getParameter<edm::InputTag> ("MuIsolTag2");
90  MuNoVtxCandTag2_ = conf.getParameter<edm::InputTag> ("MuNoVtxCandTag2");
91  MuCandTag3_ = conf.getParameter<edm::InputTag> ("MuCandTag3");
92  MuIsolTag3_ = conf.getParameter<edm::InputTag> ("MuIsolTag3");
93  MuTrkIsolTag3_ = conf.getParameter<edm::InputTag> ("MuTrkIsolTag3");
94  TrackerMuonTag_ = conf.getParameter<edm::InputTag> ("TrackerMuonTag");
95  oniaPixelTag_ = conf.getParameter<edm::InputTag> ("OniaPixelTag");
96  oniaTrackTag_ = conf.getParameter<edm::InputTag> ("OniaTrackTag");
97  DiMuVtx_ = conf.getParameter<edm::InputTag> ("DiMuVtx");
98  L2Tau_ = conf.getParameter<edm::InputTag> ("L2Tau");
99  HLTTau_ = conf.getParameter<edm::InputTag> ("HLTTau");
100  PFTau_ = conf.getParameter<edm::InputTag> ("HLTPFTau");
101  PFTauTightCone_ = conf.getParameter<edm::InputTag> ("HLTPFTauTightCone");
102  _MinPtChargedHadrons = conf.getParameter<double>("minPtChargedHadronsForTaus");
103  _MinPtGammas = conf.getParameter<double>("minPtGammassForTaus");
104 
105  PFJets_ = conf.getParameter<edm::InputTag> ("HLTPFJet");
106 
107  // offline reco tau collection and discriminators
108  RecoPFTau_ = conf.getParameter<edm::InputTag> ("RecoPFTau");
109  RecoPFTauDiscrByTanCOnePercent_ = conf.getParameter<edm::InputTag> ("RecoPFTauDiscrByTanCOnePercent");
110  RecoPFTauDiscrByTanCHalfPercent_ = conf.getParameter<edm::InputTag> ("RecoPFTauDiscrByTanCHalfPercent");
111  RecoPFTauDiscrByTanCQuarterPercent_ = conf.getParameter<edm::InputTag> ("RecoPFTauDiscrByTanCQuarterPercent");
112  RecoPFTauDiscrByTanCTenthPercent_ = conf.getParameter<edm::InputTag> ("RecoPFTauDiscrByTanCTenthPercent");
113  RecoPFTauDiscrByIso_ = conf.getParameter<edm::InputTag> ("RecoPFTauDiscrByIso");
114  RecoPFTauAgainstMuon_ = conf.getParameter<edm::InputTag> ("RecoPFTauAgainstMuon");
115  RecoPFTauAgainstElec_ = conf.getParameter<edm::InputTag> ("RecoPFTauAgainstElec");
116 
117 
118  // btag OpenHLT input collections
119  m_rawBJets = conf.getParameter<edm::InputTag>("CommonBJetsL2");
120  m_correctedBJets = conf.getParameter<edm::InputTag>("CorrectedBJetsL2");
121  m_correctedBJetsL1FastJet = conf.getParameter<edm::InputTag>("CorrectedBJetsL2L1FastJet");
122  m_pfBJets = conf.getParameter<edm::InputTag>("PFlowBJetsL2");
123  m_lifetimeBJetsL25 = conf.getParameter<edm::InputTag>("LifetimeBJetsL25");
124  m_lifetimeBJetsL3 = conf.getParameter<edm::InputTag>("LifetimeBJetsL3");
125  m_lifetimeBJetsL25L1FastJet = conf.getParameter<edm::InputTag>("LifetimeBJetsL25L1FastJet");
126  m_lifetimeBJetsL3L1FastJet = conf.getParameter<edm::InputTag>("LifetimeBJetsL3L1FastJet");
127  m_lifetimePFBJetsL3 = conf.getParameter<edm::InputTag>("LifetimePFlowBJetsL3");
128  m_lifetimeBJetsL25SingleTrack = conf.getParameter<edm::InputTag>("LifetimeBJetsL25SingleTrack");
129  m_lifetimeBJetsL3SingleTrack = conf.getParameter<edm::InputTag>("LifetimeBJetsL3SingleTrack");
130  m_lifetimeBJetsL25SingleTrackL1FastJet = conf.getParameter<edm::InputTag>("LifetimeBJetsL25SingleTrackL1FastJet");
131  m_lifetimeBJetsL3SingleTrackL1FastJet = conf.getParameter<edm::InputTag>("LifetimeBJetsL3SingleTrackL1FastJet");
132  m_performanceBJetsL25 = conf.getParameter<edm::InputTag>("PerformanceBJetsL25");
133  m_performanceBJetsL3 = conf.getParameter<edm::InputTag>("PerformanceBJetsL3");
134  m_performanceBJetsL25L1FastJet = conf.getParameter<edm::InputTag>("PerformanceBJetsL25L1FastJet");
135  m_performanceBJetsL3L1FastJet = conf.getParameter<edm::InputTag>("PerformanceBJetsL3L1FastJet");
136 
137  // egamma OpenHLT input collections
138  Electron_ = conf.getParameter<edm::InputTag> ("Electron");
139  Photon_ = conf.getParameter<edm::InputTag> ("Photon");
140  CandIso_ = conf.getParameter<edm::InputTag> ("CandIso");
141  CandNonIso_ = conf.getParameter<edm::InputTag> ("CandNonIso");
142  EcalIso_ = conf.getParameter<edm::InputTag> ("EcalIso");
143  EcalNonIso_ = conf.getParameter<edm::InputTag> ("EcalNonIso");
144  HcalIsoPho_ = conf.getParameter<edm::InputTag> ("HcalIsoPho");
145  HcalNonIsoPho_ = conf.getParameter<edm::InputTag> ("HcalNonIsoPho");
146  IsoPhoTrackIsol_ = conf.getParameter<edm::InputTag> ("IsoPhoTrackIsol");
147  NonIsoPhoTrackIsol_ = conf.getParameter<edm::InputTag> ("NonIsoPhoTrackIsol");
148  IsoElectron_ = conf.getParameter<edm::InputTag> ("IsoElectrons");
149  NonIsoElectron_ = conf.getParameter<edm::InputTag> ("NonIsoElectrons");
150  IsoEleHcal_ = conf.getParameter<edm::InputTag> ("HcalIsoEle");
151  NonIsoEleHcal_ = conf.getParameter<edm::InputTag> ("HcalNonIsoEle");
152  IsoEleTrackIsol_ = conf.getParameter<edm::InputTag> ("IsoEleTrackIsol");
153  NonIsoEleTrackIsol_ = conf.getParameter<edm::InputTag> ("NonIsoEleTrackIsol");
154  L1IsoPixelSeeds_ = conf.getParameter<edm::InputTag> ("PixelSeedL1Iso");
155  L1NonIsoPixelSeeds_ = conf.getParameter<edm::InputTag> ("PixelSeedL1NonIso");
156  IsoR9_ = conf.getParameter<edm::InputTag> ("SpikeCleaningIsol");
157  NonIsoR9_ = conf.getParameter<edm::InputTag> ("SpikeCleaningNonIsol");
158  IsoHoverEH_ = conf.getParameter<edm::InputTag> ("HcalForHoverEIsol");
159  NonIsoHoverEH_ = conf.getParameter<edm::InputTag> ("HcalForHoverENonIsol");
160  IsoR9ID_ = conf.getParameter<edm::InputTag> ("R9IDIsol");
161  NonIsoR9ID_ = conf.getParameter<edm::InputTag> ("R9IDNonIsol");
162  HFECALClusters_ = conf.getParameter<edm::InputTag> ("HFECALClusters");
163  HFElectrons_ = conf.getParameter<edm::InputTag> ("HFElectrons");
164 
165  // Add ECAL Activity
166  ECALActivity_ = conf.getParameter<edm::InputTag> ("ECALActivity");
167  ActivityEcalIso_ = conf.getParameter<edm::InputTag> ("ActivityEcalIso");
168  ActivityHcalIso_ = conf.getParameter<edm::InputTag> ("ActivityHcalIso");
169  ActivityTrackIso_ = conf.getParameter<edm::InputTag> ("ActivityTrackIso");
170  ActivityR9_ = conf.getParameter<edm::InputTag> ("ActivityR9"); // spike cleaning
171  ActivityR9ID_ = conf.getParameter<edm::InputTag> ("ActivityR9ID");
172  ActivityHoverEH_ = conf.getParameter<edm::InputTag> ("ActivityHcalForHoverE");
173 
174 
175  // AlCa OpenHLT input collections
176  /*
177  EERecHitTag_ = conf.getParameter<edm::InputTag> ("EERecHits");
178  EBRecHitTag_ = conf.getParameter<edm::InputTag> ("EBRecHits");
179  pi0EBRecHitTag_ = conf.getParameter<edm::InputTag> ("pi0EBRecHits");
180  pi0EERecHitTag_ = conf.getParameter<edm::InputTag> ("pi0EERecHits");
181  HBHERecHitTag_ = conf.getParameter<edm::InputTag> ("HBHERecHits");
182  HORecHitTag_ = conf.getParameter<edm::InputTag> ("HORecHits");
183  HFRecHitTag_ = conf.getParameter<edm::InputTag> ("HFRecHits");
184  IsoPixelTrackTagL3_ = conf.getParameter<edm::InputTag> ("IsoPixelTracksL3");
185  IsoPixelTrackTagL2_ = conf.getParameter<edm::InputTag> ("IsoPixelTracksL2");
186  IsoPixelTrackVerticesTag_ = conf.getParameter<edm::InputTag> ("IsoPixelTrackVertices");
187  */
188 
189  // Track OpenHLT input collections
190  PixelTracksTagL3_ = conf.getParameter<edm::InputTag> ("PixelTracksL3");
191  PixelFEDSizeTag_ = conf.getParameter<edm::InputTag> ("PixelFEDSize");
192  PixelClustersTag_ = conf.getParameter<edm::InputTag> ("PixelClusters");
193 
194  // Reco Vertex collection
195  VertexTagHLT_ = conf.getParameter<edm::InputTag> ("PrimaryVertices");
196  VertexTagOffline0_ = conf.getParameter<edm::InputTag> ("OfflinePrimaryVertices0");
197 
198  m_file = 0; // set to null
199  errCnt = 0;
200 
201  // read run parameters with a default value
203  _HistName = runParameters.getUntrackedParameter<std::string>("HistogramFile", "test.root");
204  _EtaMin = runParameters.getUntrackedParameter<double>("EtaMin", -5.2);
205  _EtaMax = runParameters.getUntrackedParameter<double>("EtaMax", 5.2);
206 
207 
208  // Define all consumed products
209 
210  BSProducer_ = edm::InputTag("hltOnlineBeamSpot");
211  BSProducerToken_ = consumes<reco::BeamSpot>(BSProducer_);
212  hltjetsToken_ = consumes<reco::CaloJetCollection>(hltjets_);
213  hltcorjetsToken_ = consumes<reco::CaloJetCollection>(hltcorjets_);
214  hltcorL1L2L3jetsToken_ = consumes<reco::CaloJetCollection>(hltcorL1L2L3jets_);
215  rhoToken_ = consumes<double>(rho_);
216  recjetsToken_ = consumes<reco::CaloJetCollection>(recjets_);
217  reccorjetsToken_ = consumes<reco::CaloJetCollection>(reccorjets_);
218  genjetsToken_ = consumes<reco::GenJetCollection>(genjets_);
219  recmetToken_ = consumes<reco::CaloMETCollection>(recmet_);
220  recoPFMetToken_ = consumes<reco::PFMETCollection>(recoPFMet_);
221  genmetToken_ = consumes<reco::GenMETCollection>(genmet_);
222  calotowersToken_ = consumes<CaloTowerCollection>(calotowers_);
223  calotowersUpperR45Token_ = consumes<CaloTowerCollection>(calotowersUpperR45_);
224  calotowersLowerR45Token_ = consumes<CaloTowerCollection>(calotowersLowerR45_);
225  calotowersNoR45Token_ = consumes<CaloTowerCollection>(calotowersNoR45_);
226  htToken_ = consumes<reco::METCollection>(ht_);
227  recoPFJetsToken_ = consumes<reco::PFJetCollection>(recoPFJets_);
228 
229  muonToken_ = consumes<reco::MuonCollection>(muon_);
230  pfmuonToken_ = consumes<reco::PFCandidateCollection>(pfmuon_);
231 
232  L2TauToken_ = consumes<reco::CaloJetCollection>(L2Tau_);
233  HLTTauToken_ = consumes<reco::HLTTauCollection>(HLTTau_);
234  PFTauToken_ = consumes<reco::PFTauCollection>(PFTau_);
235  PFTauTightConeToken_ = consumes<reco::PFTauCollection>(PFTauTightCone_);
236  PFJetsToken_ = consumes<reco::PFJetCollection>(PFJets_);
237 
238  RecoPFTauToken_ = consumes<reco::PFTauCollection>(RecoPFTau_);
239  RecoPFTauDiscrByTanCOnePercentToken_ = consumes<reco::PFTauDiscriminator>(RecoPFTauDiscrByTanCOnePercent_);
240  RecoPFTauDiscrByTanCHalfPercentToken_ = consumes<reco::PFTauDiscriminator>(RecoPFTauDiscrByTanCHalfPercent_);
243  RecoPFTauDiscrByIsoToken_ = consumes<reco::PFTauDiscriminator>(RecoPFTauDiscrByIso_);
244  RecoPFTauAgainstMuonToken_ = consumes<reco::PFTauDiscriminator>(RecoPFTauAgainstMuon_);
245  RecoPFTauAgainstElecToken_ = consumes<reco::PFTauDiscriminator>(RecoPFTauAgainstElec_);
246 
247  hltresultsToken_ = consumes<edm::TriggerResults>(hltresults_);
248  l1extraemiToken_ = consumes<l1extra::L1EmParticleCollection>(m_l1extraemi);
249  l1extraemnToken_ = consumes<l1extra::L1EmParticleCollection>(m_l1extraemn);
250  l1extramuToken_ = consumes<l1extra::L1MuonParticleCollection>(m_l1extramu);
251 
252  l1extrajetcToken_ = consumes<l1extra::L1JetParticleCollection>(m_l1extrajetc);
253  l1extrajetfToken_ = consumes<l1extra::L1JetParticleCollection>(m_l1extrajetf);
254  l1extrajetToken_ = consumes<l1extra::L1JetParticleCollection>(m_l1extrajet);
255  l1extrataujetToken_ = consumes<l1extra::L1JetParticleCollection>(m_l1extrataujet);
256  l1extrametToken_ = consumes<l1extra::L1EtMissParticleCollection>(m_l1extramet);
257  l1extramhtToken_ = consumes<l1extra::L1EtMissParticleCollection>(m_l1extramht);
258  gtReadoutRecordToken_ = consumes<L1GlobalTriggerReadoutRecord>(gtReadoutRecord_);
259  gctBitCountsToken_ = consumes<L1GctHFBitCountsCollection>(gctBitCounts_);
260  gctRingSumsToken_ = consumes<L1GctHFRingEtSumsCollection>(gctRingSums_);
261 
262  mctruthToken_ = consumes<reco::CandidateView>(mctruth_);
263  simTracksToken_ = consumes<std::vector<SimTrack> >(simhits_);
264  simVerticesToken_ = consumes<std::vector<SimVertex> >(simhits_);
265  genEventInfoToken_ = consumes<GenEventInfoProduct>(genEventInfo_);
266 
267  MuCandTag2Token_ = consumes<reco::RecoChargedCandidateCollection>(MuCandTag2_);
268  MuNoVtxCandTag2Token_ = consumes<reco::RecoChargedCandidateCollection>(MuNoVtxCandTag2_);
269  MuCandTag3Token_ = consumes<reco::RecoChargedCandidateCollection>(MuCandTag3_);
270  oniaPixelTagToken_ = consumes<reco::RecoChargedCandidateCollection>(oniaPixelTag_);
271  oniaTrackTagToken_ = consumes<reco::RecoChargedCandidateCollection>(oniaTrackTag_);
272  TrackerMuonTagToken_ = consumes<reco::MuonCollection>(TrackerMuonTag_);
273  DiMuVtxToken_ = consumes<reco::VertexCollection>(DiMuVtx_);
274  MuIsolTag2Token_ = consumes<edm::ValueMap<bool> >(MuIsolTag2_);
275  MuIsolTag3Token_ = consumes<edm::ValueMap<bool> >(MuIsolTag3_);
276  MuTrkIsolTag3Token_ = consumes<edm::ValueMap<bool> >(MuTrkIsolTag3_);
277 
278  rawBJetsToken_ = consumes<edm::View<reco::Jet> >(m_rawBJets);
279  correctedBJetsToken_ = consumes<edm::View<reco::Jet> >(m_correctedBJets);
280  correctedBJetsL1FastJetToken_ = consumes<edm::View<reco::Jet> >(m_correctedBJetsL1FastJet);
281  pfBJetsToken_ = consumes<edm::View<reco::Jet> >(m_pfBJets);
282  lifetimeBJetsL25Token_ = consumes<reco::JetTagCollection>(m_lifetimeBJetsL25);
283  lifetimeBJetsL3Token_ = consumes<reco::JetTagCollection>(m_lifetimeBJetsL3);
284  lifetimeBJetsL3L1FastJetToken_ = consumes<reco::JetTagCollection>(m_lifetimeBJetsL25L1FastJet);
285  lifetimeBJetsL25L1FastJetToken_ = consumes<reco::JetTagCollection>(m_lifetimeBJetsL3L1FastJet);
286  lifetimePFBJetsL3Token_ = consumes<reco::JetTagCollection>(m_lifetimePFBJetsL3);
287  lifetimeBJetsL25SingleTrackToken_ = consumes<reco::JetTagCollection>(m_lifetimeBJetsL25SingleTrack);
288  lifetimeBJetsL3SingleTrackToken_ = consumes<reco::JetTagCollection>(m_lifetimeBJetsL3SingleTrack);
291  performanceBJetsL25Token_ = consumes<reco::JetTagCollection>(m_performanceBJetsL25);
292  performanceBJetsL3Token_ = consumes<reco::JetTagCollection>(m_performanceBJetsL3);
293  performanceBJetsL25L1FastJetToken_ = consumes<reco::JetTagCollection>(m_performanceBJetsL25L1FastJet);
294  performanceBJetsL3L1FastJetToken_ = consumes<reco::JetTagCollection>(m_performanceBJetsL3L1FastJet);
295 
296  ElectronToken_ = consumes<reco::GsfElectronCollection>(Electron_);
297  PhotonToken_ = consumes<reco::PhotonCollection>(Photon_);
298  ECALActivityToken_ = consumes<reco::RecoEcalCandidateCollection>(ECALActivity_);
299  ActivityEcalIsoToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(ActivityEcalIso_);
300  ActivityHcalIsoToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(ActivityHcalIso_);
301  ActivityTrackIsoToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(ActivityTrackIso_);
302  ActivityR9Token_ = consumes<reco::RecoEcalCandidateIsolationMap>(ActivityR9_);
303  ActivityR9IDToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(ActivityR9ID_);
304  ActivityHoverEHToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(ActivityHoverEH_);
305  EcalRecHitEBToken_ = consumes<EcalRecHitCollection>(edm::InputTag("hltEcalRegionalEgammaRecHit:EcalRecHitsEB"));
306  EcalRecHitEEToken_ = consumes<EcalRecHitCollection>(edm::InputTag("hltEcalRegionalEgammaRecHit:EcalRecHitsEE"));
307 
308  CandIsoToken_ = consumes<reco::RecoEcalCandidateCollection>(CandIso_);
309  CandNonIsoToken_ = consumes<reco::RecoEcalCandidateCollection>(CandNonIso_);
310  EcalIsoToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(EcalIso_);
311  EcalNonIsoToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(EcalNonIso_);
312  HcalIsoPhoToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(HcalIsoPho_);
313  HcalNonIsoPhoToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(HcalNonIsoPho_);
314  IsoPhoR9Token_ = consumes<reco::RecoEcalCandidateIsolationMap>(IsoR9_);
315  NonIsoPhoR9Token_ = consumes<reco::RecoEcalCandidateIsolationMap>(NonIsoR9_);
316  IsoPhoR9IDToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(IsoR9ID_);
317  NonIsoPhoR9IDToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(NonIsoR9ID_);
318  IsoPhoHoverEHToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(IsoHoverEH_);
319  NonIsoPhoHoverEHToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(NonIsoHoverEH_);
320  IsoElectronToken_ = consumes<reco::ElectronCollection>(IsoElectron_);
321  IsoEleTrackIsolToken_ = consumes<reco::ElectronIsolationMap>(IsoEleTrackIsol_);
322  L1IsoPixelSeedsToken_ = consumes<reco::ElectronSeedCollection>(L1IsoPixelSeeds_);
323  L1NonIsoPixelSeedsToken_ = consumes<reco::ElectronSeedCollection>(L1NonIsoPixelSeeds_);
324  NonIsoElectronToken_ = consumes<reco::ElectronCollection>(NonIsoElectron_);
325  IsoEleHcalToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(IsoEleHcal_);
326  NonIsoEleHcalToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(NonIsoEleHcal_);
327  NonIsoEleTrackIsolToken_ = consumes<reco::ElectronIsolationMap>(NonIsoEleTrackIsol_);
328  NonIsoPhoTrackIsolToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(NonIsoPhoTrackIsol_);
329  IsoPhoTrackIsolToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(IsoPhoTrackIsol_);
330  IsoEleR9Token_ = consumes<reco::RecoEcalCandidateIsolationMap>(IsoR9_);
331  NonIsoEleR9Token_ = consumes<reco::RecoEcalCandidateIsolationMap>(NonIsoR9_);
332  IsoEleR9IDToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(IsoR9ID_);
333  NonIsoEleR9IDToken_ = consumes<reco::RecoEcalCandidateIsolationMap>(NonIsoR9ID_);
334  HFECALClustersToken_ = consumes<reco::SuperClusterCollection>(HFECALClusters_);
335  HFElectronsToken_ = consumes<reco::RecoEcalCandidateCollection>(HFElectrons_);
336 
337  /*
338  EBRecHitToken_ = consumes<EBRecHitCollection>(EERecHitTag_);
339  EERecHitToken_ = consumes<EERecHitCollection>(EBRecHitTag_);
340  pi0EBRecHitToken_ = consumes<EBRecHitCollection>(pi0EERecHitTag_);
341  pi0EERecHitToken_ = consumes<EERecHitCollection>(pi0EBRecHitTag_);
342  HBHERecHitToken_ = consumes<HBHERecHitCollection>>(HBHERecHitTag_);
343  HORecHitToken_ = consumes<HORecHitCollection>(HORecHitTag_);
344  HFRecHitToken_ = consumes<HFRecHitCollection>(HFRecHitTag_);
345  */
346 
347  IsoPixelTrackL3Token_ = consumes<reco::IsolatedPixelTrackCandidateCollection>(IsoPixelTrackTagL3_);
348  IsoPixelTrackL2Token_ = consumes<reco::IsolatedPixelTrackCandidateCollection>(IsoPixelTrackTagL2_);
349  IsoPixelTrackVerticesToken_ = consumes<reco::VertexCollection>(IsoPixelTrackVerticesTag_);
350  PixelTracksL3Token_ = consumes<reco::RecoChargedCandidateCollection>(PixelTracksTagL3_);
351  PixelFEDSizeToken_ = consumes<FEDRawDataCollection>(PixelFEDSizeTag_);
352  PixelClustersToken_ = consumes<edmNew::DetSetVector<SiPixelCluster> >(PixelClustersTag_);
353 
354  VertexHLTToken_ = consumes<reco::VertexCollection>(VertexTagHLT_);
355  VertexOffline0Token_ = consumes<reco::VertexCollection>(VertexTagOffline0_);
356 
357  HFEMClusterShapeAssociationToken_ = consumes<reco::HFEMClusterShapeAssociationCollection>(edm::InputTag("hltHFEMClusters"));
358 
359 
360  // open the tree file
361  m_file = new TFile(_HistName.c_str(), "RECREATE");
362  if (m_file)
363  m_file->cd();
364 
365  // Initialize the tree
366  HltTree = new TTree("HltTree", "");
367 
368  treeWeight=xSection_*filterEff_;
369  std::cout << "\n Setting HltTree weight to " << treeWeight << " = " << xSection_ << "*" << filterEff_ << " (cross section * gen filter efficiency)\n" << std::endl;
370 
371  // Setup the different analysis
374  elm_analysis_.setup(conf, HltTree);
377  mct_analysis_.setup(conf, HltTree);
378  hlt_analysis_.setup(conf, HltTree);
379  vrt_analysisHLT_.setup(conf, HltTree, "HLT");
380  vrt_analysisOffline0_.setup(conf, HltTree, "Offline0");
382 }
383 
385 
386  hlt_analysis_.beginRun(run, c);
387 }
388 
389 // Boiler-plate "analyze" method declaration for an analyzer module.
391 
392  // To get information from the event setup, you must request the "Record"
393  // which contains it and then extract the object you need
394  //edm::ESHandle<CaloGeometry> geometry;
395  //iSetup.get<IdealGeometryRecord>().get(geometry);
396 
397  int iLumi = iEvent.luminosityBlock();
398  if (iLumi<firstLumi_) return;
399  if (lastLumi_ != -1 && iLumi>lastLumi_) return;
400 
401  // These declarations create handles to the types of records that you want
402  // to retrieve from event "iEvent".
405  edm::Handle<reco::CaloJetCollection> hltcorL1L2L3jets;
411  edm::Handle<CaloTowerCollection> caloTowersCleanerUpperR45;
412  edm::Handle<CaloTowerCollection> caloTowersCleanerLowerR45;
413  edm::Handle<CaloTowerCollection> caloTowersCleanerNoR45;
428  edm::Handle<l1extra::L1JetParticleCollection> l1extjetc, l1extjetf, l1extjet, l1exttaujet;
429  //edm::Handle<l1extra::L1JetParticleCollection> l1extjetc, l1extjetf, l1exttaujet;
434 
435  edm::Handle<reco::RecoChargedCandidateCollection> mucands2, mucands3, munovtxcands2;
436  edm::Handle<reco::RecoChargedCandidateCollection> oniaPixelCands, oniaTrackCands;
439  edm::Handle<edm::ValueMap<bool> > isoMap2, isoMap3, isoTrk10Map3;
443  edm::Handle<reco::PFTauCollection> pftausTightCone;
445 
446  // offline reco tau collection and discriminators
448  edm::Handle<reco::PFTauDiscriminator> theRecoPFTauDiscrByTanCOnePercent;
449  edm::Handle<reco::PFTauDiscriminator> theRecoPFTauDiscrByTanCHalfPercent;
450  edm::Handle<reco::PFTauDiscriminator> theRecoPFTauDiscrByTanCQuarterPercent;
451  edm::Handle<reco::PFTauDiscriminator> theRecoPFTauDiscrByTanCTenthPercent;
452  edm::Handle<reco::PFTauDiscriminator> theRecoPFTauDiscrByIsolation;
453  edm::Handle<reco::PFTauDiscriminator> theRecoPFTauDiscrAgainstMuon;
454  edm::Handle<reco::PFTauDiscriminator> theRecoPFTauDiscrAgainstElec;
455 
456 
457  // btag OpenHLT input collections
459  edm::Handle<edm::View<reco::Jet> > hCorrectedBJets;
460  edm::Handle<edm::View<reco::Jet> > hCorrectedBJetsL1FastJet;
462  edm::Handle<reco::JetTagCollection> hLifetimeBJetsL25;
463  edm::Handle<reco::JetTagCollection> hLifetimeBJetsL3L1FastJet;
464  edm::Handle<reco::JetTagCollection> hLifetimeBJetsL25L1FastJet;
465  edm::Handle<reco::JetTagCollection> hLifetimeBJetsL3;
466  edm::Handle<reco::JetTagCollection> hLifetimePFBJetsL3;
467  edm::Handle<reco::JetTagCollection> hLifetimeBJetsL25SingleTrack;
468  edm::Handle<reco::JetTagCollection> hLifetimeBJetsL3SingleTrack;
469  edm::Handle<reco::JetTagCollection> hLifetimeBJetsL25SingleTrackL1FastJet;
470  edm::Handle<reco::JetTagCollection> hLifetimeBJetsL3SingleTrackL1FastJet;
471  edm::Handle<reco::JetTagCollection> hPerformanceBJetsL25;
472  edm::Handle<reco::JetTagCollection> hPerformanceBJetsL3;
473  edm::Handle<reco::JetTagCollection> hPerformanceBJetsL25L1FastJet;
474  edm::Handle<reco::JetTagCollection> hPerformanceBJetsL3L1FastJet;
475 
476  // egamma OpenHLT input collections
483  edm::Handle<reco::RecoEcalCandidateIsolationMap> photonHoverEHIsoHandle;
484  edm::Handle<reco::RecoEcalCandidateIsolationMap> photonHoverEHNonIsoHandle;
485  edm::Handle<reco::ElectronCollection> electronIsoHandle;
486  edm::Handle<reco::ElectronCollection> electronNonIsoHandle;
488  edm::Handle<reco::RecoEcalCandidateIsolationMap> electronR9NonIsoHandle;
490  edm::Handle<reco::RecoEcalCandidateIsolationMap> electronR9IDNonIsoHandle;
491  edm::Handle<reco::ElectronIsolationMap> NonIsoTrackEleIsolMap;
494  edm::Handle<reco::ElectronSeedCollection> L1NonIsoPixelSeedsMap;
505  edm::Handle<reco::SuperClusterCollection> electronHFClusterHandle;
506  edm::Handle<reco::RecoEcalCandidateCollection> electronHFElectronHandle;
507  // ECAL Activity
515 
516 
517  // AlCa OpenHLT input collections
518  /*
519  edm::Handle<EBRecHitCollection> ebrechits;
520  edm::Handle<EERecHitCollection> eerechits;
521  edm::Handle<EBRecHitCollection> pi0ebrechits;
522  edm::Handle<EERecHitCollection> pi0eerechits;
523  edm::Handle<HBHERecHitCollection> hbherechits;
524  edm::Handle<HORecHitCollection> horechits;
525  edm::Handle<HFRecHitCollection> hfrechits;
526  */
527 
530  edm::Handle<reco::VertexCollection> isopixeltrackPixVertices;
534 
535  // Reco vertex collection
537  edm::Handle<reco::VertexCollection> recoVertexsOffline0;
538 
539  // new stuff for the egamma EleId
540  EcalClusterLazyTools lazyTools( iEvent, iSetup, EcalRecHitEBToken_, EcalRecHitEEToken_ );
541 
542  edm::Handle<reco::HFEMClusterShapeAssociationCollection> electronHFClusterAssociation;
543  iEvent.getByToken(HFEMClusterShapeAssociationToken_,electronHFClusterAssociation);
544 
545  edm::ESHandle<CaloTowerTopology> caloTowerTopology;
546  iSetup.get<HcalRecNumberingRecord>().get(caloTowerTopology);
547 
548  edm::ESHandle<MagneticField> theMagField;
549  iSetup.get<IdealMagneticFieldRecord>().get(theMagField);
550 
551  edm::Handle<reco::BeamSpot> recoBeamSpotHandle;
552 
553  // get EventSetup stuff needed for the AlCa pi0 path
554  // edm::ESHandle< EcalElectronicsMapping > ecalmapping;
555  // iSetup.get< EcalMappingRcd >().get(ecalmapping);
556 
557  // edm::ESHandle<CaloGeometry> geoHandle;
558  // iSetup.get<CaloGeometryRecord>().get(geoHandle);
559 
560  // edm::ESHandle<CaloTopology> pTopology;
561  // iSetup.get<CaloTopologyRecord>().get(pTopology);
562 
563  // edm::ESHandle<L1CaloGeometry> l1CaloGeom ;
564  // iSetup.get<L1CaloGeometryRecord>().get(l1CaloGeom) ;
565 
566 
567  // extract the collections from the event, check their validity and log which are missing
568  std::vector<MissingCollectionInfo> missing;
569 
570  //get the BeamSpot
571  getCollection( iEvent, missing, recoBeamSpotHandle, BSProducer_ , BSProducerToken_ , "Beam Spot handle");
572  // gets its position
573  reco::BeamSpot::Point BSPosition(0,0,0);
574  BSPosition = recoBeamSpotHandle->position();
575 
576  getCollection( iEvent, missing, hltjets, hltjets_, hltjetsToken_, kHLTjets );
577  getCollection( iEvent, missing, hltcorjets, hltcorjets_, hltcorjetsToken_, kHLTCorjets );
578  getCollection( iEvent, missing, hltcorL1L2L3jets,hltcorL1L2L3jets_, hltcorL1L2L3jetsToken_, kHLTCorL1L2L3jets );
579  getCollection( iEvent, missing, rho, rho_, rhoToken_, kRho );
580  getCollection( iEvent, missing, recjets, recjets_, recjetsToken_, kRecjets );
581  getCollection( iEvent, missing, reccorjets, reccorjets_, reccorjetsToken_, kRecCorjets );
582  getCollection( iEvent, missing, genjets, genjets_, genjetsToken_, kGenjets );
583  getCollection( iEvent, missing, recmet, recmet_, recmetToken_, kRecmet );
584  getCollection( iEvent, missing, recoPFMet, recoPFMet_, recoPFMetToken_, kPFMet );
585  getCollection( iEvent, missing, genmet, genmet_, genmetToken_, kGenmet );
586  getCollection( iEvent, missing, caloTowers, calotowers_, calotowersToken_, kCaloTowers );
587  getCollection( iEvent, missing, caloTowersCleanerUpperR45, calotowersUpperR45_, calotowersUpperR45Token_, kCaloTowersUpperR45 );
588  getCollection( iEvent, missing, caloTowersCleanerLowerR45, calotowersLowerR45_, calotowersLowerR45Token_, kCaloTowersLowerR45 );
589  getCollection( iEvent, missing, caloTowersCleanerNoR45, calotowersNoR45_, calotowersNoR45Token_, kCaloTowersNoR45 );
590  getCollection( iEvent, missing, ht, ht_, htToken_, kHt );
591  getCollection( iEvent, missing, recoPFJets, recoPFJets_, recoPFJetsToken_, kRecoPFJets );
592  getCollection( iEvent, missing, muon, muon_, muonToken_, kMuon );
593  getCollection( iEvent, missing, pfmuon, pfmuon_, pfmuonToken_, kpfMuon );
594  getCollection( iEvent, missing, l2taus, L2Tau_, L2TauToken_, kTaus );
595  getCollection( iEvent, missing, taus, HLTTau_, HLTTauToken_, kTaus );
596  getCollection( iEvent, missing, pftaus, PFTau_, PFTauToken_, kPFTaus );
597  getCollection( iEvent, missing, pftausTightCone, PFTauTightCone_, PFTauTightConeToken_, kPFTausTightCone );
598  getCollection( iEvent, missing, pfjets, PFJets_, PFJetsToken_, kPFJets );
599  getCollection( iEvent, missing, recoPftaus, RecoPFTau_, RecoPFTauToken_, kRecoPFTaus );
604  getCollection( iEvent, missing, theRecoPFTauDiscrByIsolation, RecoPFTauDiscrByIso_, RecoPFTauDiscrByIsoToken_, ktheRecoPFTauDiscrByIsolation);
605  getCollection( iEvent, missing, theRecoPFTauDiscrAgainstMuon, RecoPFTauAgainstMuon_, RecoPFTauAgainstMuonToken_, ktheRecoPFTauDiscrAgainstMuon);
606  getCollection( iEvent, missing, theRecoPFTauDiscrAgainstElec, RecoPFTauAgainstElec_, RecoPFTauAgainstElecToken_, ktheRecoPFTauDiscrAgainstElec);
607  getCollection( iEvent, missing, hltresults, hltresults_, hltresultsToken_, kHltresults );
608  getCollection( iEvent, missing, l1extemi, m_l1extraemi, l1extraemiToken_, kL1extemi );
609  getCollection( iEvent, missing, l1extemn, m_l1extraemn, l1extraemnToken_, kL1extemn );
610  getCollection( iEvent, missing, l1extmu, m_l1extramu, l1extramuToken_, kL1extmu );
611  getCollection( iEvent, missing, l1extjetc, m_l1extrajetc, l1extrajetcToken_, kL1extjetc );
612  getCollection( iEvent, missing, l1extjetf, m_l1extrajetf, l1extrajetfToken_, kL1extjetf );
613  getCollection( iEvent, missing, l1extjet, m_l1extrajet, l1extrajetToken_, kL1extjet );
614  getCollection( iEvent, missing, l1exttaujet, m_l1extrataujet, l1extrataujetToken_, kL1exttaujet );
615  getCollection( iEvent, missing, l1extmet, m_l1extramet, l1extrametToken_, kL1extmet );
616  getCollection( iEvent, missing, l1extmht, m_l1extramht, l1extramhtToken_, kL1extmht );
617  getCollection( iEvent, missing, l1GtRR, gtReadoutRecord_, gtReadoutRecordToken_, kL1GtRR );
618  getCollection( iEvent, missing, gctBitCounts, gctBitCounts_, gctBitCountsToken_, kL1GctBitCounts );
619  getCollection( iEvent, missing, gctRingSums, gctRingSums_, gctRingSumsToken_, kL1GctRingSums );
620  getCollection( iEvent, missing, mctruth, mctruth_, mctruthToken_, kMctruth );
621  getCollection( iEvent, missing, simTracks, simhits_, simTracksToken_, kSimhit );
622  getCollection( iEvent, missing, simVertices, simhits_, simVerticesToken_, kSimhit );
623  getCollection( iEvent, missing, genEventInfo, genEventInfo_, genEventInfoToken_, kGenEventInfo );
624  getCollection( iEvent, missing, mucands2, MuCandTag2_, MuCandTag2Token_, kMucands2 );
625  getCollection( iEvent, missing, munovtxcands2, MuNoVtxCandTag2_, MuNoVtxCandTag2Token_, kMunovtxcands2 );
626  getCollection( iEvent, missing, mucands3, MuCandTag3_, MuCandTag3Token_, kMucands3 );
627  getCollection( iEvent, missing, oniaPixelCands, oniaPixelTag_, oniaPixelTagToken_, kOniaPixelCands );
628  getCollection( iEvent, missing, oniaTrackCands, oniaTrackTag_, oniaTrackTagToken_, kOniaTrackCands );
629  getCollection( iEvent, missing, trkmucands, TrackerMuonTag_, TrackerMuonTagToken_, kTrkMucands );
630  getCollection( iEvent, missing, dimuvtxcands3, DiMuVtx_, DiMuVtxToken_, kDimuvtxcands3 );
631  getCollection( iEvent, missing, isoMap2, MuIsolTag2_, MuIsolTag2Token_, kIsoMap2 );
632  getCollection( iEvent, missing, isoMap3, MuIsolTag3_, MuIsolTag3Token_, kIsoMap3 );
633  getCollection( iEvent, missing, isoTrk10Map3, MuTrkIsolTag3_, MuTrkIsolTag3Token_, kIsoTrk10Map3 );
634  getCollection( iEvent, missing, hRawBJets, m_rawBJets, rawBJetsToken_, kBTagJets );
635  getCollection( iEvent, missing, hCorrectedBJets, m_correctedBJets, correctedBJetsToken_, kBTagCorrectedJets );
637  getCollection( iEvent, missing, hPFBJets, m_pfBJets, pfBJetsToken_, kBTagPFJets );
638  getCollection( iEvent, missing, hLifetimeBJetsL25, m_lifetimeBJetsL25, lifetimeBJetsL25Token_, kBTagLifetimeBJetsL25 );
639  getCollection( iEvent, missing, hLifetimeBJetsL3, m_lifetimeBJetsL3, lifetimeBJetsL3Token_, kBTagLifetimeBJetsL3 );
642  getCollection( iEvent, missing, hLifetimePFBJetsL3, m_lifetimePFBJetsL3, lifetimePFBJetsL3Token_, kBTagLifetimePFBJetsL3 );
648  getCollection( iEvent, missing, hPerformanceBJetsL3, m_performanceBJetsL3, performanceBJetsL3Token_, kBTagPerformanceBJetsL3 );
651  getCollection( iEvent, missing, electrons, Electron_, ElectronToken_, kElectrons );
652  getCollection( iEvent, missing, photons, Photon_, PhotonToken_, kPhotons );
653  getCollection( iEvent, missing, ActivityCandsHandle, ECALActivity_, ECALActivityToken_, kECALActivity);
654  getCollection( iEvent, missing, ActivityEcalIsoHandle, ActivityEcalIso_, ActivityEcalIsoToken_, kECALActivityEcalIso);
655  getCollection( iEvent, missing, ActivityHcalIsoHandle, ActivityHcalIso_, ActivityHcalIsoToken_, kECALActivityHcalIso);
656  getCollection( iEvent, missing, ActivityTrackIsoHandle, ActivityTrackIso_, ActivityTrackIsoToken_, kECALActivityTrackIso);
657  getCollection( iEvent, missing, ActivityR9Handle, ActivityR9_, ActivityR9Token_, kECALActivityR9);
658  getCollection( iEvent, missing, ActivityR9IDHandle, ActivityR9ID_, ActivityR9IDToken_, kECALActivityR9ID);
659  getCollection( iEvent, missing, ActivityHoverEHHandle, ActivityHoverEH_, ActivityHoverEHToken_, kECALActivityHoverEH);
660 
661  //Read offline eleID results
662  std::vector<edm::Handle<edm::ValueMap<float> > > eIDValueMap(4);
663  // edm::InputTag electronLabelRobustTight_(std::string("eidRobustTight"));
664  // edm::InputTag electronLabelTight_(std::string("eidTight"));
665  // edm::InputTag electronLabelRobustLoose_(std::string("eidRobustLoose"));
666  // edm::InputTag electronLabelLoose_(std::string("eidLoose"));
667  // getCollection( iEvent, missing, eIDValueMap[0], electronLabelRobustLoose_ , "EleId Robust-Loose");
668  // getCollection( iEvent, missing, eIDValueMap[1], electronLabelRobustTight_ , "EleId Robust-Tight");
669  // getCollection( iEvent, missing, eIDValueMap[2], electronLabelLoose_ , "EleId Loose");
670  // getCollection( iEvent, missing, eIDValueMap[3], electronLabelTight_ , "EleId Tight");
671 
672  //read all the OpenHLT egamma collections
673  getCollection( iEvent, missing, recoIsolecalcands, CandIso_, CandIsoToken_, kCandIso);
674  getCollection( iEvent, missing, recoNonIsolecalcands, CandNonIso_, CandNonIsoToken_, kCandNonIso);
675  getCollection( iEvent, missing, EcalIsolMap, EcalIso_, EcalIsoToken_, kEcalIso);
676  getCollection( iEvent, missing, EcalNonIsolMap, EcalNonIso_, EcalNonIsoToken_, kEcalNonIso);
677  getCollection( iEvent, missing, HcalIsolMap, HcalIsoPho_, HcalIsoPhoToken_, kHcalIsoPho);
678  getCollection( iEvent, missing, HcalNonIsolMap, HcalNonIsoPho_, HcalNonIsoPhoToken_, kHcalNonIsoPho);
679  getCollection( iEvent, missing, photonR9IsoHandle, IsoR9_, IsoPhoR9Token_, kIsoR9);
680  getCollection( iEvent, missing, photonR9NonIsoHandle, NonIsoR9_, NonIsoPhoR9Token_, kNonIsoR9);
681  getCollection( iEvent, missing, photonR9IDIsoHandle, IsoR9ID_, IsoPhoR9IDToken_, kIsoR9ID);
682  getCollection( iEvent, missing, photonR9IDNonIsoHandle, NonIsoR9ID_, NonIsoPhoR9IDToken_, kNonIsoR9ID);
683  getCollection( iEvent, missing, photonHoverEHIsoHandle, IsoHoverEH_, IsoPhoHoverEHToken_, kIsoHoverEH);
684  getCollection( iEvent, missing, photonHoverEHNonIsoHandle,NonIsoHoverEH_, NonIsoPhoHoverEHToken_, kNonIsoHoverEH);
685  getCollection( iEvent, missing, electronIsoHandle, IsoElectron_, IsoElectronToken_, kIsoElectron);
686  getCollection( iEvent, missing, TrackEleIsolMap, IsoEleTrackIsol_, IsoEleTrackIsolToken_, kIsoEleTrackIsol);
687  getCollection( iEvent, missing, L1IsoPixelSeedsMap, L1IsoPixelSeeds_, L1IsoPixelSeedsToken_, kL1IsoPixelSeeds);
688  getCollection( iEvent, missing, L1NonIsoPixelSeedsMap, L1NonIsoPixelSeeds_, L1NonIsoPixelSeedsToken_, kL1NonIsoPixelSeeds);
689  getCollection( iEvent, missing, electronNonIsoHandle, NonIsoElectron_, NonIsoElectronToken_, kNonIsoElectron);
690  getCollection( iEvent, missing, HcalEleIsolMap, IsoEleHcal_, IsoEleHcalToken_, kIsoEleHcal);
691  getCollection( iEvent, missing, HcalEleNonIsolMap, NonIsoEleHcal_, NonIsoEleHcalToken_, kIsoEleHcal);
692  getCollection( iEvent, missing, NonIsoTrackEleIsolMap, NonIsoEleTrackIsol_, NonIsoEleTrackIsolToken_, kNonIsoEleTrackIsol);
694  getCollection( iEvent, missing, TrackIsolMap, IsoPhoTrackIsol_, IsoPhoTrackIsolToken_, kIsoPhoTrackIsol);
695  getCollection( iEvent, missing, electronR9IsoHandle, IsoR9_, IsoEleR9Token_, kIsoR9);
696  getCollection( iEvent, missing, electronR9NonIsoHandle, NonIsoR9_, NonIsoEleR9Token_, kNonIsoR9);
697  getCollection( iEvent, missing, electronR9IDIsoHandle, IsoR9ID_, IsoEleR9IDToken_, kIsoR9ID);
698  getCollection( iEvent, missing, electronR9IDNonIsoHandle, NonIsoR9ID_, NonIsoEleR9IDToken_, kNonIsoR9ID);
699  getCollection( iEvent, missing, electronHFClusterHandle, HFECALClusters_, HFECALClustersToken_, kHFECALClusters);
700  getCollection( iEvent, missing, electronHFElectronHandle, HFElectrons_, HFElectronsToken_, kHFElectrons);
701  /*
702  getCollection( iEvent, missing, eerechits, EERecHitTag_, EERecHitToken_, kEErechits );
703  getCollection( iEvent, missing, ebrechits, EBRecHitTag_, EBRecHitToken_, kEBrechits );
704  getCollection( iEvent, missing, pi0eerechits, pi0EERecHitTag_, pi0EERecHitToken_, kpi0EErechits );
705  getCollection( iEvent, missing, pi0ebrechits, pi0EBRecHitTag_, pi0EBRecHitToken_, kpi0EBrechits );
706  getCollection( iEvent, missing, hbherechits, HBHERecHitTag_, HBHERecHitToken_, kHBHErechits );
707  getCollection( iEvent, missing, horechits, HORecHitTag_, HORecHitToken_, kHOrechits );
708  getCollection( iEvent, missing, hfrechits, HFRecHitTag_, HFRecHitToken_, kHFrechits );
709  */
710  getCollection( iEvent, missing, isopixeltracksL3, IsoPixelTrackTagL3_, IsoPixelTrackL3Token_, kIsoPixelTracksL3 );
711  getCollection( iEvent, missing, isopixeltracksL2, IsoPixelTrackTagL2_, IsoPixelTrackL2Token_, kIsoPixelTracksL2 );
712  getCollection( iEvent, missing, isopixeltrackPixVertices, IsoPixelTrackVerticesTag_, IsoPixelTrackVerticesToken_, kIsoPixelTrackVertices );
713  getCollection( iEvent, missing, pixeltracksL3, PixelTracksTagL3_, PixelTracksL3Token_, kPixelTracksL3 );
714  getCollection( iEvent, missing, pixelfedsize, PixelFEDSizeTag_, PixelFEDSizeToken_, kPixelFEDSize );
715  getCollection( iEvent, missing, pixelclusters, PixelClustersTag_, PixelClustersToken_, kPixelClusters );
716  getCollection( iEvent, missing, recoVertexsHLT, VertexTagHLT_, VertexHLTToken_, kRecoVerticesHLT );
717  getCollection( iEvent, missing, recoVertexsOffline0, VertexTagOffline0_, VertexOffline0Token_, kRecoVerticesOffline0 );
718 
719  double ptHat=-1.;
720  if (genEventInfo.isValid()) {ptHat=genEventInfo->qScale();}
721 
722 
723  // print missing collections
724  if (not missing.empty() and (errCnt < errMax())) {
725  errCnt++;
726  std::stringstream out;
727  out << "OpenHLT analyser - missing collections (This message is for information only. RECO collections will always be missing when running on RAW, MC collections will always be missing when running on data):";
728  BOOST_FOREACH(const MissingCollectionInfo & entry, missing)
729  out << "\n\t" << entry.first << ": " << entry.second->encode();
730  edm::LogPrint("OpenHLT") << out.str() << std::endl;
731  if (errCnt == errMax())
732  edm::LogWarning("OpenHLT") << "Maximum error count reached -- No more messages will be printed.";
733  }
734 
735  // run the analysis, passing required event fragments
736  jet_analysis_.analyze(iEvent,
737  hltjets,
738  hltcorjets,
739  hltcorL1L2L3jets,
740  rho,
741  recjets,
742  reccorjets,
743  genjets,
744  recmet,
745  genmet,
746  ht,
747  l2taus,
748  taus,
749  pftaus,
750  pftausTightCone,
751  pfjets,
752  recoPftaus,
753  theRecoPFTauDiscrByTanCOnePercent,
754  theRecoPFTauDiscrByTanCHalfPercent,
755  theRecoPFTauDiscrByTanCQuarterPercent,
756  theRecoPFTauDiscrByTanCTenthPercent,
757  theRecoPFTauDiscrByIsolation,
758  theRecoPFTauDiscrAgainstMuon,
759  theRecoPFTauDiscrAgainstElec,
760  recoPFJets,
761  caloTowers,
762  caloTowersCleanerUpperR45,
763  caloTowersCleanerLowerR45,
764  caloTowersCleanerNoR45,
765  &*caloTowerTopology,
766  recoPFMet,
768  _MinPtGammas,
770  HltTree);
771 
773  muon,
774  pfmuon,
775  l1extmu,
776  mucands2,
777  isoMap2,
778  mucands3,
779  isoMap3,
780  isoTrk10Map3,
781  oniaPixelCands,
782  oniaTrackCands,
783  dimuvtxcands3,
784  munovtxcands2,
785  trkmucands,
786  theMagField,
787  recoBeamSpotHandle,
788  // BSPosition,
789  HltTree);
790 
792  electrons,
793  photons,
794  electronIsoHandle,
795  electronNonIsoHandle,
796  NonIsoTrackEleIsolMap,
797  TrackEleIsolMap,
798  L1IsoPixelSeedsMap,
799  L1NonIsoPixelSeedsMap,
800  recoIsolecalcands,
801  recoNonIsolecalcands,
802  EcalIsolMap,
803  EcalNonIsolMap,
804  HcalEleIsolMap,
805  HcalEleNonIsolMap,
806  HcalIsolMap,
807  HcalNonIsolMap,
808  TrackIsolMap,
809  TrackNonIsolMap,
810  lazyTools,
811  theMagField,
812  BSPosition,
813  eIDValueMap,
814  photonR9IsoHandle,
815  photonR9NonIsoHandle,
816  electronR9IsoHandle,
817  electronR9NonIsoHandle,
818  photonHoverEHIsoHandle,
819  photonHoverEHNonIsoHandle,
820  photonR9IDIsoHandle,
821  photonR9IDNonIsoHandle,
822  electronR9IDIsoHandle,
823  electronR9IDNonIsoHandle,
824  electronHFClusterHandle,
825  electronHFElectronHandle,
826  electronHFClusterAssociation,
827  ActivityCandsHandle,
828  ActivityEcalIsoHandle,
829  ActivityHcalIsoHandle,
830  ActivityTrackIsoHandle,
831  ActivityR9Handle,
832  ActivityR9IDHandle,
833  ActivityHoverEHHandle,
834  HltTree);
835 
837  mctruth,
838  ptHat,
839  simTracks,
840  simVertices,
841  HltTree);
843  isopixeltracksL3,
844  isopixeltracksL2,
845  isopixeltrackPixVertices,
846  pixeltracksL3,
847  pixelfedsize,
848  pixelclusters,
849  HltTree);
850 
852  hltresults,
853  l1extemi,
854  l1extemn,
855  l1extmu,
856  l1extjetc,
857  l1extjetf,
858  l1extjet,
859  l1exttaujet,
860  l1extmet,
861  l1extmht,
862  l1GtRR,
863  gctBitCounts,
864  gctRingSums,
865  iSetup,
866  iEvent,
867  HltTree);
868 
870  hRawBJets,
871  hCorrectedBJets,
872  hCorrectedBJetsL1FastJet,
873  hPFBJets,
874  hLifetimeBJetsL25,
875  hLifetimeBJetsL3,
876  hLifetimeBJetsL25L1FastJet,
877  hLifetimeBJetsL3L1FastJet,
878  hLifetimePFBJetsL3,
879  hLifetimeBJetsL25SingleTrack,
880  hLifetimeBJetsL3SingleTrack,
881  hLifetimeBJetsL25SingleTrackL1FastJet,
882  hLifetimeBJetsL3SingleTrackL1FastJet,
883  hPerformanceBJetsL25,
884  hPerformanceBJetsL3,
885  hPerformanceBJetsL25L1FastJet,
886  hPerformanceBJetsL3L1FastJet,
887  HltTree);
888 
890  recoVertexsHLT,
891  HltTree);
892 
894  recoVertexsOffline0,
895  HltTree);
896 
897  evt_header_.analyze(iEvent, HltTree);
898 
899 
900  // std::cout << " Ending Event Analysis" << std::endl;
901  // After analysis, fill the variables tree
902  if (m_file)
903  m_file->cd();
904  HltTree->Fill();
905 }
906 
907 // "endJob" is an inherited method that you may implement to do post-EOF processing and produce final output.
909 
910  if (m_file)
911  m_file->cd();
912 
914  TList *list = HltTree->GetUserInfo();
915  list->Add(new TObjString(thepset.dump().c_str()));
916 
917  HltTree->SetWeight(treeWeight);
918  HltTree->Write();
919  delete HltTree;
920  HltTree = 0;
921 
922  if (m_file) { // if there was a tree file...
923  m_file->Write(); // write out the branches
924  delete m_file; // close and delete the file
925  m_file = 0; // set to zero to clean up
926  }
927 
928 }
const char * kL1extjet
Definition: HLTMessages.cc:40
edm::InputTag L1IsoPixelSeeds_
Definition: HLTAnalyzer.h:304
const char * kDimuvtxcands3
Definition: HLTMessages.cc:60
const char * kECALActivityR9ID
Definition: HLTMessages.cc:133
HLTInfo hlt_analysis_
Definition: HLTAnalyzer.h:74
edm::EDGetTokenT< reco::RecoEcalCandidateCollection > ECALActivityToken_
Definition: HLTAnalyzer.h:192
const char * kGenmet
Definition: HLTMessages.cc:13
TFile * m_file
Definition: HLTAnalyzer.h:354
T getParameter(std::string const &) const
dictionary missing
Definition: combine.py:4
void analyze(edm::Event const &iEvent, TTree *tree)
Definition: EventHeader.cc:46
T getUntrackedParameter(std::string const &, T const &) const
const char * kECALActivityR9
Definition: HLTMessages.cc:132
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > EcalIsoToken_
Definition: HLTAnalyzer.h:178
edm::EDGetTokenT< reco::PFTauDiscriminator > RecoPFTauAgainstMuonToken_
Definition: HLTAnalyzer.h:135
const char * kBTagLifetimeBJetsL25SingleTrack
Definition: HLTMessages.cc:72
edm::EDGetTokenT< reco::PFTauDiscriminator > RecoPFTauDiscrByTanCOnePercentToken_
Definition: HLTAnalyzer.h:130
edm::InputTag IsoEleHcal_
Definition: HLTAnalyzer.h:300
edm::EDGetTokenT< l1extra::L1EmParticleCollection > l1extraemnToken_
Definition: HLTAnalyzer.h:109
edm::InputTag L1NonIsoPixelSeeds_
Definition: HLTAnalyzer.h:305
edm::EDGetTokenT< edm::View< reco::Jet > > correctedBJetsL1FastJetToken_
Definition: HLTAnalyzer.h:141
const char * kIsoMap3
Definition: HLTMessages.cc:55
const char * kElectrons
Definition: HLTMessages.cc:83
edm::EDGetTokenT< L1GctHFBitCountsCollection > gctBitCountsToken_
Definition: HLTAnalyzer.h:114
edm::InputTag MuTrkIsolTag3_
Definition: HLTAnalyzer.h:252
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > gtReadoutRecordToken_
Definition: HLTAnalyzer.h:113
const char * kNonIsoR9
Definition: HLTMessages.cc:103
edm::InputTag gctRingSums_
Definition: HLTAnalyzer.h:250
edm::InputTag MuIsolTag3_
Definition: HLTAnalyzer.h:252
edm::InputTag genmet_
Definition: HLTAnalyzer.h:232
edm::EDGetTokenT< reco::JetTagCollection > performanceBJetsL3Token_
Definition: HLTAnalyzer.h:153
edm::InputTag ActivityR9_
Definition: HLTAnalyzer.h:319
edm::InputTag m_lifetimeBJetsL3SingleTrack
Definition: HLTAnalyzer.h:279
edm::InputTag calotowersUpperR45_
Definition: HLTAnalyzer.h:233
const char * kHLTjets
Definition: HLTMessages.cc:4
edm::InputTag m_performanceBJetsL25L1FastJet
Definition: HLTAnalyzer.h:284
const char * kL1exttaujet
Definition: HLTMessages.cc:41
double treeWeight
Definition: HLTAnalyzer.h:79
const char * kNonIsoPhoTrackIsol
Definition: HLTMessages.cc:92
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > PixelTracksL3Token_
Definition: HLTAnalyzer.h:215
const char * kCaloTowersNoR45
Definition: HLTMessages.cc:17
edm::EDGetTokenT< EcalRecHitCollection > EcalRecHitEBToken_
Definition: HLTAnalyzer.h:188
edm::EDGetTokenT< reco::PFJetCollection > recoPFJetsToken_
Definition: HLTAnalyzer.h:101
edm::InputTag PFJets_
Definition: HLTAnalyzer.h:255
edm::InputTag HFElectrons_
Definition: HLTAnalyzer.h:313
edm::EDGetTokenT< reco::VertexCollection > DiMuVtxToken_
Definition: HLTAnalyzer.h:119
edm::EDGetTokenT< reco::CandidateView > mctruthToken_
Definition: HLTAnalyzer.h:102
void setup(edm::ConsumesCollector &&iC, TTree *tree)
Definition: EventHeader.cc:26
edm::EDGetTokenT< edm::ValueMap< bool > > MuIsolTag2Token_
Definition: HLTAnalyzer.h:121
const char * kHltresults
Definition: HLTMessages.cc:34
const char * kHcalIsoPho
Definition: HLTMessages.cc:89
edm::InputTag PixelFEDSizeTag_
Definition: HLTAnalyzer.h:341
const char * kPixelClusters
Definition: HLTMessages.cc:124
edm::InputTag Photon_
Definition: HLTAnalyzer.h:289
const char * kPFTaus
Definition: HLTMessages.cc:23
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTInfo.cc:53
const char * kPhotons
Definition: HLTMessages.cc:84
edm::EDGetTokenT< edmNew::DetSetVector< SiPixelCluster > > PixelClustersToken_
Definition: HLTAnalyzer.h:217
edm::InputTag hltcorL1L2L3jets_
Definition: HLTAnalyzer.h:234
const char * kOniaPixelCands
Definition: HLTMessages.cc:58
const char * kL1extmht
Definition: HLTMessages.cc:43
edm::EDGetTokenT< l1extra::L1JetParticleCollection > l1extrajetToken_
Definition: HLTAnalyzer.h:111
edm::InputTag RecoPFTauDiscrByTanCQuarterPercent_
Definition: HLTAnalyzer.h:261
edm::InputTag m_l1extramet
Definition: HLTAnalyzer.h:245
edm::InputTag VertexTagHLT_
Definition: HLTAnalyzer.h:345
edm::InputTag HcalIsoPho_
Definition: HLTAnalyzer.h:294
edm::InputTag EcalIso_
Definition: HLTAnalyzer.h:292
std::string dump(unsigned int indent=0) const
TTree * HltTree
Definition: HLTAnalyzer.h:57
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:462
const char * kNonIsoElectron
Definition: HLTMessages.cc:96
edm::EDGetTokenT< L1GctHFRingEtSumsCollection > gctRingSumsToken_
Definition: HLTAnalyzer.h:115
edm::EDGetTokenT< reco::JetTagCollection > lifetimeBJetsL3L1FastJetToken_
Definition: HLTAnalyzer.h:144
edm::EDGetTokenT< reco::PFJetCollection > PFJetsToken_
Definition: HLTAnalyzer.h:126
edm::InputTag calotowersNoR45_
Definition: HLTAnalyzer.h:233
EventHeader evt_header_
Default analyses.
Definition: HLTAnalyzer.h:64
const char * kECALActivityTrackIso
Definition: HLTMessages.cc:131
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > NonIsoEleHcalToken_
Definition: HLTAnalyzer.h:183
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > NonIsoPhoR9IDToken_
Definition: HLTAnalyzer.h:163
const char * kSimhit
Definition: HLTMessages.cc:49
edm::InputTag IsoEleTrackIsol_
Definition: HLTAnalyzer.h:302
edm::EDGetTokenT< reco::CaloMETCollection > recmetToken_
Definition: HLTAnalyzer.h:97
void analyze(const edm::Handle< edm::TriggerResults > &hltresults, const edm::Handle< l1extra::L1EmParticleCollection > &l1extemi, const edm::Handle< l1extra::L1EmParticleCollection > &l1extemn, const edm::Handle< l1extra::L1MuonParticleCollection > &l1extmu, const edm::Handle< l1extra::L1JetParticleCollection > &l1extjetc, const edm::Handle< l1extra::L1JetParticleCollection > &l1extjetf, const edm::Handle< l1extra::L1JetParticleCollection > &l1extjet, const edm::Handle< l1extra::L1JetParticleCollection > &l1exttaujet, const edm::Handle< l1extra::L1EtMissParticleCollection > &l1extmet, const edm::Handle< l1extra::L1EtMissParticleCollection > &l1extmht, const edm::Handle< L1GlobalTriggerReadoutRecord > &l1GTRR, const edm::Handle< L1GctHFBitCountsCollection > &gctBitCounts, const edm::Handle< L1GctHFRingEtSumsCollection > &gctRingSums, edm::EventSetup const &eventSetup, edm::Event const &iEvent, TTree *tree)
Definition: HLTInfo.cc:189
edm::InputTag m_pfBJets
Definition: HLTAnalyzer.h:272
edm::EDGetTokenT< reco::CaloJetCollection > hltjetsToken_
Definition: HLTAnalyzer.h:86
const char * kIsoPixelTrackVertices
Definition: HLTMessages.cc:121
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > EcalNonIsoToken_
Definition: HLTAnalyzer.h:179
virtual void endJob()
Definition: HLTAnalyzer.cc:908
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > ActivityEcalIsoToken_
Definition: HLTAnalyzer.h:193
void analyze(const edm::Handle< reco::IsolatedPixelTrackCandidateCollection > &IsoPixelTrackL3, const edm::Handle< reco::IsolatedPixelTrackCandidateCollection > &IsoPixelTrackL2, const edm::Handle< reco::VertexCollection > &pixelVertices, const edm::Handle< reco::RecoChargedCandidateCollection > &PixelTracksL3, const edm::Handle< FEDRawDataCollection > hfedraw, const edm::Handle< edmNew::DetSetVector< SiPixelCluster > > &pixelClusters, TTree *tree)
Definition: HLTTrack.cc:77
edm::InputTag Electron_
Definition: HLTAnalyzer.h:288
const char * kNonIsoEleTrackIsol
Definition: HLTMessages.cc:100
edm::EDGetTokenT< CaloTowerCollection > calotowersNoR45Token_
Definition: HLTAnalyzer.h:96
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > ActivityHoverEHToken_
Definition: HLTAnalyzer.h:198
const char * ktheRecoPFTauDiscrAgainstElec
Definition: HLTMessages.cc:33
const char * kHLTCorL1L2L3jets
Definition: HLTMessages.cc:6
edm::InputTag hltresults_
Definition: HLTAnalyzer.h:232
const char * kCaloTowersLowerR45
Definition: HLTMessages.cc:16
edm::InputTag TrackerMuonTag_
Definition: HLTAnalyzer.h:253
const char * kCandIso
Definition: HLTMessages.cc:85
edm::EDGetTokenT< reco::JetTagCollection > lifetimeBJetsL3SingleTrackToken_
Definition: HLTAnalyzer.h:149
edm::InputTag m_rawBJets
Definition: HLTAnalyzer.h:269
double _EtaMax
Definition: HLTAnalyzer.h:352
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:62
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > NonIsoEleR9IDToken_
Definition: HLTAnalyzer.h:171
const char * kL1GctRingSums
Definition: HLTMessages.cc:47
edm::InputTag IsoPixelTrackTagL2_
Definition: HLTAnalyzer.h:334
edm::EDGetTokenT< reco::PFTauDiscriminator > RecoPFTauDiscrByTanCQuarterPercentToken_
Definition: HLTAnalyzer.h:132
std::string l1extramc_
Definition: HLTAnalyzer.h:237
edm::EDGetTokenT< double > rhoToken_
Definition: HLTAnalyzer.h:89
edm::EDGetTokenT< reco::JetTagCollection > lifetimeBJetsL3Token_
Definition: HLTAnalyzer.h:146
const char * kBTagLifetimeBJetsL3SingleTrackL1FastJet
Definition: HLTMessages.cc:75
edm::InputTag DiMuVtx_
Definition: HLTAnalyzer.h:253
const char * kPixelTracksL3
Definition: HLTMessages.cc:122
edm::EDGetTokenT< reco::BeamSpot > BSProducerToken_
Definition: HLTAnalyzer.h:85
math::XYZPoint Point
point in the space
Definition: BeamSpot.h:29
edm::InputTag IsoR9ID_
Definition: HLTAnalyzer.h:309
const char * ktheRecoPFTauDiscrByTanCHalfPercent
Definition: HLTMessages.cc:28
const char * kL1extemi
Definition: HLTMessages.cc:35
const char * kIsoElectron
Definition: HLTMessages.cc:95
const char * kTrkMucands
Definition: HLTMessages.cc:61
edm::EDGetTokenT< reco::CaloJetCollection > hltcorL1L2L3jetsToken_
Definition: HLTAnalyzer.h:88
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > oniaTrackTagToken_
Definition: HLTAnalyzer.h:118
const char * kBTagLifetimeBJetsL25SingleTrackL1FastJet
Definition: HLTMessages.cc:74
edm::EDGetTokenT< reco::ElectronIsolationMap > NonIsoEleTrackIsolToken_
Definition: HLTAnalyzer.h:173
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > NonIsoEleR9Token_
Definition: HLTAnalyzer.h:169
const char * kL1extmet
Definition: HLTMessages.cc:42
edm::EDGetTokenT< reco::PFTauDiscriminator > RecoPFTauDiscrByTanCHalfPercentToken_
Definition: HLTAnalyzer.h:131
edm::EDGetTokenT< reco::VertexCollection > IsoPixelTrackVerticesToken_
Definition: HLTAnalyzer.h:214
void analyze(edm::Event const &iEvent, const edm::Handle< reco::CaloJetCollection > &ohjets, const edm::Handle< reco::CaloJetCollection > &ohcorjets, const edm::Handle< reco::CaloJetCollection > &ohcorL1L2L3jets, const edm::Handle< double > &rho, const edm::Handle< reco::CaloJetCollection > &recojets, const edm::Handle< reco::CaloJetCollection > &recocorjets, const edm::Handle< reco::GenJetCollection > &gjets, const edm::Handle< reco::CaloMETCollection > &rmets, const edm::Handle< reco::GenMETCollection > &gmets, const edm::Handle< reco::METCollection > &ht, const edm::Handle< reco::CaloJetCollection > &myHLTL2Tau, const edm::Handle< reco::HLTTauCollection > &myHLTTau, const edm::Handle< reco::PFTauCollection > &myHLTPFTau, const edm::Handle< reco::PFTauCollection > &myHLTPFTauTightCone, const edm::Handle< reco::PFJetCollection > &myHLTPFJets, const edm::Handle< reco::PFTauCollection > &myRecoPFTau, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCOnePercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCHalfPercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCQuarterPercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByTanCTenthPercent, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrByIsolation, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrAgainstElec, const edm::Handle< reco::PFTauDiscriminator > &theRecoPFTauDiscrAgainstMuon, const edm::Handle< reco::PFJetCollection > &recoPFJets, const edm::Handle< CaloTowerCollection > &caloTowers, const edm::Handle< CaloTowerCollection > &caloTowersCleanerUpperR45, const edm::Handle< CaloTowerCollection > &caloTowersCleanerLowerR45, const edm::Handle< CaloTowerCollection > &caloTowersCleanerNoR45, const CaloTowerTopology *cttopo, const edm::Handle< reco::PFMETCollection > &pfmets, double thresholdForSavingTowers, double minPtCH, double minPtGamma, TTree *tree)
Definition: HLTJets.cc:400
edm::InputTag CandIso_
Definition: HLTAnalyzer.h:290
const char * kPixelFEDSize
Definition: HLTMessages.cc:123
const char * kIsoPhoTrackIsol
Definition: HLTMessages.cc:91
edm::InputTag m_l1extrajet
Definition: HLTAnalyzer.h:243
const char * kECALActivity
Definition: HLTMessages.cc:128
const char * kNonIsoR9ID
Definition: HLTMessages.cc:105
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > HcalNonIsoPhoToken_
Definition: HLTAnalyzer.h:181
const char * ktheRecoPFTauDiscrByTanCQuarterPercent
Definition: HLTMessages.cc:29
edm::EDGetTokenT< reco::IsolatedPixelTrackCandidateCollection > IsoPixelTrackL2Token_
Definition: HLTAnalyzer.h:213
edm::EDGetTokenT< reco::ElectronIsolationMap > IsoEleTrackIsolToken_
Definition: HLTAnalyzer.h:172
const char * kBTagLifetimeBJetsL3SingleTrack
Definition: HLTMessages.cc:73
const char * kBTagCorrectedJets
Definition: HLTMessages.cc:64
edm::InputTag NonIsoHoverEH_
Definition: HLTAnalyzer.h:311
const char * kL1extemn
Definition: HLTMessages.cc:36
edm::InputTag m_lifetimePFBJetsL3
Definition: HLTAnalyzer.h:277
edm::EDGetTokenT< FEDRawDataCollection > PixelFEDSizeToken_
Definition: HLTAnalyzer.h:216
edm::InputTag IsoPhoTrackIsol_
Definition: HLTAnalyzer.h:296
const char * kIsoMap2
Definition: HLTMessages.cc:54
edm::InputTag m_performanceBJetsL3
Definition: HLTAnalyzer.h:283
HLTTrack track_analysis_
Definition: HLTAnalyzer.h:73
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > IsoEleHcalToken_
Definition: HLTAnalyzer.h:182
edm::EDGetTokenT< reco::JetTagCollection > lifetimeBJetsL25L1FastJetToken_
Definition: HLTAnalyzer.h:145
double _MinPtGammas
Definition: HLTAnalyzer.h:353
edm::InputTag RecoPFTauDiscrByTanCOnePercent_
Definition: HLTAnalyzer.h:259
edm::InputTag ActivityHcalIso_
Definition: HLTAnalyzer.h:317
edm::InputTag HFECALClusters_
Definition: HLTAnalyzer.h:312
ParameterSet const & getProcessParameterSetContainingModule(ModuleDescription const &moduleDescription)
edm::EDGetTokenT< reco::GenJetCollection > genjetsToken_
Definition: HLTAnalyzer.h:92
const char * kBTagPerformanceBJetsL25
Definition: HLTMessages.cc:78
const char * ktheRecoPFTauDiscrAgainstMuon
Definition: HLTMessages.cc:32
edm::InputTag m_performanceBJetsL25
Definition: HLTAnalyzer.h:282
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > ActivityHcalIsoToken_
Definition: HLTAnalyzer.h:194
double xSection_
Definition: HLTAnalyzer.h:79
edm::InputTag RecoPFTauDiscrByTanCHalfPercent_
Definition: HLTAnalyzer.h:260
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > MuCandTag2Token_
Definition: HLTAnalyzer.h:117
double filterEff_
Definition: HLTAnalyzer.h:79
edm::InputTag m_lifetimeBJetsL3SingleTrackL1FastJet
Definition: HLTAnalyzer.h:281
edm::EDGetTokenT< l1extra::L1MuonParticleCollection > l1extramuToken_
Definition: HLTAnalyzer.h:110
edm::InputTag reccorjets_
Definition: HLTAnalyzer.h:232
edm::EDGetTokenT< l1extra::L1EtMissParticleCollection > l1extramhtToken_
Definition: HLTAnalyzer.h:112
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > NonIsoPhoTrackIsolToken_
Definition: HLTAnalyzer.h:184
const char * kIsoTrk10Map3
Definition: HLTMessages.cc:56
edm::EDGetTokenT< reco::ElectronSeedCollection > L1NonIsoPixelSeedsToken_
Definition: HLTAnalyzer.h:175
const char * kBTagCorrectedJetsL1FastJet
Definition: HLTMessages.cc:65
edm::InputTag BSProducer_
Definition: HLTAnalyzer.h:230
const char * kECALActivityEcalIso
Definition: HLTMessages.cc:129
edm::InputTag ECALActivity_
Definition: HLTAnalyzer.h:315
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > IsoPhoR9Token_
Definition: HLTAnalyzer.h:160
const char * kRecjets
Definition: HLTMessages.cc:8
edm::EDGetTokenT< edm::ValueMap< bool > > MuTrkIsolTag3Token_
Definition: HLTAnalyzer.h:121
const char * kMucands2
Definition: HLTMessages.cc:51
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTEgamma.cc:38
ModuleDescription const & moduleDescription() const
Definition: EDAnalyzer.h:43
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > oniaPixelTagToken_
Definition: HLTAnalyzer.h:118
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTMuon.cc:23
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > IsoPhoTrackIsolToken_
Definition: HLTAnalyzer.h:185
edm::InputTag CandNonIso_
Definition: HLTAnalyzer.h:291
edm::EDGetTokenT< l1extra::L1JetParticleCollection > l1extrataujetToken_
Definition: HLTAnalyzer.h:111
edm::InputTag mctruth_
Definition: HLTAnalyzer.h:248
edm::EDGetTokenT< reco::VertexCollection > VertexOffline0Token_
Definition: HLTAnalyzer.h:221
int iEvent
Definition: GenABIO.cc:230
HLTJets jet_analysis_
Definition: HLTAnalyzer.h:65
edm::EDGetTokenT< reco::PFTauDiscriminator > RecoPFTauDiscrByTanCTenthPercentToken_
Definition: HLTAnalyzer.h:133
edm::InputTag m_l1extramht
Definition: HLTAnalyzer.h:246
std::string _HistName
Definition: HLTAnalyzer.h:351
const char * kIsoR9
Definition: HLTMessages.cc:104
edm::EDGetTokenT< l1extra::L1JetParticleCollection > l1extrajetfToken_
Definition: HLTAnalyzer.h:111
const char * kBTagLifetimeBJetsL25
Definition: HLTMessages.cc:67
edm::EDGetTokenT< reco::METCollection > htToken_
Definition: HLTAnalyzer.h:100
edm::InputTag IsoR9_
Definition: HLTAnalyzer.h:307
edm::InputTag NonIsoPhoTrackIsol_
Definition: HLTAnalyzer.h:297
virtual void analyze(edm::Event const &e, edm::EventSetup const &iSetup)
Definition: HLTAnalyzer.cc:390
void setup(const edm::ParameterSet &pSet, TTree *tree, std::string vertexType)
Definition: RECOVertex.cc:49
edm::InputTag m_l1extramu
Definition: HLTAnalyzer.h:238
double _MinPtChargedHadrons
Definition: HLTAnalyzer.h:353
void analyze(const edm::Handle< reco::CandidateView > &mctruth, const double &pthat, const edm::Handle< std::vector< SimTrack > > &simTracks, const edm::Handle< std::vector< SimVertex > > &simVertices, TTree *tree)
Definition: HLTMCtruth.cc:69
edm::EDGetTokenT< reco::PFTauCollection > PFTauToken_
Definition: HLTAnalyzer.h:124
edm::EDGetTokenT< GenEventInfoProduct > genEventInfoToken_
Definition: HLTAnalyzer.h:103
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > IsoEleR9IDToken_
Definition: HLTAnalyzer.h:170
const char * kBTagLifetimeBJetsL25L1FastJet
Definition: HLTMessages.cc:69
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
edm::InputTag hltcorjets_
Definition: HLTAnalyzer.h:234
edm::EDGetTokenT< l1extra::L1EmParticleCollection > l1extraemiToken_
Definition: HLTAnalyzer.h:109
const char * kCandNonIso
Definition: HLTMessages.cc:86
void analyze(const edm::Handle< reco::GsfElectronCollection > &electrons, const edm::Handle< reco::PhotonCollection > &photons, const edm::Handle< reco::ElectronCollection > &electronIsoHandle, const edm::Handle< reco::ElectronCollection > &electronNonIsoHandle, const edm::Handle< reco::ElectronIsolationMap > &NonIsoTrackEleIsolMap, const edm::Handle< reco::ElectronIsolationMap > &TrackEleIsolMap, const edm::Handle< reco::ElectronSeedCollection > &L1IsoPixelSeedsMap, const edm::Handle< reco::ElectronSeedCollection > &L1NonIsoPixelSeedsMap, const edm::Handle< reco::RecoEcalCandidateCollection > &recoIsolecalcands, const edm::Handle< reco::RecoEcalCandidateCollection > &recoNonIsolecalcands, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &EcalIsolMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &EcalNonIsolMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &HcalEleIsolMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &HcalEleNonIsolMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &HcalIsolMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &HcalNonIsolMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &TrackIsolMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &TrackNonIsolMap, EcalClusterLazyTools &lazyTools, const edm::ESHandle< MagneticField > &theMagField, reco::BeamSpot::Point &BSPosition, std::vector< edm::Handle< edm::ValueMap< float > > > &eIDValueMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &photonR9IsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &photonR9NonIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &electronR9IsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &electronR9NonIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &photonHoverEHIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &photonHoverEHNonIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &photonR9IDIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &photonR9IDNonIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &electronR9IDIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &electronR9IDNonIsoMap, const edm::Handle< reco::SuperClusterCollection > &electronHFClusterHandle, const edm::Handle< reco::RecoEcalCandidateCollection > &electronHFElectronHandle, const edm::Handle< reco::HFEMClusterShapeAssociationCollection > &electronHFClusterAssociation, const edm::Handle< reco::RecoEcalCandidateCollection > &activityECAL, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &activityEcalIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &activityHcalIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &activityTrackIsoMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &activityR9Map, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &activityR9IDMap, const edm::Handle< reco::RecoEcalCandidateIsolationMap > &activityHoverEHMap, TTree *tree)
Definition: HLTEgamma.cc:319
edm::EDGetTokenT< reco::CaloJetCollection > L2TauToken_
Definition: HLTAnalyzer.h:122
edm::InputTag gctBitCounts_
Definition: HLTAnalyzer.h:250
edm::EDGetTokenT< reco::GenMETCollection > genmetToken_
Definition: HLTAnalyzer.h:99
edm::InputTag NonIsoElectron_
Definition: HLTAnalyzer.h:299
edm::InputTag VertexTagOffline0_
Definition: HLTAnalyzer.h:346
const char * kRecoPFJets
Definition: HLTMessages.cc:19
edm::EDGetTokenT< reco::SuperClusterCollection > HFECALClustersToken_
Definition: HLTAnalyzer.h:186
edm::InputTag NonIsoR9ID_
Definition: HLTAnalyzer.h:308
edm::InputTag m_correctedBJets
Definition: HLTAnalyzer.h:270
edm::EDGetTokenT< reco::ElectronSeedCollection > L1IsoPixelSeedsToken_
Definition: HLTAnalyzer.h:174
tuple handle
Definition: patZpeak.py:22
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > ActivityTrackIsoToken_
Definition: HLTAnalyzer.h:195
edm::EDGetTokenT< reco::JetTagCollection > lifetimeBJetsL25SingleTrackL1FastJetToken_
Definition: HLTAnalyzer.h:150
const char * kIsoPixelTracksL3
Definition: HLTMessages.cc:119
const char * kMctruth
Definition: HLTMessages.cc:48
const char * kRho
Definition: HLTMessages.cc:7
int firstLumi_
Definition: HLTAnalyzer.h:78
const char * kTaus
Definition: HLTMessages.cc:22
void analyze(edm::Handle< reco::VertexCollection > recoVertexs, TTree *tree)
Definition: RECOVertex.cc:92
edm::InputTag ActivityEcalIso_
Definition: HLTAnalyzer.h:316
edm::InputTag RecoPFTauAgainstMuon_
Definition: HLTAnalyzer.h:264
void setup(const edm::ParameterSet &pSet, TTree *tree, edm::ConsumesCollector &&iC)
Definition: HLTJets.cc:28
edm::InputTag ActivityTrackIso_
Definition: HLTAnalyzer.h:318
edm::EDGetTokenT< l1extra::L1JetParticleCollection > l1extrajetcToken_
Definition: HLTAnalyzer.h:111
void beginRun(const edm::Run &, const edm::EventSetup &)
Definition: HLTInfo.cc:32
const char * kBTagLifetimeBJetsL3
Definition: HLTMessages.cc:68
const char * kBTagPerformanceBJetsL3
Definition: HLTMessages.cc:79
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTTrack.cc:24
const char * kIsoHoverEH
Definition: HLTMessages.cc:107
edm::InputTag MuNoVtxCandTag2_
Definition: HLTAnalyzer.h:252
const char * kHcalNonIsoPho
Definition: HLTMessages.cc:90
edm::InputTag PixelClustersTag_
Definition: HLTAnalyzer.h:342
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
const char * kBTagPerformanceBJetsL25L1FastJet
Definition: HLTMessages.cc:80
edm::InputTag L2Tau_
Definition: HLTAnalyzer.h:254
edm::EDGetTokenT< reco::JetTagCollection > performanceBJetsL3L1FastJetToken_
Definition: HLTAnalyzer.h:155
bool isValid() const
Definition: HandleBase.h:75
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > NonIsoPhoHoverEHToken_
Definition: HLTAnalyzer.h:165
edm::InputTag m_correctedBJetsL1FastJet
Definition: HLTAnalyzer.h:271
edm::EDGetTokenT< reco::PFTauDiscriminator > RecoPFTauAgainstElecToken_
Definition: HLTAnalyzer.h:136
std::pair< const char *, const edm::InputTag * > MissingCollectionInfo
Definition: HLTAnalyzer.cc:11
edm::InputTag recoPFMet_
Definition: HLTAnalyzer.h:232
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > IsoPhoHoverEHToken_
Definition: HLTAnalyzer.h:164
std::string l1extramu_
Definition: HLTAnalyzer.h:237
edm::InputTag gtReadoutRecord_
Definition: HLTAnalyzer.h:249
edm::InputTag PFTauTightCone_
Definition: HLTAnalyzer.h:254
const char * ktheRecoPFTauDiscrByTanCOnePercent
Definition: HLTMessages.cc:27
edm::InputTag IsoPixelTrackVerticesTag_
Definition: HLTAnalyzer.h:335
edm::InputTag EcalNonIso_
Definition: HLTAnalyzer.h:293
const char * kL1extmu
Definition: HLTMessages.cc:37
edm::InputTag IsoElectron_
Definition: HLTAnalyzer.h:298
edm::EDGetTokenT< reco::VertexCollection > VertexHLTToken_
Definition: HLTAnalyzer.h:220
const char * ktheRecoPFTauDiscrByTanCTenthPercent
Definition: HLTMessages.cc:30
edm::InputTag ActivityR9ID_
Definition: HLTAnalyzer.h:320
edm::EDGetTokenT< reco::MuonCollection > muonToken_
Definition: HLTAnalyzer.h:106
edm::InputTag oniaPixelTag_
Definition: HLTAnalyzer.h:253
edm::InputTag MuCandTag3_
Definition: HLTAnalyzer.h:252
const char * kECALActivityHoverEH
Definition: HLTMessages.cc:134
edm::EDGetTokenT< edm::ValueMap< bool > > MuIsolTag3Token_
Definition: HLTAnalyzer.h:121
edm::InputTag MuIsolTag2_
Definition: HLTAnalyzer.h:252
void analyze(const edm::Handle< reco::MuonCollection > &muon, const edm::Handle< reco::PFCandidateCollection > &pfmuon, const edm::Handle< l1extra::L1MuonParticleCollection > &mucands1, const edm::Handle< reco::RecoChargedCandidateCollection > &mucands2, const edm::Handle< edm::ValueMap< bool > > &isoMap2, const edm::Handle< reco::RecoChargedCandidateCollection > &mucands3, const edm::Handle< edm::ValueMap< bool > > &isoMap3, const edm::Handle< edm::ValueMap< bool > > &isoTrk10Map3, const edm::Handle< reco::RecoChargedCandidateCollection > &oniaPixelCands, const edm::Handle< reco::RecoChargedCandidateCollection > &oniaTrackCands, const edm::Handle< reco::VertexCollection > &dimuvtxcands3, const edm::Handle< reco::RecoChargedCandidateCollection > &munovtxcands2, const edm::Handle< reco::MuonCollection > &trkmucands, const edm::ESHandle< MagneticField > &theMagField, const edm::Handle< reco::BeamSpot > &recoBeamSpotHandle, TTree *tree)
Definition: HLTMuon.cc:281
const char * kBTagPerformanceBJetsL3L1FastJet
Definition: HLTMessages.cc:81
tuple description
Definition: idDealer.py:66
const char * kpfMuon
Definition: HLTMessages.cc:21
edm::EDGetTokenT< edm::View< reco::Jet > > correctedBJetsToken_
Definition: HLTAnalyzer.h:140
edm::EDGetTokenT< reco::RecoEcalCandidateCollection > HFElectronsToken_
Definition: HLTAnalyzer.h:187
edm::InputTag oniaTrackTag_
Definition: HLTAnalyzer.h:253
static int errMax()
Definition: HLTAnalyzer.h:349
edm::EDGetTokenT< reco::CaloJetCollection > recjetsToken_
Definition: HLTAnalyzer.h:90
const char * kGenjets
Definition: HLTMessages.cc:10
edm::EDGetTokenT< reco::HFEMClusterShapeAssociationCollection > HFEMClusterShapeAssociationToken_
Definition: HLTAnalyzer.h:224
edm::InputTag MuCandTag2_
Definition: HLTAnalyzer.h:252
HLTEgamma elm_analysis_
Definition: HLTAnalyzer.h:68
RECOVertex vrt_analysisOffline0_
Definition: HLTAnalyzer.h:76
const char * kBTagLifetimeBJetsL3L1FastJet
Definition: HLTMessages.cc:70
const char * kBTagLifetimePFBJetsL3
Definition: HLTMessages.cc:71
edm::EDGetTokenT< reco::RecoEcalCandidateCollection > CandNonIsoToken_
Definition: HLTAnalyzer.h:177
edm::InputTag RecoPFTauDiscrByTanCTenthPercent_
Definition: HLTAnalyzer.h:262
const char * kCaloTowersUpperR45
Definition: HLTMessages.cc:15
edm::InputTag RecoPFTauAgainstElec_
Definition: HLTAnalyzer.h:265
edm::EDGetTokenT< reco::JetTagCollection > lifetimePFBJetsL3Token_
Definition: HLTAnalyzer.h:147
const char * kHt
Definition: HLTMessages.cc:18
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > ActivityR9Token_
Definition: HLTAnalyzer.h:196
edm::EDGetTokenT< l1extra::L1EtMissParticleCollection > l1extrametToken_
Definition: HLTAnalyzer.h:112
const char * kECALActivityHcalIso
Definition: HLTMessages.cc:130
const char * kNonIsoHoverEH
Definition: HLTMessages.cc:108
HLTBJet bjet_analysis_
Definition: HLTAnalyzer.h:66
const char * kBTagPFJets
Definition: HLTMessages.cc:66
const char * kHFElectrons
Definition: HLTMessages.cc:94
const char * kHFECALClusters
Definition: HLTMessages.cc:93
const char * kIsoR9ID
Definition: HLTMessages.cc:106
const char * kHLTCorjets
Definition: HLTMessages.cc:5
edm::EDGetTokenT< reco::JetTagCollection > performanceBJetsL25Token_
Definition: HLTAnalyzer.h:152
edm::EDGetTokenT< reco::CaloJetCollection > reccorjetsToken_
Definition: HLTAnalyzer.h:91
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
Definition: HLTAnalyzer.cc:384
const char * kEcalIso
Definition: HLTMessages.cc:87
edm::EDGetTokenT< edm::View< reco::Jet > > pfBJetsToken_
Definition: HLTAnalyzer.h:142
edm::EDGetTokenT< reco::JetTagCollection > lifetimeBJetsL25Token_
Definition: HLTAnalyzer.h:143
const T & get() const
Definition: EventSetup.h:56
edm::InputTag IsoPixelTrackTagL3_
Definition: HLTAnalyzer.h:333
edm::EDGetTokenT< reco::IsolatedPixelTrackCandidateCollection > IsoPixelTrackL3Token_
Definition: HLTAnalyzer.h:212
const char * kL1extjetc
Definition: HLTMessages.cc:38
edm::InputTag m_lifetimeBJetsL25SingleTrackL1FastJet
Definition: HLTAnalyzer.h:280
edm::InputTag HcalNonIsoPho_
Definition: HLTAnalyzer.h:295
edm::EDGetTokenT< reco::PFCandidateCollection > pfmuonToken_
Definition: HLTAnalyzer.h:107
edm::InputTag PFTau_
Definition: HLTAnalyzer.h:254
const char * kL1GtRR
Definition: HLTMessages.cc:44
const char * kL1GctBitCounts
Definition: HLTMessages.cc:46
edm::InputTag m_lifetimeBJetsL3
Definition: HLTAnalyzer.h:274
edm::InputTag hltjets_
Definition: HLTAnalyzer.h:234
edm::InputTag calotowers_
Definition: HLTAnalyzer.h:232
edm::EDGetTokenT< reco::JetTagCollection > lifetimeBJetsL3SingleTrackL1FastJetToken_
Definition: HLTAnalyzer.h:151
void analyze(const edm::Handle< edm::View< reco::Jet > > &rawBJets, const edm::Handle< edm::View< reco::Jet > > &correctedBJets, const edm::Handle< edm::View< reco::Jet > > &correctedBJetsL1FastJet, const edm::Handle< edm::View< reco::Jet > > &pfBJets, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL25, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL3, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL25L1FastJet, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL3L1FastJet, const edm::Handle< reco::JetTagCollection > &lifetimePFBJetsL3, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL25SingleTrack, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL3SingleTrack, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL25SingleTrackL1FastJet, const edm::Handle< reco::JetTagCollection > &lifetimeBJetsL3SingleTrackL1FastJet, const edm::Handle< reco::JetTagCollection > &performanceBJetsL25, const edm::Handle< reco::JetTagCollection > &performanceBJetsL3, const edm::Handle< reco::JetTagCollection > &performanceBJetsL25L1FastJet, const edm::Handle< reco::JetTagCollection > &performanceBJetsL3L1FastJet, TTree *tree)
Definition: HLTBJet.cc:216
edm::InputTag simhits_
Definition: HLTAnalyzer.h:248
edm::InputTag recoPFJets_
Definition: HLTAnalyzer.h:232
edm::EDGetTokenT< reco::HLTTauCollection > HLTTauToken_
Definition: HLTAnalyzer.h:123
std::string const & label() const
Definition: InputTag.h:36
edm::InputTag m_l1extraemi
Definition: HLTAnalyzer.h:239
const char * kCaloTowers
Definition: HLTMessages.cc:14
edm::EDGetTokenT< reco::PFMETCollection > recoPFMetToken_
Definition: HLTAnalyzer.h:98
const char * kRecoVerticesHLT
Definition: HLTMessages.cc:126
edm::InputTag HLTTau_
Definition: HLTAnalyzer.h:254
const char * kRecoVerticesOffline0
Definition: HLTMessages.cc:127
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > MuNoVtxCandTag2Token_
Definition: HLTAnalyzer.h:117
edm::EDGetTokenT< edm::View< reco::Jet > > rawBJetsToken_
Definition: HLTAnalyzer.h:139
edm::EDGetTokenT< CaloTowerCollection > calotowersToken_
Definition: HLTAnalyzer.h:93
const char * kL1extjetf
Definition: HLTMessages.cc:39
HLTMCtruth mct_analysis_
Definition: HLTAnalyzer.h:69
edm::InputTag genjets_
Definition: HLTAnalyzer.h:232
const char * kGenEventInfo
Definition: HLTMessages.cc:50
HLTMuon muon_analysis_
Definition: HLTAnalyzer.h:67
edm::InputTag pfmuon_
Definition: HLTAnalyzer.h:236
HLTAnalyzer(edm::ParameterSet const &conf)
Definition: HLTAnalyzer.cc:28
RECOVertex vrt_analysisHLT_
Definition: HLTAnalyzer.h:75
edm::EDGetTokenT< std::vector< SimTrack > > simTracksToken_
Definition: HLTAnalyzer.h:104
edm::EDGetTokenT< reco::PFTauDiscriminator > RecoPFTauDiscrByIsoToken_
Definition: HLTAnalyzer.h:134
const char * kRecmet
Definition: HLTMessages.cc:11
const char * kMunovtxcands2
Definition: HLTMessages.cc:53
edm::EDGetTokenT< reco::ElectronCollection > IsoElectronToken_
Definition: HLTAnalyzer.h:166
double _EtaMin
Definition: HLTAnalyzer.h:352
edm::EDGetTokenT< EcalRecHitCollection > EcalRecHitEEToken_
Definition: HLTAnalyzer.h:189
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > IsoEleR9Token_
Definition: HLTAnalyzer.h:168
edm::InputTag m_lifetimeBJetsL3L1FastJet
Definition: HLTAnalyzer.h:276
const char * kL1NonIsoPixelSeeds
Definition: HLTMessages.cc:102
edm::InputTag IsoHoverEH_
Definition: HLTAnalyzer.h:310
static bool getCollection(const edm::Event &event, std::vector< MissingCollectionInfo > &missing, edm::Handle< T > &handle, const edm::InputTag &name, const edm::EDGetTokenT< T > token, const char *description)
Definition: HLTAnalyzer.cc:15
const char * kEcalNonIso
Definition: HLTMessages.cc:88
edm::EDGetTokenT< reco::RecoEcalCandidateCollection > CandIsoToken_
Definition: HLTAnalyzer.h:176
list entry
Definition: mps_splice.py:62
const char * kPFJets
Definition: HLTMessages.cc:25
const char * kMucands3
Definition: HLTMessages.cc:52
void setup(const edm::ParameterSet &pSet, TTree *tree)
Definition: HLTMCtruth.cc:23
edm::EDGetTokenT< edm::TriggerResults > hltresultsToken_
Definition: HLTAnalyzer.h:108
edm::InputTag NonIsoR9_
Definition: HLTAnalyzer.h:306
tuple cout
Definition: gather_cfg.py:145
edm::InputTag ActivityHoverEH_
Definition: HLTAnalyzer.h:321
edm::InputTag NonIsoEleHcal_
Definition: HLTAnalyzer.h:301
edm::InputTag NonIsoEleTrackIsol_
Definition: HLTAnalyzer.h:303
edm::EDGetTokenT< CaloTowerCollection > calotowersLowerR45Token_
Definition: HLTAnalyzer.h:95
const char * kPFTausTightCone
Definition: HLTMessages.cc:24
edm::EDGetTokenT< std::vector< SimVertex > > simVerticesToken_
Definition: HLTAnalyzer.h:105
const char * kIsoPixelTracksL2
Definition: HLTMessages.cc:120
edm::EDGetTokenT< reco::PhotonCollection > PhotonToken_
Definition: HLTAnalyzer.h:159
edm::EDGetTokenT< reco::RecoChargedCandidateCollection > MuCandTag3Token_
Definition: HLTAnalyzer.h:117
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > ActivityR9IDToken_
Definition: HLTAnalyzer.h:197
edm::EDGetTokenT< reco::ElectronCollection > NonIsoElectronToken_
Definition: HLTAnalyzer.h:167
edm::InputTag RecoPFTau_
Definition: HLTAnalyzer.h:258
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > HcalIsoPhoToken_
Definition: HLTAnalyzer.h:180
edm::EDGetTokenT< reco::PFTauCollection > PFTauTightConeToken_
Definition: HLTAnalyzer.h:125
edm::EDGetTokenT< CaloTowerCollection > calotowersUpperR45Token_
Definition: HLTAnalyzer.h:94
edm::InputTag PixelTracksTagL3_
Definition: HLTAnalyzer.h:340
void setup(const edm::ParameterSet &config, TTree *tree)
Definition: HLTBJet.cc:166
edm::InputTag muon_
Definition: HLTAnalyzer.h:235
edm::EDGetTokenT< reco::CaloJetCollection > hltcorjetsToken_
Definition: HLTAnalyzer.h:87
edm::InputTag genEventInfo_
Definition: HLTAnalyzer.h:232
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > NonIsoPhoR9Token_
Definition: HLTAnalyzer.h:161
edm::EDGetTokenT< reco::PFTauCollection > RecoPFTauToken_
Definition: HLTAnalyzer.h:129
edm::EDGetTokenT< reco::JetTagCollection > lifetimeBJetsL25SingleTrackToken_
Definition: HLTAnalyzer.h:148
edm::InputTag recjets_
Definition: HLTAnalyzer.h:232
edm::InputTag m_l1extrajetf
Definition: HLTAnalyzer.h:242
edm::EDGetTokenT< reco::MuonCollection > TrackerMuonTagToken_
Definition: HLTAnalyzer.h:120
edm::InputTag m_lifetimeBJetsL25
Definition: HLTAnalyzer.h:273
edm::InputTag recmet_
Definition: HLTAnalyzer.h:232
edm::InputTag m_lifetimeBJetsL25SingleTrack
Definition: HLTAnalyzer.h:278
const char * kIsoEleHcal
Definition: HLTMessages.cc:97
const char * ktheRecoPFTauDiscrByIsolation
Definition: HLTMessages.cc:31
const char * kOniaTrackCands
Definition: HLTMessages.cc:59
edm::EDGetTokenT< reco::GsfElectronCollection > ElectronToken_
Definition: HLTAnalyzer.h:158
edm::InputTag m_performanceBJetsL3L1FastJet
Definition: HLTAnalyzer.h:285
edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > IsoPhoR9IDToken_
Definition: HLTAnalyzer.h:162
edm::InputTag m_l1extrajetc
Definition: HLTAnalyzer.h:241
Definition: Run.h:43
const char * kIsoEleTrackIsol
Definition: HLTMessages.cc:99
const char * kRecCorjets
Definition: HLTMessages.cc:9
const char * kBTagJets
Definition: HLTMessages.cc:63
const char * kPFMet
Definition: HLTMessages.cc:12
int towerThreshold_
Definition: HLTAnalyzer.h:78
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
edm::InputTag m_l1extraemn
Definition: HLTAnalyzer.h:240
const char * kRecoPFTaus
Definition: HLTMessages.cc:26
edm::InputTag calotowersLowerR45_
Definition: HLTAnalyzer.h:233
edm::EDGetTokenT< reco::JetTagCollection > performanceBJetsL25L1FastJetToken_
Definition: HLTAnalyzer.h:154
edm::InputTag ht_
Definition: HLTAnalyzer.h:232
edm::InputTag m_lifetimeBJetsL25L1FastJet
Definition: HLTAnalyzer.h:275
edm::InputTag m_l1extrataujet
Definition: HLTAnalyzer.h:244
edm::InputTag RecoPFTauDiscrByIso_
Definition: HLTAnalyzer.h:263
edm::InputTag rho_
Definition: HLTAnalyzer.h:234
const char * kL1IsoPixelSeeds
Definition: HLTMessages.cc:101