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 26 of file HLTGlobalStatus.h.

Constructor & Destructor Documentation

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

Constructor - for n paths.

Definition at line 36 of file HLTGlobalStatus.h.

36 : 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 52 of file HLTGlobalStatus.h.

References State().

Referenced by accept(), edm::TriggerResultsByName::accept(), acceptHLT(), TriggerHelper::acceptHltLogicalExpression(), GenericTriggerEventFlag::acceptHltLogicalExpression(), CaloTowerAnalyzer::analyze(), EventShapeDQM::analyze(), ElectronGeneralAnalyzer::analyze(), HeavyIonUCCDQM::analyze(), DQMHcalIsolatedBunchAlCaReco::analyze(), SUSY_HLT_InclusiveHT::analyze(), HLTInspect::analyze(), SUSY_HLT_PhotonHT::analyze(), SUSY_HLT_PhotonMET::analyze(), PixelVTXMonitor::analyze(), HLTVertexPerformanceAnalyzer::analyze(), EwkMuLumiMonitorDQM::analyze(), QcdPhotonsDQM::analyze(), SUSY_HLT_DoubleMuon_Hadronic::analyze(), HTMHTAnalyzer::analyze(), SUSY_HLT_DoubleEle_Hadronic::analyze(), EwkDQM::analyze(), dimuonHLTFilterCheck::analyze(), SUSY_HLT_alphaT::analyze(), BeamMonitor::analyze(), TopDiLeptonDQM::analyze(), SUSY_HLT_DiJet_MET::analyze(), SUSY_HLT_MuEle_Hadronic::analyze(), SUSY_HLT_Muon_Hadronic::analyze(), SUSY_HLT_VBF_Mu::analyze(), HLTBTagPerformanceAnalyzer::analyze(), SUSY_HLT_Razor::analyze(), HotlineDQM::analyze(), MuTriggerAnalyzer::analyze(), ZCounting::analyze(), MuonRecoOneHLT::analyze(), GeneralHLTOffline::analyze(), HLTrigReport::analyze(), TopSingleLeptonHLTValidation::analyze(), DQMExample_Step1::analyze(), HeavyFlavorValidation::analyze(), SUSY_HLT_SingleLepton::analyze(), TopDiLeptonHLTValidation::analyze(), HcalRaddamMuon::analyze(), HLTMuonMatchAndPlot::analyze(), StudyHLT::analyze(), HcalHBHEMuonAnalyzer::analyze(), HLTScalers::analyze(), HLTHiggsSubAnalysis::analyze(), HLTInfo::analyze(), DQMPFCandidateAnalyzer::analyze(), IsoTrackCalibration::analyze(), HLTExoticaSubAnalysis::analyze(), HLTriggerJSONMonitoring::analyze(), EmDQMReco::analyze(), L1Muon2RecoTreeProducer::analyze(), JetAnalyzer::analyze(), ErsatzMEt::analyze(), HLTObjectMonitorProtonLead::analyze(), HLTObjectMonitor::analyze(), IsolatedTracksCone::analyze(), HLTObjectsMonitor::analyze(), METAnalyzer::analyze(), TrackerDpgAnalysis::analyze(), 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(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), QcdUeDQM::fillHltBits(), QcdLowPtDQM::fillHltBits(), ZeePlots::fillHLTInfo(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), FWHLTTriggerTableView::fillTable(), SimpleSystematicsAnalyzer::filter(), PdfSystematicsAnalyzer::filter(), HLTPathSelector::filter(), WMuNuValidator::filter(), WMuNuSelector::filter(), PhysDecl::filter(), HltComparator::filter(), HLTHighLevel::filter(), AlCaIsolatedBunchFilter::filter(), AlCaIsolatedBunchSelector::filter(), AlCaIsoTracksProducerFilter::filter(), PrescalerFHN::filter(), AlCaHBHEMuonFilter::filter(), AlCaIsoTracksFilter::filter(), ZeeCandidateFilter::filter(), FWFileEntry::filterEventsWithCustomParser(), HLTTauDQMPath::fired(), HLTJetMETValidation::getHLTResults(), esMonitoring.FDJsonServer::handle_accept(), JetMETHLTOfflineSource::isHLTPathAccepted(), triggerExpression::PathReader::operator()(), hltdqm::passTrig(), FWPathsPopup::postEvent(), PrescaleWeightProvider::prescaleWeight(), CandidateTriggerObjectProducer::produce(), pat::PATTriggerEventProducer::produce(), GenFilterEfficiencyProducer::produce(), pat::PATTriggerProducer::produce(), HLTEventSelector::select(), AlCaIsoTracksProducer::select(), L1Analysis::L1AnalysisEvent::Set(), egHLT::OffHelper::setTrigInfo(), GsfElectronDataAnalyzer::trigger(), and DQMAnalyzer::trigger().

