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