CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
HLTEventAnalyzerRAW Class Reference

#include <HLTEventAnalyzerRAW.h>

Inheritance diagram for HLTEventAnalyzerRAW:
edm::stream::EDAnalyzer<> edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
virtual void analyzeTrigger (const edm::Event &, const edm::EventSetup &, const std::string &triggerName)
 
void beginRun (edm::Run const &, edm::EventSetup const &) override
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
 HLTEventAnalyzerRAW (const edm::ParameterSet &)
 
 ~HLTEventAnalyzerRAW () override
 
- Public Member Functions inherited from edm::stream::EDAnalyzer<>
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Attributes

trigger::Vids basemetIds_
 
trigger::VRbasemet basemetRefs_
 
trigger::Vids calometIds_
 
trigger::VRcalomet calometRefs_
 
trigger::Vids compositeIds_
 
trigger::VRcomposite compositeRefs_
 
trigger::Vids electronIds_
 
trigger::VRelectron electronRefs_
 
HLTConfigProvider hltConfig_
 
trigger::Vids jetIds_
 
trigger::VRjet jetRefs_
 
trigger::Vids l1emIds_
 
trigger::VRl1em l1emRefs_
 
trigger::Vids l1etmissIds_
 
trigger::VRl1etmiss l1etmissRefs_
 
trigger::Vids l1hfringsIds_
 
trigger::VRl1hfrings l1hfringsRefs_
 
trigger::Vids l1jetIds_
 
trigger::VRl1jet l1jetRefs_
 
trigger::Vids l1muonIds_
 
trigger::VRl1muon l1muonRefs_
 
trigger::Vids muonIds_
 
trigger::VRmuon muonRefs_
 
trigger::Vids pfjetIds_
 
trigger::VRpfjet pfjetRefs_
 
trigger::Vids pfmetIds_
 
trigger::VRpfmet pfmetRefs_
 
trigger::Vids pftauIds_
 
trigger::VRpftau pftauRefs_
 
trigger::Vids photonIds_
 payload extracted from TriggerEventWithRefs More...
 
trigger::VRphoton photonRefs_
 
trigger::Vids pixtrackIds_
 
trigger::VRpixtrack pixtrackRefs_
 
const std::string processName_
 module config parameters More...
 
edm::Handle< trigger::TriggerEventWithRefstriggerEventWithRefsHandle_
 
const edm::InputTag triggerEventWithRefsTag_
 
const edm::EDGetTokenT< trigger::TriggerEventWithRefstriggerEventWithRefsToken_
 
const std::string triggerName_
 
edm::Handle< edm::TriggerResultstriggerResultsHandle_
 additional class data memebers More...
 
const edm::InputTag triggerResultsTag_
 
const edm::EDGetTokenT< edm::TriggerResultstriggerResultsToken_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

This class is an EDAnalyzer analyzing the combined HLT information for RAW

Author
Martin Grunewald

See header file for documentation

Author
Martin Grunewald

Definition at line 27 of file HLTEventAnalyzerRAW.h.

Constructor & Destructor Documentation

◆ HLTEventAnalyzerRAW()

HLTEventAnalyzerRAW::HLTEventAnalyzerRAW ( const edm::ParameterSet ps)
explicit

Definition at line 39 of file HLTEventAnalyzerRAW.cc.

40  : processName_(ps.getParameter<std::string>("processName")),
41  triggerName_(ps.getParameter<std::string>("triggerName")),
42  triggerResultsTag_(ps.getParameter<edm::InputTag>("triggerResults")),
43  triggerResultsToken_(consumes<edm::TriggerResults>(triggerResultsTag_)),
44  triggerEventWithRefsTag_(ps.getParameter<edm::InputTag>("triggerEventWithRefs")),
45  triggerEventWithRefsToken_(consumes<trigger::TriggerEventWithRefs>(triggerEventWithRefsTag_)) {
46  using namespace std;
47  using namespace edm;
48 
49  LogVerbatim("HLTEventAnalyzerRAW") << "HLTEventAnalyzerRAW configuration: " << endl
50  << " ProcessName = " << processName_ << endl
51  << " TriggerName = " << triggerName_ << endl
52  << " TriggerResultsTag = " << triggerResultsTag_.encode() << endl
53  << " TriggerEventWithRefsTag = " << triggerEventWithRefsTag_.encode() << endl;
54 }

References edm::InputTag::encode(), processName_, triggerEventWithRefsTag_, triggerName_, and triggerResultsTag_.

◆ ~HLTEventAnalyzerRAW()

HLTEventAnalyzerRAW::~HLTEventAnalyzerRAW ( )
overridedefault

Member Function Documentation

◆ analyze()

void HLTEventAnalyzerRAW::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overridevirtual

Implements edm::stream::EDAnalyzerBase.

Definition at line 99 of file HLTEventAnalyzerRAW.cc.

99  {
100  using namespace std;
101  using namespace edm;
102 
103  LogVerbatim("HLTEventAnalyzerRAW") << endl;
104 
105  // get event products
108  LogVerbatim("HLTEventAnalyzerRAW")
109  << "HLTEventAnalyzerRAW::analyze: Error in getting TriggerResults product from Event!" << endl;
110  return;
111  }
114  LogVerbatim("HLTEventAnalyzerRAW")
115  << "HLTEventAnalyzerRAW::analyze: Error in getting TriggerEventWithRefs product from Event!" << endl;
116  return;
117  }
118  // sanity check
120 
121  // analyze this event for the triggers requested
122  if (triggerName_ == "@") {
123  const unsigned int n(hltConfig_.size());
124  for (unsigned int i = 0; i != n; ++i) {
126  }
127  } else {
129  }
130 
131  return;
132 }

References analyzeTrigger(), cms::cuda::assert(), hltConfig_, mps_fire::i, iEvent, edm::HandleBase::isValid(), dqmiodumpmetadata::n, edm::HLTGlobalStatus::size(), HLTConfigProvider::size(), triggerEventWithRefsHandle_, triggerEventWithRefsToken_, HLTConfigProvider::triggerName(), triggerName_, triggerResultsHandle_, and triggerResultsToken_.

◆ analyzeTrigger()

void HLTEventAnalyzerRAW::analyzeTrigger ( const edm::Event iEvent,
const edm::EventSetup iSetup,
const std::string &  triggerName 
)
virtual

Definition at line 134 of file HLTEventAnalyzerRAW.cc.

