#include <HLTPathStatus.h>
Public Member Functions | |
bool | accept () const |
has this path accepted the event? | |
bool | error () const |
has this path encountered an error (exception)? | |
HLTPathStatus (const hlt::HLTState state=hlt::Ready, const unsigned int index=0) | |
constructor | |
unsigned int | index () const |
get index of module giving the status of this path | |
void | reset () |
reset this path | |
hlt::HLTState | state () const |
get state of path | |
bool | wasrun () const |
was this path run? | |
Private Attributes | |
uint16_t | status_ |
packed status of trigger path [unsigned char is too small] |
The status of a single HLT trigger (single trigger path consisting of modules on the path). Initially, the status is Ready (meaning that this trigger path has not run yet for this event). If all modules on the path pass (accept) the event, then the state is Pass. If any module on the path fails (rejects) the event, then the state of the whole trigger path is Fail. If any module on the path throws an unhandled error, then the trigger state is Exception. For the latter two cases, the Fw skips further processing of modules along this path, ie, path processing is aborted.
The index of the module on the path, 0 to n-1 for a path with n modules issuing the decision for the path is recorded. For accepted events, this is simply the index of the last module on the path, ie, n-1.
Note that n is limited, due to packing, to at most 2^(16-2)=16384.
Definition at line 37 of file HLTPathStatus.h.
edm::HLTPathStatus::HLTPathStatus | ( | const hlt::HLTState | state = hlt::Ready , |
const unsigned int | index = 0 |
||
) | [inline] |
bool edm::HLTPathStatus::accept | ( | ) | const [inline] |
has this path accepted the event?
Definition at line 63 of file HLTPathStatus.h.
References edm::hlt::Pass, and state().
Referenced by edm::HLTGlobalStatus::accept().
bool edm::HLTPathStatus::error | ( | ) | const [inline] |
has this path encountered an error (exception)?
Definition at line 65 of file HLTPathStatus.h.
References edm::hlt::Exception, and state().
Referenced by edm::HLTGlobalStatus::error().
{return (state() == hlt::Exception);}
unsigned int edm::HLTPathStatus::index | ( | ) | const [inline] |
get index of module giving the status of this path
Definition at line 56 of file HLTPathStatus.h.
References status_.
Referenced by HLTPathStatus(), edm::HLTGlobalStatus::index(), and edm::service::PathTimerService::postPathProcessing().
{return (static_cast<unsigned int >(status_ / 4));}
void edm::HLTPathStatus::reset | ( | void | ) | [inline] |
reset this path
Definition at line 58 of file HLTPathStatus.h.
References status_.
Referenced by HLTPerformanceInfo::Path::clear(), HLTPerformanceInfo::Module::clear(), and edm::HLTGlobalStatus::reset().
{status_=0;}
hlt::HLTState edm::HLTPathStatus::state | ( | ) | const [inline] |
get state of path
Definition at line 54 of file HLTPathStatus.h.
References status_.
Referenced by accept(), edm::EventSelector::acceptTriggerPath(), error(), edm::service::PathTimerService::postPathProcessing(), edm::HLTGlobalStatus::state(), and wasrun().
{return (static_cast<hlt::HLTState>(status_ % 4));}
bool edm::HLTPathStatus::wasrun | ( | ) | const [inline] |
was this path run?
Definition at line 61 of file HLTPathStatus.h.
References edm::hlt::Ready, and state().
Referenced by HLTPerformanceInfo::setStatusOfModulesFromPath(), and edm::HLTGlobalStatus::wasrun().
{return (state() != hlt::Ready);}
uint16_t edm::HLTPathStatus::status_ [private] |
packed status of trigger path [unsigned char is too small]
Definition at line 41 of file HLTPathStatus.h.