CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
edm::HLTGlobalStatus Class Reference

#include <HLTGlobalStatus.h>

Inheritance diagram for edm::HLTGlobalStatus:
edm::TriggerResults

Public Member Functions

bool accept () const
 Has at least one path accepted the event? More...
 
bool accept (const unsigned int i) const
 Has ith path accepted the event? More...
 
const HLTPathStatusat (const unsigned int i) const
 
HLTPathStatusat (const unsigned int i)
 
bool error () const
 Has any path encountered an error (exception) More...
 
bool error (const unsigned int i) const
 Has ith path encountered an error (exception)? More...
 
 HLTGlobalStatus (const unsigned int n=0)
 Constructor - for n paths. More...
 
unsigned int index (const unsigned int i) const
 Get index (slot position) of module giving the decision of the ith path. More...
 
HLTGlobalStatusoperator= (HLTGlobalStatus const &rhs)
 copy assignment implemented with swap() More...
 
const HLTPathStatusoperator[] (const unsigned int i) const
 
HLTPathStatusoperator[] (const unsigned int i)
 
void reset ()
 Reset status for all paths. More...
 
void reset (const unsigned int i)
 Reset the ith path. More...
 
unsigned int size () const
 Get number of paths stored. More...
 
hlt::HLTState state (const unsigned int i) const
 Get status of ith path. More...
 
void swap (HLTGlobalStatus &other)
 swap function More...
 
bool wasrun () const
 Was at least one path run? More...
 
bool wasrun (const unsigned int i) const
 Was ith path run? More...
 

Private Member Functions

bool State (unsigned int icase) const
 Global state variable calculated on the fly. More...
 

Private Attributes

std::vector< HLTPathStatuspaths_
 Status of each HLT path. More...
 

Detailed Description

The HLT global status, summarising the status of the individual HLT triggers, is implemented as a vector of HLTPathStatus objects.

If the user wants map-like indexing of HLT triggers through their names as key, s/he must use the TriggerNamesService.

Author
Martin Grunewald

Definition at line 25 of file HLTGlobalStatus.h.

Constructor & Destructor Documentation

edm::HLTGlobalStatus::HLTGlobalStatus ( const unsigned int  n = 0)
inline

Constructor - for n paths.

Definition at line 32 of file HLTGlobalStatus.h.

32 : paths_(n) {}
std::vector< HLTPathStatus > paths_
Status of each HLT path.

Member Function Documentation

bool edm::HLTGlobalStatus::accept ( ) const
inline

Has at least one path accepted the event?

Definition at line 49 of file HLTGlobalStatus.h.

References State().