136  {
137  using namespace std;
138  using namespace edm;
139  using namespace reco;
140  using namespace trigger;
141 
142  LogVerbatim("HLTEventAnalyzerRAW") << endl;
143 
144  const unsigned int n(hltConfig_.size());
145  const unsigned int triggerIndex(hltConfig_.triggerIndex(triggerName));
146  assert(triggerIndex == iEvent.triggerNames(*triggerResultsHandle_).triggerIndex(triggerName));
147 
148  // abort on invalid trigger name
149  if (triggerIndex >= n) {
150  LogVerbatim("HLTEventAnalyzerRAW") << "HLTEventAnalyzerRAW::analyzeTrigger: path " << triggerName << " - not found!"
151  << endl;
152  return;
153  }
154 
155  LogVerbatim("HLTEventAnalyzerRAW") << "HLTEventAnalyzerRAW::analyzeTrigger: path " << triggerName << " ["
156  << triggerIndex << "]" << endl;
157  // modules on this trigger path
158  const unsigned int m(hltConfig_.size(triggerIndex));
159  const vector<string>& moduleLabels(hltConfig_.moduleLabels(triggerIndex));
160 
161  // Results from TriggerResults product
162  LogVerbatim("HLTEventAnalyzerRAW") << " Trigger path status:"
163  << " WasRun=" << triggerResultsHandle_->wasrun(triggerIndex)
164  << " Accept=" << triggerResultsHandle_->accept(triggerIndex)
165  << " Error =" << triggerResultsHandle_->error(triggerIndex) << endl;
166  const unsigned int moduleIndex(triggerResultsHandle_->index(triggerIndex));
167  LogVerbatim("HLTEventAnalyzerRAW") << " Last active module - label/type: " << moduleLabels[moduleIndex] << "/"
168  << hltConfig_.moduleType(moduleLabels[moduleIndex]) << " [" << moduleIndex
169  << " out of 0-" << (m - 1) << " on this path]" << endl;
170  assert(moduleIndex < m);
171 
172  // Results from TriggerEventWithRefs product
173  photonIds_.clear();
174  photonRefs_.clear();
175  electronIds_.clear();
176  electronRefs_.clear();
177  muonIds_.clear();
178  muonRefs_.clear();
179  jetIds_.clear();
180  jetRefs_.clear();
181  compositeIds_.clear();
182  compositeRefs_.clear();
183  basemetIds_.clear();
184  basemetRefs_.clear();
185  calometIds_.clear();
186  calometRefs_.clear();
187  pixtrackIds_.clear();
188  pixtrackRefs_.clear();
189  l1emIds_.clear();
190  l1emRefs_.clear();
191  l1muonIds_.clear();
192  l1muonRefs_.clear();
193  l1jetIds_.clear();
194  l1jetRefs_.clear();
195  l1etmissIds_.clear();
196  l1etmissRefs_.clear();
197  l1hfringsIds_.clear();
198  l1hfringsRefs_.clear();
199  pfjetIds_.clear();
200  pfjetRefs_.clear();
201  pftauIds_.clear();
202  pftauRefs_.clear();
203  pfmetIds_.clear();
204  pfmetRefs_.clear();
205 
206  // Attention: must look only for modules actually run in this path
207  // for this event!
208  for (unsigned int j = 0; j <= moduleIndex; ++j) {
209  const string& moduleLabel(moduleLabels[j]);
210  const string moduleType(hltConfig_.moduleType(moduleLabel));
211  // check whether the module is packed up in TriggerEventWithRef product
212  const unsigned int filterIndex(triggerEventWithRefsHandle_->filterIndex(InputTag(moduleLabel, "", processName_)));
213  if (filterIndex < triggerEventWithRefsHandle_->size()) {
214  LogVerbatim("HLTEventAnalyzerRAW") << " Filter in slot " << j << " - label/type " << moduleLabel << "/"
215  << moduleType << endl;
216  LogVerbatim("HLTEventAnalyzerRAW") << " Filter packed up at: " << filterIndex << endl;
217  LogVerbatim("HLTEventAnalyzerRAW") << " Accepted objects:" << endl;
218 
220  const unsigned int nPhotons(photonIds_.size());
221  if (nPhotons > 0) {
222  LogVerbatim("HLTEventAnalyzerRAW") << " Photons: " << nPhotons << " - the objects: # id pt" << endl;
223  for (unsigned int i = 0; i != nPhotons; ++i) {
224  LogVerbatim("HLTEventAnalyzerRAW")
225  << " " << i << " " << photonIds_[i] << " " << photonRefs_[i]->pt() << endl;
226  }
227  }
228 
230  const unsigned int nElectrons(electronIds_.size());
231  if (nElectrons > 0) {
232  LogVerbatim("HLTEventAnalyzerRAW") << " Electrons: " << nElectrons << " - the objects: # id pt" << endl;
233  for (unsigned int i = 0; i != nElectrons; ++i) {
234  LogVerbatim("HLTEventAnalyzerRAW")
235  << " " << i << " " << electronIds_[i] << " " << electronRefs_[i]->pt() << endl;
236  }
237  }
238 
240  const unsigned int nMuons(muonIds_.size());
241  if (nMuons > 0) {
242  LogVerbatim("HLTEventAnalyzerRAW") << " Muons: " << nMuons << " - the objects: # id pt" << endl;
243  for (unsigned int i = 0; i != nMuons; ++i) {
244  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << muonIds_[i] << " " << muonRefs_[i]->pt() << endl;
245  }
246  }
247 
249  const unsigned int nJets(jetIds_.size());
250  if (nJets > 0) {
251  LogVerbatim("HLTEventAnalyzerRAW") << " Jets: " << nJets << " - the objects: # id pt" << endl;
252  for (unsigned int i = 0; i != nJets; ++i) {
253  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << jetIds_[i] << " " << jetRefs_[i]->pt() << endl;
254  }
255  }
256 
258  const unsigned int nComposites(compositeIds_.size());
259  if (nComposites > 0) {
260  LogVerbatim("HLTEventAnalyzerRAW") << " Composites: " << nComposites << " - the objects: # id pt" << endl;
261  for (unsigned int i = 0; i != nComposites; ++i) {
262  LogVerbatim("HLTEventAnalyzerRAW")
263  << " " << i << " " << compositeIds_[i] << " " << compositeRefs_[i]->pt() << endl;
264  }
265  }
266 
268  const unsigned int nBaseMETs(basemetIds_.size());
269  if (nBaseMETs > 0) {
270  LogVerbatim("HLTEventAnalyzerRAW") << " BaseMETs: " << nBaseMETs << " - the objects: # id pt" << endl;
271  for (unsigned int i = 0; i != nBaseMETs; ++i) {
272  LogVerbatim("HLTEventAnalyzerRAW")
273  << " " << i << " " << basemetIds_[i] << " " << basemetRefs_[i]->pt() << endl;
274  }
275  }
276 
278  const unsigned int nCaloMETs(calometIds_.size());
279  if (nCaloMETs > 0) {
280  LogVerbatim("HLTEventAnalyzerRAW") << " CaloMETs: " << nCaloMETs << " - the objects: # id pt" << endl;
281  for (unsigned int i = 0; i != nCaloMETs; ++i) {
282  LogVerbatim("HLTEventAnalyzerRAW")
283  << " " << i << " " << calometIds_[i] << " " << calometRefs_[i]->pt() << endl;
284  }
285  }
286 
288  const unsigned int nPixTracks(pixtrackIds_.size());
289  if (nPixTracks > 0) {
290  LogVerbatim("HLTEventAnalyzerRAW") << " PixTracks: " << nPixTracks << " - the objects: # id pt" << endl;
291  for (unsigned int i = 0; i != nPixTracks; ++i) {
292  LogVerbatim("HLTEventAnalyzerRAW")
293  << " " << i << " " << pixtrackIds_[i] << " " << pixtrackRefs_[i]->pt() << endl;
294  }
295  }
296 
298  const unsigned int nL1EM(l1emIds_.size());
299  if (nL1EM > 0) {
300  LogVerbatim("HLTEventAnalyzerRAW") << " L1EM: " << nL1EM << " - the objects: # id pt" << endl;
301  for (unsigned int i = 0; i != nL1EM; ++i) {
302  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << l1emIds_[i] << " " << l1emRefs_[i]->pt() << endl;
303  }
304  }
305 
307  const unsigned int nL1Muon(l1muonIds_.size());
308  if (nL1Muon > 0) {
309  LogVerbatim("HLTEventAnalyzerRAW") << " L1Muon: " << nL1Muon << " - the objects: # id pt" << endl;
310  for (unsigned int i = 0; i != nL1Muon; ++i) {
311  LogVerbatim("HLTEventAnalyzerRAW")
312  << " " << i << " " << l1muonIds_[i] << " " << l1muonRefs_[i]->pt() << endl;
313  }
314  }
315 
317  const unsigned int nL1Jet(l1jetIds_.size());
318  if (nL1Jet > 0) {
319  LogVerbatim("HLTEventAnalyzerRAW") << " L1Jet: " << nL1Jet << " - the objects: # id pt" << endl;
320  for (unsigned int i = 0; i != nL1Jet; ++i) {
321  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << l1jetIds_[i] << " " << l1jetRefs_[i]->pt() << endl;
322  }
323  }
324 
326  const unsigned int nL1EtMiss(l1etmissIds_.size());
327  if (nL1EtMiss > 0) {
328  LogVerbatim("HLTEventAnalyzerRAW") << " L1EtMiss: " << nL1EtMiss << " - the objects: # id pt" << endl;
329  for (unsigned int i = 0; i != nL1EtMiss; ++i) {
330  LogVerbatim("HLTEventAnalyzerRAW")
331  << " " << i << " " << l1etmissIds_[i] << " " << l1etmissRefs_[i]->pt() << endl;
332  }
333  }
334 
336  const unsigned int nL1HfRings(l1hfringsIds_.size());
337  if (nL1HfRings > 0) {
338  LogVerbatim("HLTEventAnalyzerRAW") << " L1HfRings: " << nL1HfRings << " - the objects: # id 4 4" << endl;
339  for (unsigned int i = 0; i != nL1HfRings; ++i) {
340  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << l1hfringsIds_[i] << " "
345  << l1hfringsRefs_[i]->hfBitCount(l1extra::L1HFRings::kRing1PosEta) << " "
346  << l1hfringsRefs_[i]->hfBitCount(l1extra::L1HFRings::kRing1NegEta) << " "
347  << l1hfringsRefs_[i]->hfBitCount(l1extra::L1HFRings::kRing2PosEta) << " "
348  << l1hfringsRefs_[i]->hfBitCount(l1extra::L1HFRings::kRing2NegEta) << endl;
349  }
350  }
351 
353  const unsigned int nPFJets(pfjetIds_.size());
354  if (nPFJets > 0) {
355  LogVerbatim("HLTEventAnalyzerRAW") << " PFJets: " << nPFJets << " - the objects: # id pt" << endl;
356  for (unsigned int i = 0; i != nPFJets; ++i) {
357  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << pfjetIds_[i] << " " << pfjetRefs_[i]->pt() << endl;
358  }
359  }
360 
362  const unsigned int nPFTaus(pftauIds_.size());
363  if (nPFTaus > 0) {
364  LogVerbatim("HLTEventAnalyzerRAW") << " PFTaus: " << nPFTaus << " - the objects: # id pt" << endl;
365  for (unsigned int i = 0; i != nPFTaus; ++i) {
366  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << pftauIds_[i] << " " << pftauRefs_[i]->pt() << endl;
367  }
368  }
369 
371  const unsigned int nPfMETs(pfmetIds_.size());
372  if (nPfMETs > 0) {
373  LogVerbatim("HLTEventAnalyzerRAW") << " PfMETs: " << nPfMETs << " - the objects: # id pt" << endl;
374  for (unsigned int i = 0; i != nPfMETs; ++i) {
375  LogVerbatim("HLTEventAnalyzerRAW") << " " << i << " " << pfmetIds_[i] << " " << pfmetRefs_[i]->pt() << endl;
376  }
377  }
378  }
379  }
380 
381  return;
382 }

References edm::HLTGlobalStatus::accept(), cms::cuda::assert(), basemetIds_, basemetRefs_, calometIds_, calometRefs_, compositeIds_, compositeRefs_, electronIds_, electronRefs_, edm::HLTGlobalStatus::error(), trigger::TriggerEventWithRefs::filterIndex(), trigger::TriggerEventWithRefs::getObjects(), hltConfig_, mps_fire::i, iEvent, edm::HLTGlobalStatus::index(), HLT_2018_cff::InputTag, dqmiolumiharvest::j, jetIds_, jetRefs_, l1extra::L1HFRings::kRing1NegEta, l1extra::L1HFRings::kRing1PosEta, l1extra::L1HFRings::kRing2NegEta, l1extra::L1HFRings::kRing2PosEta, l1emIds_, l1emRefs_, l1etmissIds_, l1etmissRefs_, l1hfringsIds_, l1hfringsRefs_, l1jetIds_, l1jetRefs_, l1muonIds_, l1muonRefs_, visualization-live-secondInstance_cfg::m, HerwigMaxPtPartonFilter_cfi::moduleLabel, HLTConfigProvider::moduleLabels(), HLTConfigProvider::moduleType(), muonIds_, muonRefs_, dqmiodumpmetadata::n, jets_cff::nElectrons, jets_cff::nMuons, pfjetIds_, pfjetRefs_, pfmetIds_, pfmetRefs_, pftauIds_, pftauRefs_, photonIds_, photonRefs_, pixtrackIds_, pixtrackRefs_, processName_, HLTConfigProvider::size(), findQualityFiles::size, triggerEventWithRefsHandle_, HLTConfigProvider::triggerIndex(), PDWG_DiPhoton_SD_cff::triggerName, triggerResultsHandle_, and edm::HLTGlobalStatus::wasrun().

Referenced by analyze().

◆ beginRun()

void HLTEventAnalyzerRAW::beginRun ( edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overridevirtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 72 of file HLTEventAnalyzerRAW.cc.

72  {
73  using namespace std;
74  using namespace edm;
75 
76  bool changed(true);
77  if (hltConfig_.init(iRun, iSetup, processName_, changed)) {
78  if (changed) {
79  // check if trigger name in (new) config
80  if (triggerName_ != "@") { // "@" means: analyze all triggers in config
81  const unsigned int n(hltConfig_.size());
82  const unsigned int triggerIndex(hltConfig_.triggerIndex(triggerName_));
83  if (triggerIndex >= n) {
84  LogVerbatim("HLTEventAnalyzerRAW")
85  << "HLTEventAnalyzerRAW::analyze:"
86  << " TriggerName " << triggerName_ << " not available in (new) config!" << endl;
87  LogVerbatim("HLTEventAnalyzerRAW") << "Available TriggerNames are: " << endl;
88  hltConfig_.dump("Triggers");
89  }
90  }
91  }
92  } else {
93  LogVerbatim("HLTEventAnalyzerRAW") << "HLTEventAnalyzerRAW::analyze:"
94  << " config extraction failure with process name " << processName_ << endl;
95  }
96 }

References HLTConfigProvider::dump(), hltConfig_, HLTConfigProvider::init(), dqmiodumpmetadata::n, processName_, HLTConfigProvider::size(), HLTConfigProvider::triggerIndex(), and triggerName_.

◆ endRun()

void HLTEventAnalyzerRAW::endRun ( edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
overridevirtual

Reimplemented from edm::stream::EDAnalyzerBase.

Definition at line 70 of file HLTEventAnalyzerRAW.cc.

70 {}

◆ fillDescriptions()

void HLTEventAnalyzerRAW::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 61 of file HLTEventAnalyzerRAW.cc.

61  {
63  desc.add<std::string>("processName", "HLT");
64  desc.add<std::string>("triggerName", "@");
65  desc.add<edm::InputTag>("triggerResults", edm::InputTag("TriggerResults", "", "HLT"));
66  desc.add<edm::InputTag>("triggerEventWithRefs", edm::InputTag("hltTriggerSummaryRAW", "", "HLT"));
67  descriptions.add("hltEventAnalyzerRAW", desc);
68 }

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), HLT_2018_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

Member Data Documentation

◆ basemetIds_

trigger::Vids HLTEventAnalyzerRAW::basemetIds_
private

Definition at line 64 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ basemetRefs_

trigger::VRbasemet HLTEventAnalyzerRAW::basemetRefs_
private

Definition at line 65 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ calometIds_

trigger::Vids HLTEventAnalyzerRAW::calometIds_
private

Definition at line 66 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ calometRefs_

trigger::VRcalomet HLTEventAnalyzerRAW::calometRefs_
private

Definition at line 67 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ compositeIds_

trigger::Vids HLTEventAnalyzerRAW::compositeIds_
private

Definition at line 62 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ compositeRefs_

trigger::VRcomposite HLTEventAnalyzerRAW::compositeRefs_
private

Definition at line 63 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ electronIds_

trigger::Vids HLTEventAnalyzerRAW::electronIds_
private

Definition at line 56 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ electronRefs_

trigger::VRelectron HLTEventAnalyzerRAW::electronRefs_
private

Definition at line 57 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ hltConfig_

HLTConfigProvider HLTEventAnalyzerRAW::hltConfig_
private

Definition at line 50 of file HLTEventAnalyzerRAW.h.

Referenced by analyze(), analyzeTrigger(), and beginRun().

◆ jetIds_

trigger::Vids HLTEventAnalyzerRAW::jetIds_
private

Definition at line 60 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ jetRefs_

trigger::VRjet HLTEventAnalyzerRAW::jetRefs_
private

Definition at line 61 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ l1emIds_

trigger::Vids HLTEventAnalyzerRAW::l1emIds_
private

Definition at line 71 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ l1emRefs_

trigger::VRl1em HLTEventAnalyzerRAW::l1emRefs_
private

Definition at line 72 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ l1etmissIds_

trigger::Vids HLTEventAnalyzerRAW::l1etmissIds_
private

Definition at line 77 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ l1etmissRefs_

trigger::VRl1etmiss HLTEventAnalyzerRAW::l1etmissRefs_
private

Definition at line 78 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ l1hfringsIds_

trigger::Vids HLTEventAnalyzerRAW::l1hfringsIds_
private

Definition at line 79 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ l1hfringsRefs_

trigger::VRl1hfrings HLTEventAnalyzerRAW::l1hfringsRefs_
private

Definition at line 80 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ l1jetIds_

trigger::Vids HLTEventAnalyzerRAW::l1jetIds_
private

Definition at line 75 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ l1jetRefs_

trigger::VRl1jet HLTEventAnalyzerRAW::l1jetRefs_
private

Definition at line 76 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ l1muonIds_

trigger::Vids HLTEventAnalyzerRAW::l1muonIds_
private

Definition at line 73 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ l1muonRefs_

trigger::VRl1muon HLTEventAnalyzerRAW::l1muonRefs_
private

Definition at line 74 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ muonIds_

trigger::Vids HLTEventAnalyzerRAW::muonIds_
private

Definition at line 58 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ muonRefs_

trigger::VRmuon HLTEventAnalyzerRAW::muonRefs_
private

Definition at line 59 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ pfjetIds_

trigger::Vids HLTEventAnalyzerRAW::pfjetIds_
private

Definition at line 82 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ pfjetRefs_

trigger::VRpfjet HLTEventAnalyzerRAW::pfjetRefs_
private

Definition at line 83 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ pfmetIds_

trigger::Vids HLTEventAnalyzerRAW::pfmetIds_
private

Definition at line 86 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ pfmetRefs_

trigger::VRpfmet HLTEventAnalyzerRAW::pfmetRefs_
private

Definition at line 87 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ pftauIds_

trigger::Vids HLTEventAnalyzerRAW::pftauIds_
private

Definition at line 84 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ pftauRefs_

trigger::VRpftau HLTEventAnalyzerRAW::pftauRefs_
private

Definition at line 85 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ photonIds_

trigger::Vids HLTEventAnalyzerRAW::photonIds_
private

payload extracted from TriggerEventWithRefs

Definition at line 54 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ photonRefs_

trigger::VRphoton HLTEventAnalyzerRAW::photonRefs_
private

Definition at line 55 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ pixtrackIds_

trigger::Vids HLTEventAnalyzerRAW::pixtrackIds_
private

Definition at line 68 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ pixtrackRefs_

trigger::VRpixtrack HLTEventAnalyzerRAW::pixtrackRefs_
private

Definition at line 69 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

◆ processName_

const std::string HLTEventAnalyzerRAW::processName_
private

module config parameters

Definition at line 40 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger(), beginRun(), and HLTEventAnalyzerRAW().

◆ triggerEventWithRefsHandle_

edm::Handle<trigger::TriggerEventWithRefs> HLTEventAnalyzerRAW::triggerEventWithRefsHandle_
private

Definition at line 49 of file HLTEventAnalyzerRAW.h.

Referenced by analyze(), and analyzeTrigger().

◆ triggerEventWithRefsTag_

const edm::InputTag HLTEventAnalyzerRAW::triggerEventWithRefsTag_
private

Definition at line 44 of file HLTEventAnalyzerRAW.h.

Referenced by HLTEventAnalyzerRAW().

◆ triggerEventWithRefsToken_

const edm::EDGetTokenT<trigger::TriggerEventWithRefs> HLTEventAnalyzerRAW::triggerEventWithRefsToken_
private

Definition at line 45 of file HLTEventAnalyzerRAW.h.

Referenced by analyze().

◆ triggerName_

const std::string HLTEventAnalyzerRAW::triggerName_
private

Definition at line 41 of file HLTEventAnalyzerRAW.h.

Referenced by analyze(), beginRun(), and HLTEventAnalyzerRAW().

◆ triggerResultsHandle_

edm::Handle<edm::TriggerResults> HLTEventAnalyzerRAW::triggerResultsHandle_
private

additional class data memebers

Definition at line 48 of file HLTEventAnalyzerRAW.h.

Referenced by analyze(), and analyzeTrigger().

◆ triggerResultsTag_

const edm::InputTag HLTEventAnalyzerRAW::triggerResultsTag_
private

Definition at line 42 of file HLTEventAnalyzerRAW.h.

Referenced by HLTEventAnalyzerRAW().

◆ triggerResultsToken_

const edm::EDGetTokenT<edm::TriggerResults> HLTEventAnalyzerRAW::triggerResultsToken_
private

Definition at line 43 of file HLTEventAnalyzerRAW.h.

Referenced by analyze().

HLTEventAnalyzerRAW::pixtrackRefs_
trigger::VRpixtrack pixtrackRefs_
Definition: HLTEventAnalyzerRAW.h:69
HLTEventAnalyzerRAW::l1jetRefs_
trigger::VRl1jet l1jetRefs_
Definition: HLTEventAnalyzerRAW.h:76
HLTEventAnalyzerRAW::l1muonRefs_
trigger::VRl1muon l1muonRefs_
Definition: HLTEventAnalyzerRAW.h:74
HLTEventAnalyzerRAW::muonIds_
trigger::Vids muonIds_
Definition: HLTEventAnalyzerRAW.h:58
mps_fire.i
i
Definition: mps_fire.py:355
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
HLTConfigProvider::moduleType
const std::string moduleType(const std::string &module) const
C++ class name of module.
Definition: HLTConfigProvider.h:103
HLTEventAnalyzerRAW::electronRefs_
trigger::VRelectron electronRefs_
Definition: HLTEventAnalyzerRAW.h:57
edm
HLT enums.
Definition: AlignableModifier.h:19
HLTEventAnalyzerRAW::l1emIds_
trigger::Vids l1emIds_
Definition: HLTEventAnalyzerRAW.h:71
HLTEventAnalyzerRAW::l1hfringsIds_
trigger::Vids l1hfringsIds_
Definition: HLTEventAnalyzerRAW.h:79
HLTEventAnalyzerRAW::l1etmissRefs_
trigger::VRl1etmiss l1etmissRefs_
Definition: HLTEventAnalyzerRAW.h:78
HLTEventAnalyzerRAW::pixtrackIds_
trigger::Vids pixtrackIds_
Definition: HLTEventAnalyzerRAW.h:68
HLTEventAnalyzerRAW::compositeIds_
trigger::Vids compositeIds_
Definition: HLTEventAnalyzerRAW.h:62
edm::HLTGlobalStatus::wasrun
bool wasrun() const
Was at least one path run?
Definition: HLTGlobalStatus.h:47
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
HLTEventAnalyzerRAW::calometIds_
trigger::Vids calometIds_
Definition: HLTEventAnalyzerRAW.h:66
cms::cuda::assert
assert(be >=bs)
trigger::TriggerEventWithRefs::getObjects
void getObjects(size_type filter, Vids &ids, VRphoton &photons) const
extract Ref<C>s for a specific filter and of specific physics type
Definition: TriggerEventWithRefs.h:329
HLTEventAnalyzerRAW::pfmetRefs_
trigger::VRpfmet pfmetRefs_
Definition: HLTEventAnalyzerRAW.h:87
edm::HLTGlobalStatus::error
bool error() const
Has any path encountered an error (exception)
Definition: HLTGlobalStatus.h:51
HLTEventAnalyzerRAW::jetIds_
trigger::Vids jetIds_
Definition: HLTEventAnalyzerRAW.h:60
HLTEventAnalyzerRAW::triggerResultsHandle_
edm::Handle< edm::TriggerResults > triggerResultsHandle_
additional class data memebers
Definition: HLTEventAnalyzerRAW.h:48
HLTEventAnalyzerRAW::triggerEventWithRefsHandle_
edm::Handle< trigger::TriggerEventWithRefs > triggerEventWithRefsHandle_
Definition: HLTEventAnalyzerRAW.h:49
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
HLTConfigProvider::dump
void dump(const std::string &what) const
Dumping config info to cout.
Definition: HLTConfigProvider.h:43
HLTEventAnalyzerRAW::analyzeTrigger
virtual void analyzeTrigger(const edm::Event &, const edm::EventSetup &, const std::string &triggerName)
Definition: HLTEventAnalyzerRAW.cc:134
edm::HLTGlobalStatus::index
unsigned int index(const unsigned int i) const
Get index (slot position) of module giving the decision of the ith path.
Definition: HLTGlobalStatus.h:70
HLTEventAnalyzerRAW::l1emRefs_
trigger::VRl1em l1emRefs_
Definition: HLTEventAnalyzerRAW.h:72
HLTConfigProvider::moduleLabels
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
Definition: HLTConfigProvider.h:75
HLTEventAnalyzerRAW::hltConfig_
HLTConfigProvider hltConfig_
Definition: HLTEventAnalyzerRAW.h:50
HLTEventAnalyzerRAW::pfmetIds_
trigger::Vids pfmetIds_
Definition: HLTEventAnalyzerRAW.h:86
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
edm::HLTGlobalStatus::size
unsigned int size() const
Get number of paths stored.
Definition: HLTGlobalStatus.h:35
jets_cff.nMuons
nMuons
Definition: jets_cff.py:209
HLTEventAnalyzerRAW::l1etmissIds_
trigger::Vids l1etmissIds_
Definition: HLTEventAnalyzerRAW.h:77
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
HLTEventAnalyzerRAW::pfjetRefs_
trigger::VRpfjet pfjetRefs_
Definition: HLTEventAnalyzerRAW.h:83
HLTEventAnalyzerRAW::basemetRefs_
trigger::VRbasemet basemetRefs_
Definition: HLTEventAnalyzerRAW.h:65
HLTEventAnalyzerRAW::triggerResultsTag_
const edm::InputTag triggerResultsTag_
Definition: HLTEventAnalyzerRAW.h:42
HLTEventAnalyzerRAW::pftauIds_
trigger::Vids pftauIds_
Definition: HLTEventAnalyzerRAW.h:84
trigger::TriggerEventWithRefs::filterIndex
size_type filterIndex(const edm::InputTag &filterTag) const
index from tag
Definition: TriggerEventWithRefs.h:188
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLTConfigProvider::size
unsigned int size() const
number of trigger paths in trigger table
Definition: HLTConfigProvider.h:62
l1extra::L1HFRings::kRing2PosEta
Definition: L1HFRings.h:33
HLTEventAnalyzerRAW::muonRefs_
trigger::VRmuon muonRefs_
Definition: HLTEventAnalyzerRAW.h:59
HLTEventAnalyzerRAW::triggerName_
const std::string triggerName_
Definition: HLTEventAnalyzerRAW.h:41
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
HLTEventAnalyzerRAW::photonRefs_
trigger::VRphoton photonRefs_
Definition: HLTEventAnalyzerRAW.h:55
HLTEventAnalyzerRAW::jetRefs_
trigger::VRjet jetRefs_
Definition: HLTEventAnalyzerRAW.h:61
HLTEventAnalyzerRAW::l1muonIds_
trigger::Vids l1muonIds_
Definition: HLTEventAnalyzerRAW.h:73
iEvent
int iEvent
Definition: GenABIO.cc:224
jets_cff.nElectrons
nElectrons
Definition: jets_cff.py:214
HLTEventAnalyzerRAW::l1hfringsRefs_
trigger::VRl1hfrings l1hfringsRefs_
Definition: HLTEventAnalyzerRAW.h:80
edm::LogVerbatim
Definition: MessageLogger.h:297
edm::InputTag::encode
std::string encode() const
Definition: InputTag.cc:159
HLTEventAnalyzerRAW::photonIds_
trigger::Vids photonIds_
payload extracted from TriggerEventWithRefs
Definition: HLTEventAnalyzerRAW.h:54
HLTEventAnalyzerRAW::triggerEventWithRefsTag_
const edm::InputTag triggerEventWithRefsTag_
Definition: HLTEventAnalyzerRAW.h:44
HLTEventAnalyzerRAW::electronIds_
trigger::Vids electronIds_
Definition: HLTEventAnalyzerRAW.h:56
HLTConfigProvider::triggerIndex
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
Definition: HLTConfigProvider.h:72
HLTEventAnalyzerRAW::compositeRefs_
trigger::VRcomposite compositeRefs_
Definition: HLTEventAnalyzerRAW.h:63
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
HLTEventAnalyzerRAW::pftauRefs_
trigger::VRpftau pftauRefs_
Definition: HLTEventAnalyzerRAW.h:85
HLTEventAnalyzerRAW::triggerEventWithRefsToken_
const edm::EDGetTokenT< trigger::TriggerEventWithRefs > triggerEventWithRefsToken_
Definition: HLTEventAnalyzerRAW.h:45
l1extra::L1HFRings::kRing2NegEta
Definition: L1HFRings.h:33
std
Definition: JetResolutionObject.h:76
HLTEventAnalyzerRAW::basemetIds_
trigger::Vids basemetIds_
Definition: HLTEventAnalyzerRAW.h:64
HLTConfigProvider::init
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
Definition: HLTConfigProvider.cc:36
HLTEventAnalyzerRAW::triggerResultsToken_
const edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
Definition: HLTEventAnalyzerRAW.h:43
l1extra::L1HFRings::kRing1NegEta
Definition: L1HFRings.h:33
HLTEventAnalyzerRAW::l1jetIds_
trigger::Vids l1jetIds_
Definition: HLTEventAnalyzerRAW.h:75
edm::HLTGlobalStatus::accept
bool accept() const
Has at least one path accepted the event?
Definition: HLTGlobalStatus.h:49
trigger
Definition: HLTPrescaleTableCond.h:8
HLTConfigProvider::triggerName
const std::string & triggerName(unsigned int triggerIndex) const
Definition: HLTConfigProvider.h:69
l1extra::L1HFRings::kRing1PosEta
Definition: L1HFRings.h:33
HerwigMaxPtPartonFilter_cfi.moduleLabel
moduleLabel
Definition: HerwigMaxPtPartonFilter_cfi.py:4
HLTEventAnalyzerRAW::calometRefs_
trigger::VRcalomet calometRefs_
Definition: HLTEventAnalyzerRAW.h:67
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
HLTEventAnalyzerRAW::processName_
const std::string processName_
module config parameters
Definition: HLTEventAnalyzerRAW.h:40
HLTEventAnalyzerRAW::pfjetIds_
trigger::Vids pfjetIds_
Definition: HLTEventAnalyzerRAW.h:82
edm::InputTag
Definition: InputTag.h:15
PDWG_DiPhoton_SD_cff.triggerName
triggerName
Definition: PDWG_DiPhoton_SD_cff.py:37
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443