#include <GlobalDecision.h>
Definition at line 34 of file GlobalDecision.h.
◆ GlobalDecision()
GlobalDecision::GlobalDecision |
( |
const std::string & |
name = "L1TopoGlobalDecision" | ) |
|
◆ collectDecision()
Definition at line 73 of file GlobalDecision.cxx.
82 unsigned int position = trigger.flatindex();
89 connectorDec |= (
mask << position);
91 connectorOvf |= (
mask << position);
◆ decision()
◆ decision_field() [1/2]
uint64_t TCS::GlobalDecision::decision_field |
( |
const std::string & |
connName | ) |
const |
|
inline |
◆ decision_field() [2/2]
uint32_t GlobalDecision::decision_field |
( |
const std::string & |
connName, |
|
|
unsigned int |
clock |
|
) |
| const |
◆ isValid()
bool TCS::GlobalDecision::isValid |
( |
| ) |
const |
|
inline |
◆ msg() [1/2]
MsgStreamTC & TrigConf::TrigConfMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 81 of file TrigConfMessaging.h.
◆ msg() [2/2]
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 91 of file TrigConfMessaging.h.
◆ msgLvl()
Test the output level.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicting if messages at given level will be printed
- Return values
-
true | Messages at level "lvl" will be printed |
Definition at line 70 of file TrigConfMessaging.h.
◆ overflow_field() [1/2]
uint64_t TCS::GlobalDecision::overflow_field |
( |
const std::string & |
connName | ) |
const |
|
inline |
◆ overflow_field() [2/2]
uint32_t GlobalDecision::overflow_field |
( |
const std::string & |
connName, |
|
|
unsigned int |
clock |
|
) |
| const |
◆ overflowed()
bool TCS::GlobalDecision::overflowed |
( |
const std::string & |
connName, |
|
|
unsigned int |
bit |
|
) |
| const |
|
inline |
◆ passed()
bool TCS::GlobalDecision::passed |
( |
const std::string & |
connName, |
|
|
unsigned int |
bit |
|
) |
| const |
|
inline |
◆ print()
void TCS::GlobalDecision::print |
( |
| ) |
const |
Definition at line 135 of file GlobalDecision.cxx.
138 TRG_MSG_INFO(
"Note that the overall decision has not been calculated");
141 TRG_MSG_INFO(
"Overall decision from connector " << dec.first <<
": 0x" << right << hex << setfill(
'0') << setw(16) <<
decision_field(dec.first) << std::dec << setfill(
' '));
145 unsigned int position = trigger.flatindex();
146 TRG_MSG_INFO(
" " << setw(30) << left << trigger.name() <<
" " << (
passed(trigger.connName(), position) ?
"pass" :
"fail") );}
149 TRG_MSG_INFO(
" " << setw(30) << left << trigger.name() <<
" unset" );
◆ resetDecision()
◆ setTriggerLines()
Definition at line 16 of file GlobalDecision.cxx.
19 vector<string> connNames = {};
21 auto it =
find(connNames.begin(), connNames.end(), trigger.connName());
22 if (
it == connNames.end()){
23 connNames.push_back(trigger.connName());
◆ operator<<
Definition at line 114 of file GlobalDecision.cxx.
118 o <<
"Note that the overall decision has not been calculated" << endl;
121 o <<
"Overall decision for connector " << itdec.first <<
": 0x" << right << hex << setfill(
'0') << setw(16) << dec.
decision_field(itdec.first) << std::dec << setfill(
' ') << endl;
125 unsigned int position = trigger.
flatindex();
126 o <<
" " << setw(30) << left << trigger.
name() <<
" " << (dec.
passed(trigger.
connName(), position) ?
"pass" :
"fail") << endl;}
129 o <<
" " << setw(30) << left << trigger.
name() <<
" unset" << endl;
◆ m_decision
std::map<std::string,uint64_t> TCS::GlobalDecision::m_decision |
|
private |
◆ m_msg_tls
boost::thread_specific_ptr<MsgStreamTC> TrigConf::TrigConfMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStreamTC instance (a std::cout like with print-out levels)
Definition at line 66 of file TrigConfMessaging.h.
◆ m_name
std::string TrigConf::TrigConfMessaging::m_name |
|
privateinherited |
◆ m_overflow
std::map<std::string,uint64_t> TCS::GlobalDecision::m_overflow |
|
private |
◆ m_triggers
◆ m_valid
bool TCS::GlobalDecision::m_valid {false} |
|
private |
The documentation for this class was generated from the following files: