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

#include "TriggerResults.h"

Inheritance diagram for art::TriggerResults:
art::HLTGlobalStatus

Public Member Functions

 TriggerResults ()=default
 
 TriggerResults (HLTGlobalStatus const &hlt, fhicl::ParameterSetID const &psetid)
 
fhicl::ParameterSetID const & parameterSetID () const
 
void swap (TriggerResults &other)
 
TriggerResultsoperator= (TriggerResults const &rhs)
 
std::size_t size () const
 
void reset ()
 
void reset (std::size_t const i)
 
bool wasrun () const
 
bool wasrun (std::size_t const i) const
 
bool accept () const
 
bool accept (std::size_t const i) const
 
bool error () const
 
bool error (std::size_t const i) const
 
HLTPathStatus const & at (std::size_t const i) const
 
HLTPathStatusat (std::size_t const i)
 
HLTPathStatus const & operator[] (std::size_t const i) const
 
HLTPathStatusoperator[] (std::size_t const i)
 
hlt::HLTState state (std::size_t const i) const
 
std::size_t index (std::size_t const i) const
 
void swap (HLTGlobalStatus &other)
 

Private Attributes

fhicl::ParameterSetID psetid_ {}
 

Detailed Description

Definition at line 27 of file TriggerResults.h.

Constructor & Destructor Documentation

art::TriggerResults::TriggerResults ( )
default
art::TriggerResults::TriggerResults ( HLTGlobalStatus const &  hlt,
fhicl::ParameterSetID const &  psetid 
)
inline

Definition at line 36 of file TriggerResults.h.

References psetid_.

38  : HLTGlobalStatus{hlt}, psetid_{psetid}
39  {}
HLTGlobalStatus()=default
fhicl::ParameterSetID psetid_

Member Function Documentation

bool art::HLTGlobalStatus::accept ( ) const
inlineinherited

Definition at line 59 of file HLTGlobalStatus.h.

References art::HLTGlobalStatus::state_on_demand().

Referenced by art::Schedule::runTriggerPaths_().

60  {
61  return state_on_demand(1);
62  }
bool state_on_demand(std::size_t const icase) const
bool art::HLTGlobalStatus::accept ( std::size_t const  i) const
inlineinherited

Definition at line 97 of file HLTGlobalStatus.h.

References art::HLTPathStatus::accept(), and art::HLTGlobalStatus::at().

98  {
99  return at(i).accept();
100  }
HLTPathStatus const & at(std::size_t const i) const
bool accept() const
Definition: HLTPathStatus.h:78
HLTPathStatus const& art::HLTGlobalStatus::at ( std::size_t const  i) const
inlineinherited
HLTPathStatus& art::HLTGlobalStatus::at ( std::size_t const  i)
inlineinherited

Definition at line 78 of file HLTGlobalStatus.h.

References art::HLTGlobalStatus::paths_.

79  {
80  return paths_.at(i);
81  }
std::vector< HLTPathStatus > paths_
bool art::HLTGlobalStatus::error ( ) const
inlineinherited

Definition at line 65 of file HLTGlobalStatus.h.

References art::HLTGlobalStatus::state_on_demand().

66  {
67  return state_on_demand(2);
68  }
bool state_on_demand(std::size_t const icase) const
bool art::HLTGlobalStatus::error ( std::size_t const  i) const
inlineinherited

Definition at line 103 of file HLTGlobalStatus.h.

References art::HLTGlobalStatus::at(), and art::HLTPathStatus::error().

104  {
105  return at(i).error();
106  }
bool error() const
Definition: HLTPathStatus.h:84
HLTPathStatus const & at(std::size_t const i) const
std::size_t art::HLTGlobalStatus::index ( std::size_t const  i) const
inlineinherited

Definition at line 116 of file HLTGlobalStatus.h.

References art::HLTGlobalStatus::at(), and art::HLTPathStatus::index().

117  {
118  return at(i).index();
119  }
HLTPathStatus const & at(std::size_t const i) const
unsigned int index() const
Definition: HLTPathStatus.h:58
TriggerResults& art::TriggerResults::operator= ( TriggerResults const &  rhs)
inline