Referenced by accept(), edm::TriggerResultsByName::accept(), TriggerHelper::acceptHltLogicalExpression(), GenericTriggerEventFlag::acceptHltLogicalExpression(), ElectronGeneralAnalyzer::analyze(), CaloTowerAnalyzer::analyze(), EventShapeDQM::analyze(), DQMHcalIsolatedBunchAlCaReco::analyze(), HeavyIonUCCDQM::analyze(), HLTTauDQMTagAndProbePlotter::analyze(), SUSY_HLT_InclusiveHT::analyze(), SUSY_HLT_DoubleMuon_Hadronic::analyze(), HLTInspect::analyze(), SUSY_HLT_PhotonHT::analyze(), SUSY_HLT_PhotonMET::analyze(), QcdPhotonsDQM::analyze(), SUSY_HLT_DoubleEle_Hadronic::analyze(), EwkMuLumiMonitorDQM::analyze(), HLTVertexPerformanceAnalyzer::analyze(), PixelVTXMonitor::analyze(), SUSY_HLT_DiJet_MET::analyze(), BeamMonitor::analyze(), SUSY_HLT_Muon_Hadronic::analyze(), SUSY_HLT_VBF_Mu::analyze(), SUSY_HLT_MuEle_Hadronic::analyze(), EwkDQM::analyze(), SUSY_HLT_alphaT::analyze(), dimuonHLTFilterCheck::analyze(), TopDiLeptonDQM::analyze(), HotlineDQM::analyze(), HLTBTagPerformanceAnalyzer::analyze(), SUSY_HLT_Razor::analyze(), MuonRecoOneHLT::analyze(), MuTriggerAnalyzer::analyze(), DQMExample_Step1::analyze(), GeneralHLTOffline::analyze(), SUSY_HLT_SingleLepton::analyze(), HeavyFlavorValidation::analyze(), HcalRaddamMuon::analyze(), HLTInfo::analyze(), HLTMuonMatchAndPlot::analyze(), HLTHiggsSubAnalysis::analyze(), HLTScalers::analyze(), DQMPFCandidateAnalyzer::analyze(), HcalHBHEMuonAnalyzer::analyze(), IsoTrackCalibration::analyze(), HLTrigReport::analyze(), HLTExoticaSubAnalysis::analyze(), HLTriggerJSONMonitoring::analyze(), StudyHLT::analyze(), L1Muon2RecoTreeProducer::analyze(), EmDQMReco::analyze(), JetAnalyzer::analyze(), HLTObjectMonitorProtonLead::analyze(), HLTObjectMonitor::analyze(), HcalIsoTrkAnalyzer::analyze(), ErsatzMEt::analyze(), HLTObjectsMonitor::analyze(), METAnalyzer::analyze(), IsolatedTracksCone::analyze(), TrackerDpgAnalysis::analyze(), ZCounting::analyzeElectrons(), ZCounting::analyzeMuons(), HLTEventAnalyzerAOD::analyzeTrigger(), HLTEventAnalyzerRAW::analyzeTrigger(), Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), CSCEfficiency::applyTrigger(), heppy::TriggerBitChecker::check(), HltDiff::compare(), HLTBitComputer::compute(), CSCValidation::doHLT(), L1MetFilterRecoTreeProducer::doMetFilters(), ZeeCalibration::duringLoop(), MuScleFit::duringLoop(), HLTBitVariable::eval(), FWHLTTriggerTableView::fillAverageAcceptFractions(), TriggerOutputBranches::fillColumn(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), QcdUeDQM::fillHltBits(), QcdLowPtDQM::fillHltBits(), ZeePlots::fillHLTInfo(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), FWHLTTriggerTableView::fillTable(), CastorDigiMonitor::fillTrigRes(), PdfSystematicsAnalyzer::filter(), SimpleSystematicsAnalyzer::filter(), HLTPathSelector::filter(), WMuNuValidator::filter(), WMuNuSelector::filter(), PhysDecl::filter(), HltComparator::filter(), HLTHighLevel::filter(), AlCaIsolatedBunchFilter::filter(), AlCaIsoTracksProducerFilter::filter(), AlCaIsolatedBunchSelector::filter(), PrescalerFHN::filter(), AlCaHEMuonFilter::filter(), AlCaHBHEMuonFilter::filter(), AlCaLowPUHBHEMuonFilter::filter(), AlCaIsoTracksFilter::filter(), ZeeCandidateFilter::filter(), FWFileEntry::filterEventsWithCustomParser(), HLTTauDQMPath::fired(), HLTJetMETValidation::getHLTResults(), dqmoffline::l1t::getTriggerResults(), esMonitoring.FDJsonServer::handle_accept(), LeptonSkimming::hltFired(), JetMETHLTOfflineSource::isHLTPathAccepted(), triggerExpression::PathReader::operator()(), TrigObjTnPHistColl::PathSelector::operator()(), hltdqm::passTrig(), FWPathsPopup::postEvent(), PrescaleWeightProvider::prescaleWeight(), CandidateTriggerObjectProducer::produce(), pat::PATTriggerEventProducer::produce(), pat::PATTriggerProducer::produce(), GenFilterEfficiencyProducer::produce(), HLTEventSelector::select(), AlCaIsoTracksProducer::select(), L1Analysis::L1AnalysisEvent::Set(), egHLT::OffHelper::setTrigInfo(), GsfElectronDataAnalyzer::trigger(), and DQMAnalyzer::trigger().

49 { return State(1); }
bool State(unsigned int icase) const
Global state variable calculated on the fly.
bool edm::HLTGlobalStatus::accept ( const unsigned int  i) const
inline

Has ith path accepted the event?

Definition at line 63 of file HLTGlobalStatus.h.

References edm::HLTPathStatus::accept(), and at().

