LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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

Referenced by HLTPathStatus().

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

Definition at line 20 of file HLTPathStatus.cc.

References HLTPathStatus(), index(), art::hlt::N_STATES, state(), and status_.

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.

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

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.

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

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

Definition at line 39 of file HLTPathStatus.cc.

References status_.

Referenced by HLTPathStatus().

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.

References status_.

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.

References status_.

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

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.

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

Referenced by accept().

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.

Referenced by HLTPathStatus(), index(), reset(), and state().


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