Public Member Functions | Private Attributes | List of all members
art::HLTPathStatus Class Reference

#include <HLTPathStatus.h>

Public Member Functions

 ~HLTPathStatus ()
 
 HLTPathStatus ()
 
 HLTPathStatus (hlt::HLTState const state)
 
 HLTPathStatus (hlt::HLTState const state, std::size_t const index)
 
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_ {hlt::Ready}
 

Detailed Description

Definition at line 31 of file HLTPathStatus.h.

Constructor & Destructor Documentation

art::HLTPathStatus::~HLTPathStatus ( )
default
art::HLTPathStatus::HLTPathStatus ( )
default
art::HLTPathStatus::HLTPathStatus ( hlt::HLTState const  state)
explicit

Definition at line 20 of file HLTPathStatus.cc.

21  : HLTPathStatus{state, 0}
22  {}
hlt::HLTState state() const
art::HLTPathStatus::HLTPathStatus ( hlt::HLTState const  state,
std::size_t const  index 
)
explicit

Member Function Documentation

bool art::HLTPathStatus::accept ( ) const

Definition at line 57 of file HLTPathStatus.cc.

58  {
59  return !wasrun() || (state() == hlt::Pass);
60  }
bool wasrun() const
hlt::HLTState state() const
bool art::HLTPathStatus::error ( ) const

Definition at line 63 of file HLTPathStatus.cc.

64  {
65  return state() == hlt::Exception;
66  }
hlt::HLTState state() const
unsigned art::HLTPathStatus::index ( ) const

Definition at line 39 of file HLTPathStatus.cc.

40  {
41  return static_cast<unsigned>(status_ >> 2);
42  }
std::uint16_t status_
Definition: HLTPathStatus.h:58
void art::HLTPathStatus::reset ( )

Definition at line 45 of file HLTPathStatus.cc.

46  {
47  status_ = 0;
48  }
std::uint16_t status_
Definition: HLTPathStatus.h:58
hlt::HLTState art::HLTPathStatus::state ( ) const

Definition at line 33 of file HLTPathStatus.cc.

34  {
35  return static_cast<hlt::HLTState>(status_ & 0x03);
36  }
HLTState
Definition: HLTenums.h:6
std::uint16_t status_
Definition: HLTPathStatus.h:58
bool art::HLTPathStatus::wasrun ( ) const

Definition at line 51 of file HLTPathStatus.cc.

52  {
53  return state() != hlt::Ready;
54  }
hlt::HLTState state() const

Member Data Documentation

std::uint16_t art::HLTPathStatus::status_ {hlt::Ready}
private

Definition at line 58 of file HLTPathStatus.h.


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