Referenced by Vispa.Gui.BoxContentDialog.BoxContentDialog::apply(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::apply(), and esMonitoring.FDJsonServer::handle_accept().

63 { return at(i).accept(); }
const HLTPathStatus & at(const unsigned int i) const
bool accept() const
has this path accepted the event?
Definition: HLTPathStatus.h:59
const HLTPathStatus& edm::HLTGlobalStatus::at ( const unsigned int  i) const
inline
HLTPathStatus& edm::HLTGlobalStatus::at ( const unsigned int  i)
inline

Definition at line 56 of file HLTGlobalStatus.h.

56 { return paths_.at(i); }
std::vector< HLTPathStatus > paths_
Status of each HLT path.
bool edm::HLTGlobalStatus::error ( ) const
inline
bool edm::HLTGlobalStatus::error ( const unsigned int  i) const
inline

Has ith path encountered an error (exception)?

Definition at line 65 of file HLTGlobalStatus.h.

References at(), and edm::HLTPathStatus::error().

Referenced by Page1Parser.Page1Parser::check_for_whole_start_tag().

65 { return at(i).error(); }
const HLTPathStatus & at(const unsigned int i) const
bool error() const
has this path encountered an error (exception)?
Definition: HLTPathStatus.h:61
unsigned int edm::HLTGlobalStatus::index ( const unsigned int  i) const
inline
HLTGlobalStatus& edm::HLTGlobalStatus::operator= ( HLTGlobalStatus const &  rhs)
inline

copy assignment implemented with swap()

Definition at line 76 of file HLTGlobalStatus.h.

References swap(), and groupFilesInBlocks::temp.

76  {
77  HLTGlobalStatus temp(rhs);
78  this->swap(temp);
79  return *this;
80  }
void swap(HLTGlobalStatus &other)
swap function
HLTGlobalStatus(const unsigned int n=0)
Constructor - for n paths.
const HLTPathStatus& edm::HLTGlobalStatus::operator[] ( const unsigned int  i) const
inline

Definition at line 57 of file HLTGlobalStatus.h.

57 { return paths_.at(i); }
std::vector< HLTPathStatus > paths_
Status of each HLT path.
HLTPathStatus& edm::HLTGlobalStatus::operator[] ( const unsigned int  i)
inline

Definition at line 58 of file HLTGlobalStatus.h.

58 { return paths_.at(i); }
std::vector< HLTPathStatus > paths_
Status of each HLT path.
void edm::HLTGlobalStatus::reset ( void  )
inline

Reset status for all paths.

Definition at line 38 of file HLTGlobalStatus.h.

References mps_fire::i, dqmiodumpmetadata::n, and size().

Referenced by edm::EventSelector::maskTriggerResults(), edm::EventSelector::selectionIsValid(), and edm::EventSelector::testSelectionOverlap().

38  {
39  const unsigned int n(size());
40  for (unsigned int i = 0; i != n; ++i)
41  paths_[i].reset();
42  }
void reset()
Reset status for all paths.
unsigned int size() const
Get number of paths stored.
std::vector< HLTPathStatus > paths_
Status of each HLT path.
void edm::HLTGlobalStatus::reset ( const unsigned int  i)
inline

Reset the ith path.

Definition at line 72 of file HLTGlobalStatus.h.

References at(), and edm::HLTPathStatus::reset().

72 { at(i).reset(); }
void reset()
reset this path
Definition: HLTPathStatus.h:54
const HLTPathStatus & at(const unsigned int i) const
unsigned int edm::HLTGlobalStatus::size ( void  ) const
inline

Get number of paths stored.

Definition at line 35 of file HLTGlobalStatus.h.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), ElectronGeneralAnalyzer::analyze(), DQMHcalIsolatedBunchAlCaReco::analyze(), HLTEventAnalyzerAOD::analyze(), HLTEventAnalyzerRAW::analyze(), BeamMonitor::analyze(), EwkDQM::analyze(), TopDiLeptonDQM::analyze(), dimuonHLTFilterCheck::analyze(), MuTriggerAnalyzer::analyze(), HigPhotonJetHLTOfflineSource::analyze(), GeneralHLTOffline::analyze(), HcalRaddamMuon::analyze(), HLTInfo::analyze(), HLTScalers::analyze(), HcalHBHEMuonAnalyzer::analyze(), IsoTrackCalibration::analyze(), HLTriggerJSONMonitoring::analyze(), StudyHLT::analyze(), HcalIsoTrkAnalyzer::analyze(), ErsatzMEt::analyze(), IsolatedTracksCone::analyze(), TrackerDpgAnalysis::analyze(), edm::EventSelector::containsExceptions(), CSCValidation::doHLT(), TriggerRatesMonitor::dqmAnalyze(), ZeeCalibration::duringLoop(), ZeePlots::fillHLTInfo(), CastorDigiMonitor::fillTrigRes(), HLTPathSelector::filter(), AlCaIsoTracksProducerFilter::filter(), AlCaIsolatedBunchFilter::filter(), AlCaIsolatedBunchSelector::filter(), HLTHighLevel::filter(), PrescalerFHN::filter(), AlCaHEMuonFilter::filter(), AlCaHBHEMuonFilter::filter(), AlCaLowPUHBHEMuonFilter::filter(), AlCaIsoTracksFilter::filter(), ZeeCandidateFilter::filter(), HSCPTreeBuilder::filter(), edm::TriggerResults::find(), HLTJetMETValidation::getHLTResults(), dqmoffline::l1t::getTriggerResults(), edm::service::TriggerNamesService::getTrigPaths(), HLTEventSelector::HLTEventSelector(), LeptonSkimming::hltFired(), HLTHighLevel::init(), PrescalerFHN::init(), ZCounting::initHLT(), HigPhotonJetHLTOfflineSource::isMonitoredTriggerAccepted(), edm::EventSelector::maskTriggerResults(), edm::operator<<(), pat::PackedTriggerPrescales::PackedTriggerPrescales(), hltdqm::passTrig(), FWPathsPopup::postEvent(), CandidateTriggerObjectProducer::produce(), reset(), dqmservices::TriggerSelector::TreeElement::returnStatus(), AlCaIsoTracksProducer::select(), L1Analysis::L1AnalysisEvent::Set(), edm::TriggerResultsByName::size(), State(), GsfElectronDataAnalyzer::trigger(), DQMAnalyzer::trigger(), TriggerOutputBranches::triggerNames(), edm::EventBase::triggerNames_(), edm::TriggerResultsByName::TriggerResultsByName(), and TriggerOutputBranches::updateTriggerNames().

35 { return paths_.size(); }
std::vector< HLTPathStatus > paths_
Status of each HLT path.
hlt::HLTState edm::HLTGlobalStatus::state ( const unsigned int  i) const
inline
bool edm::HLTGlobalStatus::State ( unsigned int  icase) const
inlineprivate

Global state variable calculated on the fly.

Definition at line 84 of file HLTGlobalStatus.h.

References edm::hlt::Exception, HLT_2018_cff::flags, mps_fire::i, dqmiodumpmetadata::n, edm::hlt::Pass, edm::hlt::Ready, alignCSCRings::s, size(), and state().

Referenced by accept(), error(), and wasrun().

84  {
85  bool flags[3] = {false, false, false};
86  const unsigned int n(size());
87  for (unsigned int i = 0; i != n; ++i) {
88  const hlt::HLTState s(state(i));
89  if (s != hlt::Ready) {
90  flags[0] = true; // at least one trigger was run
91  if (s == hlt::Pass) {
92  flags[1] = true; // at least one trigger accepted
93  } else if (s == hlt::Exception) {
94  flags[2] = true; // at least one trigger with error
95  }
96  }
97  }
98  return flags[icase];
99  }
not [yet] run
Definition: HLTenums.h:17
HLTState
status of a trigger path
Definition: HLTenums.h:16
accept
Definition: HLTenums.h:18
unsigned int size() const
Get number of paths stored.
hlt::HLTState state(const unsigned int i) const
Get status of ith path.
void edm::HLTGlobalStatus::swap ( HLTGlobalStatus other)
inline

swap function

Definition at line 74 of file HLTGlobalStatus.h.

References paths_.

Referenced by operator=(), edm::TriggerResults::swap(), edm::swap(), and std::swap().

74 { paths_.swap(other.paths_); }
std::vector< HLTPathStatus > paths_
Status of each HLT path.
bool edm::HLTGlobalStatus::wasrun ( ) const
inline
bool edm::HLTGlobalStatus::wasrun ( const unsigned int  i) const
inline

Was ith path run?

Definition at line 61 of file HLTGlobalStatus.h.

References at(), and edm::HLTPathStatus::wasrun().

61 { return at(i).wasrun(); }
bool wasrun() const
was this path run?
Definition: HLTPathStatus.h:57
const HLTPathStatus & at(const unsigned int i) const

Member Data Documentation

std::vector<HLTPathStatus> edm::HLTGlobalStatus::paths_
private