CMS 3D CMS Logo

HLTEventAnalyzerRAW.cc
Go to the documentation of this file.
1 
15 
16 // need access to class objects being referenced to get their content!
26 
27 #include "DataFormats/L1Trigger/interface/L1HFRings.h" // deprecate
32 
39 
49 
50 #include <cassert>
51 
52 //
53 // constructors and destructor
54 //
56  : processName_(ps.getParameter<std::string>("processName")),
57  triggerName_(ps.getParameter<std::string>("triggerName")),
58  triggerResultsTag_(ps.getParameter<edm::InputTag>("triggerResults")),
59  triggerResultsToken_(consumes<edm::TriggerResults>(triggerResultsTag_)),
60  triggerEventWithRefsTag_(ps.getParameter<edm::InputTag>("triggerEventWithRefs")),
61  triggerEventWithRefsToken_(consumes<trigger::TriggerEventWithRefs>(triggerEventWithRefsTag_)) {
62  using namespace std;
63  using namespace edm;
64 
65  LogVerbatim("HLTEventAnalyzerRAW") << "HLTEventAnalyzerRAW configuration: " << endl
66  << " ProcessName = " << processName_ << endl
67  << " TriggerName = " << triggerName_ << endl
68  << " TriggerResultsTag = " << triggerResultsTag_.encode() << endl
69  << " TriggerEventWithRefsTag = " << triggerEventWithRefsTag_.encode() << endl;
70 }
71 
73 
74 //
75 // member functions
76 //
79  desc.add<std::string>("processName", "HLT");
80  desc.add<std::string>("triggerName", "@");
81  desc.add<edm::InputTag>("triggerResults", edm::InputTag("TriggerResults", "", "HLT"));
82  desc.add<edm::InputTag>("triggerEventWithRefs", edm::InputTag("hltTriggerSummaryRAW", "", "HLT"));
83  descriptions.add("hltEventAnalyzerRAW", desc);
84 }
85 
86 void HLTEventAnalyzerRAW::endRun(edm::Run const& iRun, edm::EventSetup const& iSetup) {}
87 
88 void HLTEventAnalyzerRAW::beginRun(edm::Run const& iRun, edm::EventSetup const& iSetup) {
89  using namespace std;
90  using namespace edm;
91 
92  bool changed(true);
93  if (hltConfig_.init(iRun, iSetup, processName_, changed)) {
94  if (changed) {
95  // check if trigger name in (new) config
96  if (triggerName_ != "@") { // "@" means: analyze all triggers in config
97  const unsigned int n(hltConfig_.size());
98  const unsigned int triggerIndex(hltConfig_.triggerIndex(triggerName_));
99  if (triggerIndex >= n) {
100  LogVerbatim("HLTEventAnalyzerRAW")
101  << "HLTEventAnalyzerRAW::analyze:"
102  << " TriggerName " << triggerName_ << " not available in (new) config!" << endl;
103  LogVerbatim("HLTEventAnalyzerRAW") << "Available TriggerNames are: " << endl;
104  hltConfig_.dump("Triggers");
105  }
106  }
107  }
108  } else {
109  LogVerbatim("HLTEventAnalyzerRAW") << "HLTEventAnalyzerRAW::analyze:"
110  << " config extraction failure with process name " << processName_ << endl;
111  }
112 }
113 
114 // ------------ method called to produce the data ------------
116  using namespace std;
117  using namespace edm;
118 
119  LogVerbatim("HLTEventAnalyzerRAW") << endl;
120 
121  // get event products
124  LogVerbatim("HLTEventAnalyzerRAW")
125  << "HLTEventAnalyzerRAW::analyze: Error in getting TriggerResults product from Event!" << endl;
126  return;
127  }
130  LogVerbatim("HLTEventAnalyzerRAW")
131  << "HLTEventAnalyzerRAW::analyze: Error in getting TriggerEventWithRefs product from Event!" << endl;
132  return;
133  }
134  // sanity check
136 
137  // analyze this event for the triggers requested
138  if (triggerName_ == "@") {
139  const unsigned int n(hltConfig_.size());
140  for (unsigned int i = 0; i != n; ++i) {
142  }
143  } else {
145  }
146 
147  return;
148 }
149 
151  const edm::EventSetup& iSetup,
152  const std::string& triggerName) {
153  using namespace std;
154  using namespace edm;
155  using namespace reco;
156  using namespace trigger;
157 
158  LogVerbatim("HLTEventAnalyzerRAW") << endl;
159 
160  const unsigned int n(hltConfig_.size());
161  const unsigned int triggerIndex(hltConfig_.triggerIndex(triggerName));
162  assert(triggerIndex == iEvent.triggerNames(*triggerResultsHandle_).triggerIndex(triggerName));
163 
164  // abort on invalid trigger name
165  if (triggerIndex >= n) {
166  LogVerbatim("HLTEventAnalyzerRAW") << "HLTEventAnalyzerRAW::analyzeTrigger: path " << triggerName << " - not found!"
167  << endl;
168  return;
169  }
170 
171  LogVerbatim("HLTEventAnalyzerRAW") << "HLTEventAnalyzerRAW::analyzeTrigger: path " << triggerName << " ["
172  << triggerIndex << "]" << endl;
173  // modules on this trigger path
174  const unsigned int m(hltConfig_.size(triggerIndex));
175  const vector<string>& moduleLabels(hltConfig_.moduleLabels(triggerIndex));
176 
177  // Results from TriggerResults product
178  LogVerbatim("HLTEventAnalyzerRAW") << " Trigger path status:"
179  << " WasRun=" << triggerResultsHandle_->wasrun(triggerIndex)
180  << " Accept=" << triggerResultsHandle_->accept(triggerIndex)
181  << " Error =" << triggerResultsHandle_->error(triggerIndex) << endl;
182  const unsigned int moduleIndex(triggerResultsHandle_->index(triggerIndex));
183  LogVerbatim("HLTEventAnalyzerRAW") << " Last active module - label/type: " << moduleLabels[moduleIndex] << "/"
184  << hltConfig_.moduleType(moduleLabels[moduleIndex]) << " [" << moduleIndex
185  << " out of 0-" << (m - 1) << " on this path]" << endl;
186  assert(moduleIndex < m);
187 
188  // Results from TriggerEventWithRefs product
189  photonIds_.clear();
190  photonRefs_.clear();
191  electronIds_.clear();
192  electronRefs_.clear();
193  muonIds_.clear();
194  muonRefs_.clear();
195  jetIds_.clear();
196  jetRefs_.clear();
197  compositeIds_.clear();
198  compositeRefs_.clear();
199  basemetIds_.clear();
200  basemetRefs_.clear();
201  calometIds_.clear();
202  calometRefs_.clear();
203  pixtrackIds_.clear();
204  pixtrackRefs_.clear();
205 
206  l1emIds_.clear();
207  l1emRefs_.clear();
208  l1muonIds_.clear();
209  l1muonRefs_.clear();
210  l1jetIds_.clear();
211  l1jetRefs_.clear();
212  l1etmissIds_.clear();
213  l1etmissRefs_.clear();
214  l1hfringsIds_.clear();
215  l1hfringsRefs_.clear();
216 
217  l1tmuonIds_.clear();
218  l1tmuonRefs_.clear();
219  l1tmuonShowerIds_.clear();
220  l1tmuonShowerRefs_.clear();
221  l1tegammaIds_.clear();
222  l1tegammaRefs_.clear();
223  l1tjetIds_.clear();
224  l1tjetRefs_.clear();
225  l1ttauIds_.clear();
226  l1ttauRefs_.clear();
227  l1tetsumIds_.clear();
228  l1tetsumRefs_.clear();
229 
230  l1ttkmuIds_.clear();
231  l1ttkmuRefs_.clear();
232  l1ttkeleIds_.clear();
233  l1ttkeleRefs_.clear();
234  l1ttkemIds_.clear();
235  l1ttkemRefs_.clear();
236  l1tpfjetIds_.clear();
237  l1tpfjetRefs_.clear();
238  l1tpftauIds_.clear();
239  l1tpftauRefs_.clear();
240  l1thpspftauIds_.clear();
241  l1thpspftauRefs_.clear();
242  l1tpftrackIds_.clear();
243  l1tpftrackRefs_.clear();
244 
245  pfjetIds_.clear();
246  pfjetRefs_.clear();
247  pftauIds_.clear();
248  pftauRefs_.clear();
249  pfmetIds_.clear();
250  pfmetRefs_.clear();
251 
252  // Attention: must look only for modules actually run in this path
253  // for this event!
254  for (unsigned int j = 0; j <= moduleIndex; ++j) {
255  const string& moduleLabel(moduleLabels[j]);
256  const string moduleType(hltConfig_.moduleType(moduleLabel));
257  // check whether the module is packed up in TriggerEventWithRef product
258  const unsigned int filterIndex(triggerEventWithRefsHandle_->filterIndex(InputTag(moduleLabel, "", processName_)));
259  if (filterIndex < triggerEventWithRefsHandle_->size()) {
260  LogVerbatim("HLTEventAnalyzerRAW") << " Filter in slot " << j << " - label/type " << moduleLabel << "/"
261  << moduleType << endl;
262  LogVerbatim("HLTEventAnalyzerRAW") << " Filter packed up at: " << filterIndex << endl;
263  LogVerbatim("HLTEventAnalyzerRAW") << " Accepted objects:" << endl;
264 
266  const unsigned int nPhotons(photonIds_.size());
267  if (nPhotons > 0) {
268  LogVerbatim("HLTEventAnalyzerRAW") << " Photons: " << nPhotons << " - the objects: # id pt" << endl;
269  for (unsigned int i = 0; i != nPhotons; ++i) {
270  LogVerbatim("HLTEventAnalyzerRAW")
271  << " " << i << " " << photonIds_[i] << " " << photonRefs_[i]->pt() << endl;
272  }
273  }
274 
276  const unsigned int nElectrons(electronIds_.size());
277  if (nElectrons > 0) {
278  LogVerbatim("HLTEventAnalyzerRAW") << " Electrons: " << nElectrons << " - the objects: # id pt" << endl;
279  for (unsigned int i = 0; i != nElectrons; ++i) {
280  LogVerbatim("HLTEventAnalyzerRAW")
281  << " " << i << " " << electronIds_[i] << " " << electronRefs_[i]->pt() << endl;
282  }
283  }
284 
286  const unsigned int nMuons(muonIds_.size());
287  if (nMuons > 0) {
288  LogVerbatim("HLTEventAnalyzerRAW") << " Muons: " << nMuons << " - the objects: # id pt" << endl;
289  for (unsigned int i = 0; i != nMuons; ++i) {
290  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << muonIds_[i] << " " << muonRefs_[i]->pt() << endl;
291  }
292  }
293 
295  const unsigned int nJets(jetIds_.size());
296  if (nJets > 0) {
297  LogVerbatim("HLTEventAnalyzerRAW") << " Jets: " << nJets << " - the objects: # id pt" << endl;
298  for (unsigned int i = 0; i != nJets; ++i) {
299  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << jetIds_[i] << " " << jetRefs_[i]->pt() << endl;
300  }
301  }
302 
304  const unsigned int nComposites(compositeIds_.size());
305  if (nComposites > 0) {
306  LogVerbatim("HLTEventAnalyzerRAW") << " Composites: " << nComposites << " - the objects: # id pt" << endl;
307  for (unsigned int i = 0; i != nComposites; ++i) {
308  LogVerbatim("HLTEventAnalyzerRAW")
309  << " " << i << " " << compositeIds_[i] << " " << compositeRefs_[i]->pt() << endl;
310  }
311  }
312 
314  const unsigned int nBaseMETs(basemetIds_.size());
315  if (nBaseMETs > 0) {
316  LogVerbatim("HLTEventAnalyzerRAW") << " BaseMETs: " << nBaseMETs << " - the objects: # id pt" << endl;
317  for (unsigned int i = 0; i != nBaseMETs; ++i) {
318  LogVerbatim("HLTEventAnalyzerRAW")
319  << " " << i << " " << basemetIds_[i] << " " << basemetRefs_[i]->pt() << endl;
320  }
321  }
322 
324  const unsigned int nCaloMETs(calometIds_.size());
325  if (nCaloMETs > 0) {
326  LogVerbatim("HLTEventAnalyzerRAW") << " CaloMETs: " << nCaloMETs << " - the objects: # id pt" << endl;
327  for (unsigned int i = 0; i != nCaloMETs; ++i) {
328  LogVerbatim("HLTEventAnalyzerRAW")
329  << " " << i << " " << calometIds_[i] << " " << calometRefs_[i]->pt() << endl;
330  }
331  }
332 
334  const unsigned int nPixTracks(pixtrackIds_.size());
335  if (nPixTracks > 0) {
336  LogVerbatim("HLTEventAnalyzerRAW") << " PixTracks: " << nPixTracks << " - the objects: # id pt" << endl;
337  for (unsigned int i = 0; i != nPixTracks; ++i) {
338  LogVerbatim("HLTEventAnalyzerRAW")
339  << " " << i << " " << pixtrackIds_[i] << " " << pixtrackRefs_[i]->pt() << endl;
340  }
341  }
342 
344  const unsigned int nL1EM(l1emIds_.size());
345  if (nL1EM > 0) {
346  LogVerbatim("HLTEventAnalyzerRAW") << " L1EM: " << nL1EM << " - the objects: # id pt" << endl;
347  for (unsigned int i = 0; i != nL1EM; ++i) {
348  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << l1emIds_[i] << " " << l1emRefs_[i]->pt() << endl;
349  }
350  }
351 
353  const unsigned int nL1Muon(l1muonIds_.size());
354  if (nL1Muon > 0) {
355  LogVerbatim("HLTEventAnalyzerRAW") << " L1Muon: " << nL1Muon << " - the objects: # id pt" << endl;
356  for (unsigned int i = 0; i != nL1Muon; ++i) {
357  LogVerbatim("HLTEventAnalyzerRAW")
358  << " " << i << " " << l1muonIds_[i] << " " << l1muonRefs_[i]->pt() << endl;
359  }
360  }
361 
363  const unsigned int nL1Jet(l1jetIds_.size());
364  if (nL1Jet > 0) {
365  LogVerbatim("HLTEventAnalyzerRAW") << " L1Jet: " << nL1Jet << " - the objects: # id pt" << endl;
366  for (unsigned int i = 0; i != nL1Jet; ++i) {
367  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << l1jetIds_[i] << " " << l1jetRefs_[i]->pt() << endl;
368  }
369  }
370 
372  const unsigned int nL1EtMiss(l1etmissIds_.size());
373  if (nL1EtMiss > 0) {
374  LogVerbatim("HLTEventAnalyzerRAW") << " L1EtMiss: " << nL1EtMiss << " - the objects: # id pt" << endl;
375  for (unsigned int i = 0; i != nL1EtMiss; ++i) {
376  LogVerbatim("HLTEventAnalyzerRAW")
377  << " " << i << " " << l1etmissIds_[i] << " " << l1etmissRefs_[i]->pt() << endl;
378  }
379  }
380 
382  const unsigned int nL1HfRings(l1hfringsIds_.size());
383  if (nL1HfRings > 0) {
384  LogVerbatim("HLTEventAnalyzerRAW") << " L1HfRings: " << nL1HfRings << " - the objects: # id 4 4" << endl;
385  for (unsigned int i = 0; i != nL1HfRings; ++i) {
386  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << l1hfringsIds_[i] << " "
391  << l1hfringsRefs_[i]->hfBitCount(l1extra::L1HFRings::kRing1PosEta) << " "
392  << l1hfringsRefs_[i]->hfBitCount(l1extra::L1HFRings::kRing1NegEta) << " "
393  << l1hfringsRefs_[i]->hfBitCount(l1extra::L1HFRings::kRing2PosEta) << " "
394  << l1hfringsRefs_[i]->hfBitCount(l1extra::L1HFRings::kRing2NegEta) << endl;
395  }
396  }
397 
399  const unsigned int nL1TMuon(l1tmuonIds_.size());
400  if (nL1TMuon > 0) {
401  LogVerbatim("HLTEventAnalyzerRAW") << " L1TMuon: " << nL1TMuon << " - the objects: # id pt" << endl;
402  for (unsigned int i = 0; i != nL1TMuon; ++i) {
403  LogVerbatim("HLTEventAnalyzerRAW")
404  << " " << i << " " << l1tmuonIds_[i] << " " << l1tmuonRefs_[i]->pt() << endl;
405  }
406  }
407 
409  const unsigned int nL1TMuonShower(l1tmuonShowerIds_.size());
410  if (nL1TMuonShower > 0) {
411  LogVerbatim("HLTEventAnalyzerRAW")
412  << " L1TMuonShower: " << nL1TMuonShower << " - the objects: # id pt" << endl;
413  for (unsigned int i = 0; i != nL1TMuonShower; ++i) {
414  LogVerbatim("HLTEventAnalyzerRAW")
415  << " " << i << " " << l1tmuonShowerIds_[i] << " " << l1tmuonShowerRefs_[i]->pt() << endl;
416  }
417  }
418 
420  const unsigned int nL1TEGamma(l1tegammaIds_.size());
421  if (nL1TEGamma > 0) {
422  LogVerbatim("HLTEventAnalyzerRAW") << " L1TEGamma: " << nL1TEGamma << " - the objects: # id pt" << endl;
423  for (unsigned int i = 0; i != nL1TEGamma; ++i) {
424  LogVerbatim("HLTEventAnalyzerRAW")
425  << " " << i << " " << l1tegammaIds_[i] << " " << l1tegammaRefs_[i]->pt() << endl;
426  }
427  }
428 
430  const unsigned int nL1TJet(l1tjetIds_.size());
431  if (nL1TJet > 0) {
432  LogVerbatim("HLTEventAnalyzerRAW") << " L1TJet: " << nL1TJet << " - the objects: # id pt" << endl;
433  for (unsigned int i = 0; i != nL1TJet; ++i) {
434  LogVerbatim("HLTEventAnalyzerRAW")
435  << " " << i << " " << l1tjetIds_[i] << " " << l1tjetRefs_[i]->pt() << endl;
436  }
437  }
438 
440  const unsigned int nL1TTau(l1ttauIds_.size());
441  if (nL1TTau > 0) {
442  LogVerbatim("HLTEventAnalyzerRAW") << " L1TTau: " << nL1TTau << " - the objects: # id pt" << endl;
443  for (unsigned int i = 0; i != nL1TTau; ++i) {
444  LogVerbatim("HLTEventAnalyzerRAW")
445  << " " << i << " " << l1ttauIds_[i] << " " << l1ttauRefs_[i]->pt() << endl;
446  }
447  }
448 
450  const unsigned int nL1TEtSum(l1tetsumIds_.size());
451  if (nL1TEtSum > 0) {
452  LogVerbatim("HLTEventAnalyzerRAW") << " L1TEtSum: " << nL1TEtSum << " - the objects: # id pt" << endl;
453  for (unsigned int i = 0; i != nL1TEtSum; ++i) {
454  LogVerbatim("HLTEventAnalyzerRAW")
455  << " " << i << " " << l1tetsumIds_[i] << " " << l1tetsumRefs_[i]->pt() << endl;
456  }
457  }
458 
459  /* Phase-2 */
460 
462  const unsigned int nL1TTkMuons(l1ttkmuIds_.size());
463  if (nL1TTkMuons > 0) {
464  LogVerbatim("HLTEventAnalyzerRAW") << " L1TTkMuons: " << nL1TTkMuons << " - the objects: # id pt" << endl;
465  for (unsigned int i = 0; i != nL1TTkMuons; ++i) {
466  LogVerbatim("HLTEventAnalyzerRAW")
467  << " " << i << " " << l1ttkmuIds_[i] << " " << l1ttkmuRefs_[i]->pt() << endl;
468  }
469  }
470 
472  const unsigned int nL1TTkElectrons(l1ttkeleIds_.size());
473  if (nL1TTkElectrons > 0) {
474  LogVerbatim("HLTEventAnalyzerRAW")
475  << " L1TTkElectrons: " << nL1TTkElectrons << " - the objects: # id pt" << endl;
476  for (unsigned int i = 0; i != nL1TTkElectrons; ++i) {
477  LogVerbatim("HLTEventAnalyzerRAW")
478  << " " << i << " " << l1ttkeleIds_[i] << " " << l1ttkeleRefs_[i]->pt() << endl;
479  }
480  }
481 
483  const unsigned int nL1TTkEMs(l1ttkemIds_.size());
484  if (nL1TTkEMs > 0) {
485  LogVerbatim("HLTEventAnalyzerRAW") << " L1TTkEMs: " << nL1TTkEMs << " - the objects: # id pt" << endl;
486  for (unsigned int i = 0; i != nL1TTkEMs; ++i) {
487  LogVerbatim("HLTEventAnalyzerRAW")
488  << " " << i << " " << l1ttkemIds_[i] << " " << l1ttkemRefs_[i]->pt() << endl;
489  }
490  }
491 
493  const unsigned int nL1TPFJets(l1tpfjetIds_.size());
494  if (nL1TPFJets > 0) {
495  LogVerbatim("HLTEventAnalyzerRAW") << " L1TPFJets: " << nL1TPFJets << " - the objects: # id pt" << endl;
496  for (unsigned int i = 0; i != nL1TPFJets; ++i) {
497  LogVerbatim("HLTEventAnalyzerRAW")
498  << " " << i << " " << l1tpfjetIds_[i] << " " << l1tpfjetRefs_[i]->pt() << endl;
499  }
500  }
501 
503  const unsigned int nL1TPFTaus(l1tpftauIds_.size());
504  if (nL1TPFTaus > 0) {
505  LogVerbatim("HLTEventAnalyzerRAW") << " L1TPFTaus: " << nL1TPFTaus << " - the objects: # id pt" << endl;
506  for (unsigned int i = 0; i != nL1TPFTaus; ++i) {
507  LogVerbatim("HLTEventAnalyzerRAW")
508  << " " << i << " " << l1tpftauIds_[i] << " " << l1tpftauRefs_[i]->pt() << endl;
509  }
510  }
511 
513  const unsigned int nL1THPSPFTaus(l1thpspftauIds_.size());
514  if (nL1THPSPFTaus > 0) {
515  LogVerbatim("HLTEventAnalyzerRAW")
516  << " L1THPSPFTaus: " << nL1THPSPFTaus << " - the objects: # id pt" << endl;
517  for (unsigned int i = 0; i != nL1THPSPFTaus; ++i) {
518  LogVerbatim("HLTEventAnalyzerRAW")
519  << " " << i << " " << l1thpspftauIds_[i] << " " << l1thpspftauRefs_[i]->pt() << endl;
520  }
521  }
522 
524  const unsigned int nL1TPFTracks(l1tpftrackIds_.size());
525  if (nL1TPFTracks > 0) {
526  LogVerbatim("HLTEventAnalyzerRAW") << " L1TPFTracks: " << nL1TPFTracks << " - the objects: # id pt" << endl;
527  for (unsigned int i = 0; i != nL1TPFTracks; ++i) {
528  LogVerbatim("HLTEventAnalyzerRAW")
529  << " " << i << " " << l1tpftrackIds_[i] << " " << l1tpftrackRefs_[i]->pt() << endl;
530  }
531  }
532 
534  const unsigned int nPFJets(pfjetIds_.size());
535  if (nPFJets > 0) {
536  LogVerbatim("HLTEventAnalyzerRAW") << " PFJets: " << nPFJets << " - the objects: # id pt" << endl;
537  for (unsigned int i = 0; i != nPFJets; ++i) {
538  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << pfjetIds_[i] << " " << pfjetRefs_[i]->pt() << endl;
539  }
540  }
541 
543  const unsigned int nPFTaus(pftauIds_.size());
544  if (nPFTaus > 0) {
545  LogVerbatim("HLTEventAnalyzerRAW") << " PFTaus: " << nPFTaus << " - the objects: # id pt" << endl;
546  for (unsigned int i = 0; i != nPFTaus; ++i) {
547  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << pftauIds_[i] << " " << pftauRefs_[i]->pt() << endl;
548  }
549  }
550 
552  const unsigned int nPfMETs(pfmetIds_.size());
553  if (nPfMETs > 0) {
554  LogVerbatim("HLTEventAnalyzerRAW") << " PfMETs: " << nPfMETs << " - the objects: # id pt" << endl;
555  for (unsigned int i = 0; i != nPfMETs; ++i) {
556  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << pfmetIds_[i] << " " << pfmetRefs_[i]->pt() << endl;
557  }
558  }
559  }
560  }
561 
562  return;
563 }
size
Write out results.
unsigned int index(const unsigned int i) const
Get index (slot position) of module giving the decision of the ith path.
bool accept() const
Has at least one path accepted the event?
Log< level::Info, true > LogVerbatim
const std::string & triggerName(unsigned int triggerIndex) const
trigger::VRl1ttkele l1ttkeleRefs_
trigger::Vids l1tmuonShowerIds_
trigger::Vids compositeIds_
trigger::Vids l1thpspftauIds_
trigger::Vids l1etmissIds_
bool error() const
Has any path encountered an error (exception)
edm::Handle< edm::TriggerResults > triggerResultsHandle_
additional class data memebers
std::string encode() const
Definition: InputTag.cc:159
trigger::VRl1muon l1muonRefs_
trigger::VRl1tmuonShower l1tmuonShowerRefs_
trigger::VRl1ttau l1ttauRefs_
trigger::Vids electronIds_
const edm::InputTag triggerEventWithRefsTag_
trigger::VRl1em l1emRefs_
trigger::Vids l1tegammaIds_
const std::string moduleType(const std::string &module) const
C++ class name of module.
trigger::VRpftau pftauRefs_
trigger::VRl1tpftrack l1tpftrackRefs_
void endRun(edm::Run const &, edm::EventSetup const &) override
trigger::VRl1tjet l1tjetRefs_
assert(be >=bs)
HLTEventAnalyzerRAW(const edm::ParameterSet &)
const edm::InputTag triggerResultsTag_
trigger::VRpfjet pfjetRefs_
bool wasrun() const
Was at least one path run?
trigger::Vids photonIds_
payload extracted from TriggerEventWithRefs
trigger::VRl1jet l1jetRefs_
void beginRun(edm::Run const &, edm::EventSetup const &) override
unsigned int size() const
Get number of paths stored.
trigger::VRcomposite compositeRefs_
const std::string processName_
module config parameters
int iEvent
Definition: GenABIO.cc:224
void dump(const std::string &what) const
Dumping config info to cout.
const edm::EDGetTokenT< trigger::TriggerEventWithRefs > triggerEventWithRefsToken_
trigger::VRphoton photonRefs_
unsigned int size() const
number of trigger paths in trigger table
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
size_type filterIndex(const edm::InputTag &filterTag) const
index from tag
HLTConfigProvider hltConfig_
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
trigger::VRpfmet pfmetRefs_
~HLTEventAnalyzerRAW() override
void analyze(const edm::Event &, const edm::EventSetup &) override
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
trigger::VRelectron electronRefs_
trigger::VRl1tegamma l1tegammaRefs_
trigger::VRl1tpftau l1tpftauRefs_
const edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
trigger::Vids pixtrackIds_
trigger::Vids l1hfringsIds_
trigger::VRl1etmiss l1etmissRefs_
trigger::Vids l1ttkeleIds_
trigger::VRl1tpfjet l1tpfjetRefs_
trigger::VRl1thpspftau l1thpspftauRefs_
edm::Handle< trigger::TriggerEventWithRefs > triggerEventWithRefsHandle_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
trigger::Vids l1tpftrackIds_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
trigger::VRl1hfrings l1hfringsRefs_
bool isValid() const
Definition: HandleBase.h:70
trigger::VRcalomet calometRefs_
virtual void analyzeTrigger(const edm::Event &, const edm::EventSetup &, const std::string &triggerName)
fixed size matrix
HLT enums.
trigger::VRl1ttkmuon l1ttkmuRefs_
const std::string triggerName_
trigger::VRmuon muonRefs_
trigger::VRl1tmuon l1tmuonRefs_
trigger::VRpixtrack pixtrackRefs_
trigger::VRbasemet basemetRefs_
trigger::VRl1ttkem l1ttkemRefs_
trigger::Vids l1tetsumIds_
Definition: Run.h:45
trigger::VRl1tetsum l1tetsumRefs_
void getObjects(size_type filter, Vids &ids, VRphoton &photons) const
extract Ref<C>s for a specific filter and of specific physics type