1 #ifndef DataFormats_Common_HLTGlobalStatus_h
2 #define DataFormats_Common_HLTGlobalStatus_h
43 const unsigned int n(
size());
73 unsigned int index(
const unsigned int i)
const {
return at(i).
index(); }
88 bool State(
unsigned int icase)
const {
89 bool flags[3] = {
false,
false,
false};
90 const unsigned int n(
size());
91 for (
unsigned int i = 0;
i !=
n; ++
i) {
116 std::vector<std::string>
text(4); text[0]=
"n"; text[1]=
"1"; text[2]=
"0"; text[3]=
"e";
117 const unsigned int n(hlt.
size());
118 for (
unsigned int i = 0;
i !=
n; ++
i) ost << text.at(hlt.
state(
i));
133 #endif // DataFormats_Common_HLTGlobalStatus_h
bool wasrun() const
Was at least one path run?
void reset()
reset this path
bool wasrun() const
was this path run?
void reset(const unsigned int i)
Reset the ith path.
HLTState
status of a trigger path
bool accept() const
Has at least one path accepted the event?
HLTGlobalStatus & operator=(HLTGlobalStatus const &rhs)
copy assignment implemented with swap()
std::vector< Variable::Flags > flags
void swap(Association< C > &lhs, Association< C > &rhs)
HLTPathStatus & operator[](const unsigned int i)
bool accept(const unsigned int i) const
Has ith path accepted the event?
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
void reset()
Reset status for all paths.
unsigned int size() const
Get number of paths stored.
unsigned int index(const unsigned int i) const
Get index (slot position) of module giving the decision of the ith path.
bool error(const unsigned int i) const
Has ith path encountered an error (exception)?
void swap(HLTGlobalStatus &other)
swap function
bool error() const
Has any path encountered an error (exception)
std::vector< HLTPathStatus > paths_
Status of each HLT path.
bool State(unsigned int icase) const
Global state variable calculated on the fly.
HLTPathStatus & at(const unsigned int i)
hlt::HLTState state() const
get state of path
const HLTPathStatus & at(const unsigned int i) const
const HLTPathStatus & operator[](const unsigned int i) const
bool error() const
has this path encountered an error (exception)?
bool accept() const
has this path accepted the event?
HLTGlobalStatus(const unsigned int n=0)
Constructor - for n paths.
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
bool wasrun(const unsigned int i) const
Was ith path run?
hlt::HLTState state(const unsigned int i) const
Get status of ith path.
unsigned int index() const
get index of module giving the status of this path