#include <HLTGlobalStatus.h>
Public Member Functions | |
bool | accept () const |
Has at least one path accepted the event? | |
bool | accept (const unsigned int i) const |
Has ith path accepted the event? | |
HLTPathStatus & | at (const unsigned int i) |
const HLTPathStatus & | at (const unsigned int i) const |
bool | error (const unsigned int i) const |
Has ith path encountered an error (exception)? | |
bool | error () const |
Has any path encountered an error (exception) | |
HLTGlobalStatus (const unsigned int n=0) | |
Constructor - for n paths. | |
unsigned int | index (const unsigned int i) const |
Get index (slot position) of module giving the decision of the ith path. | |
HLTGlobalStatus & | operator= (HLTGlobalStatus const &rhs) |
copy assignment implemented with swap() | |
HLTPathStatus & | operator[] (const unsigned int i) |
const HLTPathStatus & | operator[] (const unsigned int i) const |
void | reset (const unsigned int i) |
Reset the ith path. | |
void | reset () |
Reset status for all paths. | |
unsigned int | size () const |
Get number of paths stored. | |
hlt::HLTState | state (const unsigned int i) const |
Get status of ith path. | |
void | swap (HLTGlobalStatus &other) |
swap function | |
bool | wasrun () const |
Was at least one path run? | |
bool | wasrun (const unsigned int i) const |
Was ith path run? | |
Private Member Functions | |
bool | State (unsigned int icase) const |
Global state variable calculated on the fly. | |
Private Attributes | |
std::vector< HLTPathStatus > | paths_ |
Status of each HLT path. |
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.
Definition at line 28 of file HLTGlobalStatus.h.
edm::HLTGlobalStatus::HLTGlobalStatus | ( | const unsigned int | n = 0 | ) | [inline] |
bool edm::HLTGlobalStatus::accept | ( | ) | const [inline] |
Has at least one path accepted the event?
Definition at line 54 of file HLTGlobalStatus.h.
References State().
Referenced by accept(), edm::TriggerResultsByName::accept(), acceptHLT(), MuonRecoOneHLT::analyze(), ErsatzMEt::analyze(), HLTHiggsSubAnalysis::analyze(), CaloMETAnalyzer::analyze(), PFMETAnalyzer::analyze(), MuCorrMETAnalyzer::analyze(), HTMHTAnalyzer::analyze(), METAnalyzer::analyze(), TcMETAnalyzer::analyze(), HLTJetMETValidation::getHLTResults(), triggerExpression::HLTReader::operator()(), and HcalNZSMonitor::processEvent().
{return State(1);}
bool edm::HLTGlobalStatus::accept | ( | const unsigned int | i | ) | const [inline] |
Has ith path accepted the event?
Definition at line 68 of file HLTGlobalStatus.h.
References edm::HLTPathStatus::accept(), and at().
const HLTPathStatus& edm::HLTGlobalStatus::at | ( | const unsigned int | i | ) | const [inline] |
Definition at line 60 of file HLTGlobalStatus.h.
References paths_.
Referenced by accept(), edm::TriggerResultsByName::at(), error(), index(), edm::TriggerResultsByName::operator[](), reset(), state(), and wasrun().
HLTPathStatus& edm::HLTGlobalStatus::at | ( | const unsigned int | i | ) | [inline] |
bool edm::HLTGlobalStatus::error | ( | ) | const [inline] |
Has any path encountered an error (exception)
Definition at line 56 of file HLTGlobalStatus.h.
References State().
Referenced by edm::TriggerResultsByName::error().
{return State(2);}
bool edm::HLTGlobalStatus::error | ( | const unsigned int | i | ) | const [inline] |
Has ith path encountered an error (exception)?
Definition at line 70 of file HLTGlobalStatus.h.
References at(), and edm::HLTPathStatus::error().
unsigned int edm::HLTGlobalStatus::index | ( | const unsigned int | i | ) | const [inline] |
Get index (slot position) of module giving the decision of the ith path.
Definition at line 75 of file HLTGlobalStatus.h.
References at(), and edm::HLTPathStatus::index().
Referenced by edm::TriggerResultsByName::index().
HLTGlobalStatus& edm::HLTGlobalStatus::operator= | ( | HLTGlobalStatus const & | rhs | ) | [inline] |
copy assignment implemented with swap()
Definition at line 81 of file HLTGlobalStatus.h.
References swap(), and groupFilesInBlocks::temp.
{ HLTGlobalStatus temp(rhs); this->swap(temp); return *this; }
const HLTPathStatus& edm::HLTGlobalStatus::operator[] | ( | const unsigned int | i | ) | const [inline] |
HLTPathStatus& edm::HLTGlobalStatus::operator[] | ( | const unsigned int | i | ) | [inline] |
void edm::HLTGlobalStatus::reset | ( | const unsigned int | i | ) | [inline] |
Reset the ith path.
Definition at line 77 of file HLTGlobalStatus.h.
References at(), and edm::HLTPathStatus::reset().
void edm::HLTGlobalStatus::reset | ( | void | ) | [inline] |
unsigned int edm::HLTGlobalStatus::size | ( | void | ) | const [inline] |
Get number of paths stored.
Definition at line 41 of file HLTGlobalStatus.h.
References paths_.
Referenced by ErsatzMEt::analyze(), CaloMETAnalyzer::analyze(), PFMETAnalyzer::analyze(), MuCorrMETAnalyzer::analyze(), HTMHTAnalyzer::analyze(), METAnalyzer::analyze(), TcMETAnalyzer::analyze(), edm::EventSelector::containsExceptions(), edm::TriggerResults::find(), HLTJetMETValidation::getHLTResults(), edm::service::TriggerNamesService::getTrigPaths(), PrescalerFHN::init(), HLTHighLevel::init(), edm::EventSelector::maskTriggerResults(), edm::operator<<(), reset(), stor::TriggerSelector::TreeElement::returnStatus(), edm::TriggerResultsByName::size(), State(), edm::EventBase::triggerNames_(), and edm::TriggerResultsByName::TriggerResultsByName().
{ return paths_.size(); }
bool edm::HLTGlobalStatus::State | ( | unsigned int | icase | ) | const [inline, private] |
Global state variable calculated on the fly.
Definition at line 90 of file HLTGlobalStatus.h.
References edm::hlt::Exception, flags, i, n, edm::hlt::Pass, edm::hlt::Ready, alignCSCRings::s, size(), and state().
Referenced by accept(), error(), and wasrun().
{ bool flags[3] = {false, false, false}; const unsigned int n(size()); for (unsigned int i = 0; i != n; ++i) { const hlt::HLTState s(state(i)); if (s!=hlt::Ready) { flags[0]=true; // at least one trigger was run if (s==hlt::Pass) { flags[1]=true; // at least one trigger accepted } else if (s==hlt::Exception) { flags[2]=true; // at least one trigger with error } } } return flags[icase]; }
hlt::HLTState edm::HLTGlobalStatus::state | ( | const unsigned int | i | ) | const [inline] |
Get status of ith path.
Definition at line 73 of file HLTGlobalStatus.h.
References at(), and edm::HLTPathStatus::state().
Referenced by edm::EventSelector::acceptAllBits(), edm::EventSelector::acceptOneBit(), edm::EventSelector::maskTriggerResults(), edm::operator<<(), State(), and edm::TriggerResultsByName::state().
void edm::HLTGlobalStatus::swap | ( | HLTGlobalStatus & | other | ) | [inline] |
swap function
Definition at line 79 of file HLTGlobalStatus.h.
References paths_.
Referenced by operator=(), edm::swap(), and std::swap().
{ paths_.swap(other.paths_); }
bool edm::HLTGlobalStatus::wasrun | ( | ) | const [inline] |
Was at least one path run?
Definition at line 52 of file HLTGlobalStatus.h.
References State().
Referenced by edm::TriggerResultsByName::wasrun().
{return State(0);}
bool edm::HLTGlobalStatus::wasrun | ( | const unsigned int | i | ) | const [inline] |
Was ith path run?
Definition at line 66 of file HLTGlobalStatus.h.
References at(), and edm::HLTPathStatus::wasrun().
std::vector<HLTPathStatus> edm::HLTGlobalStatus::paths_ [private] |
Status of each HLT path.
Definition at line 33 of file HLTGlobalStatus.h.
Referenced by at(), operator[](), reset(), size(), and swap().