This class represents one chain of signatures, i.e.
More...
#include <Chain.h>
|
| static unsigned int | inquireChainCounter (uint32_t chainWord) |
| | unpack chain counter from the serialized word
|
This class represents one chain of signatures, i.e.
one signature for each step. The HLT::Chain class also holds information about its status, including prescales, pass-throughs etc.
- Author
- Till Eifert Till..nosp@m.Eife.nosp@m.rt@ce.nosp@m.rn.c.nosp@m.h
-
Nicolas Berger Nicol.nosp@m.as.B.nosp@m.erger.nosp@m.@cer.nosp@m.n.ch
-
Tomasz Bold Tomas.nosp@m.z.Bo.nosp@m.ld@ce.nosp@m.rn.c.nosp@m.h - U. of California - Irvine
Definition at line 63 of file Chain.h.
◆ Chain() [1/2]
| Chain::Chain |
( |
uint32_t | serialData | ) |
|
constructor from serialized data
Definition at line 27 of file Chain.cxx.
32}
void setStatus(ChainStatus s)
const TrigConf::HLTChain * m_configChain
underlying Config Chain
ErrorCode deserialize(uint32_t chainWord)
deserialize this Chain from given vector of uint's
bool reset()
restes the bits to the basic state
◆ Chain() [2/2]
Definition at line 34 of file Chain.cxx.
37{
38 if (configChain)
40
43}
unsigned int m_chain_counter
chain counter from configuration (copied here for speed)
◆ ~Chain()
◆ chainPassed()
| bool Chain::chainPassed |
( |
| ) |
const |
Definition at line 46 of file Chain.cxx.
46 {
48}
bool isPassedThrough() const
is chain passed through ?
bool isPrescaled() const
is chain prescaled ?
bool isResurrected() const
is chain resurrected ?
bool chainPassedRaw() const
◆ chainPassedRaw()
| bool HLT::Chain::chainPassedRaw |
( |
| ) |
const |
|
inline |
◆ deserialize()
deserialize this Chain from given vector of uint's
Definition at line 101 of file Chain.cxx.
102{
108
111 m_errorCode =
static_cast<HLT::ErrorCode
>(( chainWord >> (3+7+16)) & 0x0000003f);
112
113
114
115
116
117
118
119
121}
bool m_prescaled
Flagged as "prescaled" for this event ?
ChainStatus m_status
Chain status, enum {ChainInvalid, ConfigOnlyChain, ChainOK }.
ErrorCode m_errorCode
most severe error code of execution
int m_currentStep
Current step of this chain.
bool m_resurrected
flag to mar that chain was originally prescalled but is reexecuted
bool m_passThrough
Flagged as "passedThrough" for this event ?
static const ErrorCode OK(Action::CONTINUE)
◆ getChainCounter()
| unsigned int HLT::Chain::getChainCounter |
( |
| ) |
const |
|
inline |
return the unique identifier of this Chain (uint)
Definition at line 93 of file Chain.h.
◆ getChainHashId()
| unsigned int HLT::Chain::getChainHashId |
( |
| ) |
const |
|
inline |
< return whether is a merged L2+EF chain
return the Chain name's hash ID
Definition at line 101 of file Chain.h.
◆ getChainName()
| const std::string & HLT::Chain::getChainName |
( |
| ) |
const |
|
inline |
◆ getChainStep()
| int HLT::Chain::getChainStep |
( |
| ) |
const |
|
inline |
return the current step of execution
Definition at line 103 of file Chain.h.
◆ getConfigChain()
get underlying ConfigChain
Definition at line 78 of file Chain.h.
◆ getEBAfterStep()
| int HLT::Chain::getEBAfterStep |
( |
| ) |
const |
|
inline |
get EB_after_step
Definition at line 96 of file Chain.h.
◆ getErrorCode()
return this Chain's most severe error code (from execution)
Definition at line 102 of file Chain.h.
◆ getLegMultiplicities()
| std::vector< size_t > HLT::Chain::getLegMultiplicities |
( |
| ) |
const |
|
inline |
get per leg multiplicity (Run3 only)
Definition at line 97 of file Chain.h.
◆ getLowerChainName()
| const std::string & HLT::Chain::getLowerChainName |
( |
| ) |
const |
|
inline |
◆ getStatus()
◆ inquireChainCounter()
| unsigned int HLT::Chain::inquireChainCounter |
( |
uint32_t | chainWord | ) |
|
|
static |
unpack chain counter from the serialized word
Definition at line 123 of file Chain.cxx.
123 {
124 return ( chainWord >> (3+7)) & 0x0000ffff;
125}
◆ isMerged()
| bool HLT::Chain::isMerged |
( |
| ) |
const |
|
inline |
◆ isPassedThrough()
| bool HLT::Chain::isPassedThrough |
( |
| ) |
const |
|
inline |
is chain passed through ?
Definition at line 85 of file Chain.h.
◆ isPrescaled()
| bool HLT::Chain::isPrescaled |
( |
| ) |
const |
|
inline |
is chain prescaled ?
Definition at line 86 of file Chain.h.
◆ isResurrected()
| bool HLT::Chain::isResurrected |
( |
| ) |
const |
|
inline |
is chain resurrected ?
Definition at line 87 of file Chain.h.
◆ nextStepAfterEB()
| bool HLT::Chain::nextStepAfterEB |
( |
| ) |
const |
|
inline |
return whether next step requires EB (-1 means no EB called)
Definition at line 98 of file Chain.h.
◆ passThroughFactor()
| float HLT::Chain::passThroughFactor |
( |
| ) |
const |
|
inline |
get pass-through factor
Definition at line 92 of file Chain.h.
◆ prescaleFactor()
| float HLT::Chain::prescaleFactor |
( |
| ) |
const |
|
inline |
get prescale factor
Definition at line 91 of file Chain.h.
◆ print()
template<class stream>
| void HLT::Chain::print |
( |
stream & | os | ) |
const |
|
inline |
templated print stream method so that one can simply write std::cout << myChain << std::endl; or with the Gaudi Msg stram msgStram << myChain << ...
Definition at line 112 of file Chain.h.
113 {
123 }
int getEBAfterStep() const
get EB_after_step
HLT::ErrorCode getErrorCode() const
return this Chain's most severe error code (from execution)
unsigned int getChainCounter() const
return the unique identifier of this Chain (uint)
int getChainStep() const
return the current step of execution
const std::string & getChainName() const
return the Chain name (string)
std::string strErrorCode(const ErrorCode code)
◆ reset()
| bool HLT::Chain::reset |
( |
| ) |
|
restes the bits to the basic state
Definition at line 127 of file Chain.cxx.
127 {
134 return true;
135}
◆ serialize()
| HLT::ErrorCode Chain::serialize |
( |
std::vector< uint32_t > & | output | ) |
const |
serialize this Chain into the given vector of uint's
Definition at line 52 of file Chain.cxx.
53{
54
55
56
57
58
59
60
61
62
67
68
70
71
73
74
76
77
78 chainWord |= ((
m_errorCode & 0x0000003f) << (3+6+1+16));
79
80 output.push_back(chainWord);
81
83}
◆ setDecisions()
| HLT::ErrorCode Chain::setDecisions |
( |
bool | passedraw, |
|
|
bool | passedthrough, |
|
|
bool | prescaled, |
|
|
bool | resurrected ) |
set bool decisions directly
Definition at line 85 of file Chain.cxx.
◆ setStatus()
Definition at line 141 of file Chain.h.
const FeatureContainerInit< FEATURE, CONTAINER > RegisterFeatureContainerTypes< FEATURE, CONTAINER >::s
◆ m_chain_counter
| unsigned int HLT::Chain::m_chain_counter |
|
protected |
chain counter from configuration (copied here for speed)
Definition at line 144 of file Chain.h.
◆ m_configChain
◆ m_currentStep
| int HLT::Chain::m_currentStep |
|
protected |
Current step of this chain.
Definition at line 150 of file Chain.h.
◆ m_errorCode
most severe error code of execution
Definition at line 145 of file Chain.h.
◆ m_passedRaw
| bool HLT::Chain::m_passedRaw |
|
protected |
◆ m_passThrough
| bool HLT::Chain::m_passThrough |
|
protected |
Flagged as "passedThrough" for this event ?
Definition at line 147 of file Chain.h.
◆ m_prescaled
| bool HLT::Chain::m_prescaled |
|
protected |
Flagged as "prescaled" for this event ?
Definition at line 148 of file Chain.h.
◆ m_resurrected
| bool HLT::Chain::m_resurrected |
|
protected |
flag to mar that chain was originally prescalled but is reexecuted
Definition at line 149 of file Chain.h.
◆ m_status
Chain status, enum {ChainInvalid, ConfigOnlyChain, ChainOK }.
Definition at line 153 of file Chain.h.
The documentation for this class was generated from the following files: