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