Definition at line 59 of file TriggerResults.h.

References swap().

60  {
61  TriggerResults temp{rhs};
62  this->swap(temp);
63  return *this;
64  }
void swap(TriggerResults &other)
TriggerResults()=default
HLTPathStatus const& art::HLTGlobalStatus::operator[] ( std::size_t const  i) const
inlineinherited

Definition at line 83 of file HLTGlobalStatus.h.

References art::HLTGlobalStatus::paths_.

84  {
85  return paths_.at(i);
86  }
std::vector< HLTPathStatus > paths_
HLTPathStatus& art::HLTGlobalStatus::operator[] ( std::size_t const  i)
inlineinherited

Definition at line 87 of file HLTGlobalStatus.h.

References art::HLTGlobalStatus::paths_.

87 { return paths_.at(i); }
std::vector< HLTPathStatus > paths_
fhicl::ParameterSetID const& art::TriggerResults::parameterSetID ( ) const
inline

Definition at line 43 of file TriggerResults.h.

References psetid_.

Referenced by art::EventSelector::acceptEvent(), art::TriggerNamesService::getTrigPaths(), and art::EventSelector::maskTriggerResults().

44  {
45  return psetid_;
46  }
fhicl::ParameterSetID psetid_
void art::HLTGlobalStatus::reset ( void  )
inlineinherited

Definition at line 43 of file HLTGlobalStatus.h.

References art::HLTGlobalStatus::paths_.

Referenced by art::Schedule::process().

44  {
45  cet::for_all(paths_, [](auto& path) { path.reset(); });
46  }
std::vector< HLTPathStatus > paths_
void art::HLTGlobalStatus::reset ( std::size_t const  i)
inlineinherited

Definition at line 122 of file HLTGlobalStatus.h.

References art::HLTGlobalStatus::at(), and art::HLTPathStatus::reset().

123  {
124  at(i).reset();
125  }
HLTPathStatus const & at(std::size_t const i) const
std::size_t art::HLTGlobalStatus::size ( void  ) const
inlineinherited
hlt::HLTState art::HLTGlobalStatus::state ( std::size_t const  i) const
inlineinherited
void art::TriggerResults::swap ( TriggerResults other)
inline

Definition at line 50 of file TriggerResults.h.

References psetid_, fhicl::ParameterSetID::swap(), and art::HLTGlobalStatus::swap().

Referenced by operator=(), and art::swap().

51  {
53  psetid_.swap(other.psetid_);
54  }
void swap(ParameterSetID &)
fhicl::ParameterSetID psetid_
void swap(HLTGlobalStatus &other)
void art::HLTGlobalStatus::swap ( HLTGlobalStatus other)
inlineinherited

Definition at line 128 of file HLTGlobalStatus.h.

References art::HLTGlobalStatus::paths_.

Referenced by art::HLTGlobalStatus::operator=(), swap(), art::swap(), and std::swap().

129  {
130  paths_.swap(other.paths_);
131  }
std::vector< HLTPathStatus > paths_
bool art::HLTGlobalStatus::wasrun ( ) const
inlineinherited

Definition at line 52 of file HLTGlobalStatus.h.

References art::HLTGlobalStatus::state_on_demand().

53  {
54  return state_on_demand(0);
55  }
bool state_on_demand(std::size_t const icase) const
bool art::HLTGlobalStatus::wasrun ( std::size_t const  i) const
inlineinherited

Definition at line 91 of file HLTGlobalStatus.h.

References art::HLTGlobalStatus::at(), and art::HLTPathStatus::wasrun().

92  {
93  return at(i).wasrun();
94  }
bool wasrun() const
Definition: HLTPathStatus.h:71
HLTPathStatus const & at(std::size_t const i) const

Member Data Documentation

fhicl::ParameterSetID art::TriggerResults::psetid_ {}
private

Definition at line 30 of file TriggerResults.h.

Referenced by parameterSetID(), swap(), and TriggerResults().


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