52 {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 66 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().

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

Definition at line 59 of file HLTGlobalStatus.h.

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

Has any path encountered an error (exception)

Definition at line 54 of file HLTGlobalStatus.h.

References State().

Referenced by argparse.ArgumentParser::_get_option_tuples(), python.rootplot.argparse.ArgumentParser::_get_option_tuples(), argparse.ArgumentParser::_parse_known_args(), python.rootplot.argparse.ArgumentParser::_parse_known_args(), argparse.ArgumentParser::_parse_optional(), python.rootplot.argparse.ArgumentParser::_parse_optional(), argparse.ArgumentParser::_read_args_from_files(), python.rootplot.argparse.ArgumentParser::_read_args_from_files(), TriggerHelper::acceptHltLogicalExpression(), GenericTriggerEventFlag::acceptHltLogicalExpression(), argparse.ArgumentParser::add_subparsers(), python.rootplot.argparse.ArgumentParser::add_subparsers(), CaloTowerAnalyzer::analyze(), HLTrigReport::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), HLTEventAnalyzerRAW::analyzeTrigger(), CSCEfficiency::applyTrigger(), Page1Parser.Page1Parser::check_for_whole_start_tag(), edm::TriggerResultsByName::error(), HLTPathSelector::filter(), HltComparator::filter(), argparse.ArgumentParser::parse_args(), python.rootplot.argparse.ArgumentParser::parse_args(), argparse.ArgumentParser::parse_known_args(), python.rootplot.argparse.ArgumentParser::parse_known_args(), CandidateTriggerObjectProducer::produce(), pat::PATTriggerEventProducer::produce(), and pat::PATTriggerProducer::produce().

54 {return State(2);}
bool State(unsigned int icase) const
Global state variable calculated on the fly.
bool edm::HLTGlobalStatus::error ( const unsigned int  i) const
inline
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 79 of file HLTGlobalStatus.h.

References swap(), and groupFilesInBlocks::temp.

79  {
80  HLTGlobalStatus temp(rhs);
81  this->swap(temp);
82  return *this;
83  }
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 60 of file HLTGlobalStatus.h.

60 { 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 61 of file HLTGlobalStatus.h.

61 { 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 42 of file HLTGlobalStatus.h.

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

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

42  {
43  const unsigned int n(size());
44  for (unsigned int i = 0; i != n; ++i) paths_[i].reset();
45  }
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 75 of file HLTGlobalStatus.h.

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

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

Get number of paths stored.

Definition at line 39 of file HLTGlobalStatus.h.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), ElectronGeneralAnalyzer::analyze(), HLTEventAnalyzerAOD::analyze(), HLTEventAnalyzerRAW::analyze(), DQMHcalIsolatedBunchAlCaReco::analyze(), HTMHTAnalyzer::analyze(), EwkDQM::analyze(), dimuonHLTFilterCheck::analyze(), BeamMonitor::analyze(), TopDiLeptonDQM::analyze(), MuTriggerAnalyzer::analyze(), GeneralHLTOffline::analyze(), HigPhotonJetHLTOfflineSource::analyze(), HcalRaddamMuon::analyze(), TriggerRatesMonitor::analyze(), StudyHLT::analyze(), HcalHBHEMuonAnalyzer::analyze(), HLTScalers::analyze(), HLTInfo::analyze(), IsoTrackCalibration::analyze(), HLTriggerJSONMonitoring::analyze(), ErsatzMEt::analyze(), IsolatedTracksCone::analyze(), TrackerDpgAnalysis::analyze(), edm::EventSelector::containsExceptions(), CSCValidation::doHLT(), ZeeCalibration::duringLoop(), AdHocNTupler::fill(), ZeePlots::fillHLTInfo(), HLTPathSelector::filter(), HLTHighLevel::filter(), AlCaIsolatedBunchFilter::filter(), AlCaIsolatedBunchSelector::filter(), AlCaIsoTracksProducerFilter::filter(), PrescalerFHN::filter(), AlCaHBHEMuonFilter::filter(), AlCaIsoTracksFilter::filter(), ZeeCandidateFilter::filter(), HSCPTreeBuilder::filter(), edm::TriggerResults::find(), HLTJetMETValidation::getHLTResults(), edm::service::TriggerNamesService::getTrigPaths(), HLTEventSelector::HLTEventSelector(), 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(), edm::EventBase::triggerNames_(), and edm::TriggerResultsByName::TriggerResultsByName().

39 { 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 88 of file HLTGlobalStatus.h.

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

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

88  {
89  bool flags[3] = {false, false, false};
90  const unsigned int n(size());
91  for (unsigned int i = 0; i != n; ++i) {
92  const hlt::HLTState s(state(i));
93  if (s!=hlt::Ready) {
94  flags[0]=true; // at least one trigger was run
95  if (s==hlt::Pass) {
96  flags[1]=true; // at least one trigger accepted
97  } else if (s==hlt::Exception) {
98  flags[2]=true; // at least one trigger with error
99  }
100  }
101  }
102  return flags[icase];
103  }
not [yet] run
Definition: HLTenums.h:18
HLTState
status of a trigger path
Definition: HLTenums.h:18
std::vector< Variable::Flags > flags
Definition: MVATrainer.cc:135
accept
Definition: HLTenums.h:19
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 77 of file HLTGlobalStatus.h.

References paths_.

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

77 { 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 64 of file HLTGlobalStatus.h.

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

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

Member Data Documentation

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