LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
art::HLTPathStatus Class Reference

#include "HLTPathStatus.h"

Public Member Functions

 HLTPathStatus (const hlt::HLTState state=hlt::Ready, const unsigned int index=0)
 
hlt::HLTState state () const
 
unsigned int index () const
 
void reset ()
 
bool wasrun () const
 
bool accept () const
 
bool error () const
 

Private Attributes

std::uint16_t status_
 

Detailed Description

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 32 of file HLTPathStatus.h.

Constructor & Destructor Documentation

art::HLTPathStatus::HLTPathStatus ( const hlt::HLTState  state = hlt::Ready,
const unsigned int  index = 0 
)
inline

Definition at line 42 of file HLTPathStatus.h.

References index(), state(), and art::hlt::UNKNOWN.

44  : status_(index * 4 + state)
45  {
46  assert(state < hlt::UNKNOWN);
47  assert(index < 16384);
48  }
unsigned int index() const
Definition: HLTPathStatus.h:58
std::uint16_t status_
Definition: HLTPathStatus.h:36
hlt::HLTState state() const
Definition: HLTPathStatus.h:52

Member Function Documentation

bool art::HLTPathStatus::accept ( ) const
inline

Definition at line 78 of file HLTPathStatus.h.

References art::hlt::Pass, state(), and wasrun().

Referenced by art::HLTGlobalStatus::accept().

79  {
80  return ((state() == hlt::Pass) || !wasrun());
81  }
bool wasrun() const
Definition: HLTPathStatus.h:71
accept
Definition: HLTenums.h:16
hlt::HLTState state() const
Definition: HLTPathStatus.h:52
bool art::HLTPathStatus::error ( ) const
inline

Definition at line 84 of file HLTPathStatus.h.

References art::hlt::Exception, and state().

Referenced by art::HLTGlobalStatus::error().

85  {
86  return (state() == hlt::Exception);
87  }
hlt::HLTState state() const
Definition: HLTPathStatus.h:52
unsigned int art::HLTPathStatus::index ( ) const
inline

Definition at line 58 of file HLTPathStatus.h.

Referenced by HLTPathStatus(), and art::HLTGlobalStatus::index().

59  {
60  return (static_cast<unsigned int>(status_ / 4));
61  }
std::uint16_t status_
Definition: HLTPathStatus.h:36
void art::HLTPathStatus::reset ( void  )
inline

Definition at line 64 of file HLTPathStatus.h.

Referenced by art::HLTGlobalStatus::reset().

65  {
66  status_ = 0;
67  }
std::uint16_t status_
Definition: HLTPathStatus.h:36
hlt::HLTState art::HLTPathStatus::state ( ) const
inline

Definition at line 52 of file HLTPathStatus.h.

Referenced by accept(), error(), HLTPathStatus(), art::HLTGlobalStatus::state(), and wasrun().

53  {
54  return (static_cast<hlt::HLTState>(status_ % 4));
55  }
std::uint16_t status_
Definition: HLTPathStatus.h:36
bool art::HLTPathStatus::wasrun ( ) const
inline

Definition at line 71 of file HLTPathStatus.h.

References art::hlt::Ready, and state().

Referenced by accept(), and art::HLTGlobalStatus::wasrun().

72  {
73  return (state() != hlt::Ready);
74  }
not [yet] run
Definition: HLTenums.h:15
hlt::HLTState state() const
Definition: HLTPathStatus.h:52

Member Data Documentation

std::uint16_t art::HLTPathStatus::status_
private

Definition at line 36 of file HLTPathStatus.h.


The documentation for this class was generated from the following file: