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