21 if(level < 1 || level > 2) {
25 if(counter < 0 || counter >= 16384) {
62 unsigned int chain_id,
63 const std::string &level,
64 const std::string &lower_chain_name,
65 int lower_chain_counter,
66 unsigned int lower_chain_id,
80 if(0 <= chain_counter && chain_counter < 16384) {
87 if(0 <= lower_chain_counter && lower_chain_counter < 16384) {
93 else if(level ==
"HLT")
m_level = 2;
96 <<
"TrigConfChain ctor error! " << chain_name <<
": bad level " << level;
103 unsigned int chain_id,
116 if(0 <= chain_counter && chain_counter < 16384) {
183 else if(
m_level == 2)
return "HLT";
212 for(std::vector<TrigConfSig>::const_iterator it =
m_signature.begin();
225 os <<
str(*
this) << std::endl;
233 s <<
"TrigConfChain: "
238 s <<
" signatures: ";
239 for(
unsigned int i = 0; i < o.
getSignature().size(); ++i) {
245 for(
unsigned int i = 0; i < o.
getStream().size(); ++i) {
251 for(
unsigned int i = 0; i < o.
getGroup().size(); ++i) {
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
std::vector< std::string > m_ebhypo_names
unsigned int getLevelId() const
float getSignaturePrescale(const std::string &name) const
std::vector< std::string > m_stream_name
const std::vector< std::string > & getStream() const
const std::string & getName() const
std::vector< float > m_stream_prescale
void print(std::ostream &os=std::cout) const
std::vector< std::string > m_group
const std::string & getLowerName() const
const std::vector< std::string > & getGroup() const
uint16_t getLowerEncodedId() const
uint16_t getLowerCounter() const
bool matchOutputTE(uint32_t te_id) const
uint16_t getEncodedId() const
const std::vector< TrigConfSig > & getSignature() const
uint16_t getCounter() const
const std::string getLevel() const
std::vector< TrigConfSig > m_signature
void addStream(const std::string &name, float prescale)
const uint16_t shiftLevel
uint16_t getEncodedId(int level, int counter)