#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.
73 {
75
76 for( const DecisionConnector * conn : outconn ) {
77
79
81 for(
const TrigConf::TriggerLine & trigger :
conn->triggers() ) {
82 unsigned int position = trigger.flatindex();
83
87
89 connectorDec |= (
mask << position);
91 connectorOvf |= (
mask << position);
92 }
93
94 }
97}
xAOD::TrigComposite Decision
bool bit(unsigned int index) const
StatusCode resetDecision()
std::map< std::string, uint64_t > m_decision
std::map< std::string, uint64_t > m_overflow
◆ decision()
| const Decision & TCS::GlobalDecision::decision |
( |
const std::string & | algName | ) |
const |
◆ 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 |
Definition at line 30 of file GlobalDecision.cxx.
30 {
31 try {
32 if(clock==0) {
33
34 return (uint32_t) (
m_decision.at(connName) & 0xffffffff);
35 } else {
36
38 return (uint32_t) (clock1 >> 32);
39 }
40 }
41 catch(std::exception &) {
43 throw;
44 }
45}
◆ getName()
| const std::string & TrigConf::TrigConfMessaging::getName |
( |
| ) |
const |
|
inlineinherited |
◆ 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 86 of file TrigConfMessaging.h.
87 {
89 if (!ms) {
92 }
94 }
boost::thread_specific_ptr< MsgStreamTC > m_msg_tls
MsgStreamTC instance (a std::cout like with print-out levels)
◆ msg() [2/2]
| MsgStreamTC & TrigConf::TrigConfMessaging::msg |
( |
const MSGTC::Level | lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 96 of file TrigConfMessaging.h.
97 {
99 }
MsgStreamTC & msg() const
The standard message stream.
◆ msgLvl()
| bool TrigConf::TrigConfMessaging::msgLvl |
( |
const MSGTC::Level | lvl | ) |
const |
|
inlineinherited |
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 75 of file TrigConfMessaging.h.
76 {
79 return true;
80 }
81 else {
82 return false;
83 }
84 }
◆ 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 |
Definition at line 48 of file GlobalDecision.cxx.
48 {
49 if(clock==0) {
50
51 return (uint32_t) (
m_overflow.find(connName)->second & 0xffffffff);
52 } else {
53
55 return (uint32_t) (clock1 >> 32);
56 }
57}
◆ 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.
135 {
136
138 TRG_MSG_INFO(
"Note that the overall decision has not been calculated");
139
141 TRG_MSG_INFO(
"Overall decision from connector " << dec.first <<
": 0x" << right << hex << setfill(
'0') << setw(16) <<
decision_field(dec.first) << std::dec << setfill(
' '));
142
144 for(
const TrigConf::TriggerLine & trigger :
m_triggers){
145 unsigned int position = trigger.flatindex();
146 TRG_MSG_INFO(
" " << setw(30) << left << trigger.name() <<
" " << (
passed(trigger.connName(), position) ?
"pass" :
"fail") );}
147 } else {
148 for(
const TrigConf::TriggerLine & trigger :
m_triggers)
149 TRG_MSG_INFO(
" " << setw(30) << left << trigger.name() <<
" unset" );
150 }
151}
std::vector< TrigConf::TriggerLine > m_triggers
bool passed(const std::string &connName, unsigned int bit) const
uint64_t decision_field(const std::string &connName) const
◆ resetDecision()
◆ setTriggerLines()
Definition at line 16 of file GlobalDecision.cxx.
16 {
17
19 vector<string> connNames = {};
20 for (const TrigConf::TriggerLine & trigger : triggers){
21 auto it =
find(connNames.begin(), connNames.end(), trigger.connName());
22 if (it == connNames.end()){
23 connNames.push_back(trigger.connName());
25 }
26 }
27}
std::string find(const std::string &s)
return a remapped string
◆ operator<<
Definition at line 114 of file GlobalDecision.cxx.
115 {
116
118 o << "Note that the overall decision has not been calculated" << endl;
119
121 o <<
"Overall decision for connector " << itdec.first <<
": 0x" << right << hex << setfill(
'0') << setw(16) << dec.
decision_field(itdec.first) << std::dec << setfill(
' ') << endl;
122
124 for(
const TrigConf::TriggerLine & trigger : dec.
m_triggers){
125 unsigned int position = trigger.
flatindex();
126 o <<
" " << setw(30) << left << trigger.
name() <<
" " << (dec.
passed(trigger.
connName(), position) ?
"pass" :
"fail") << endl;}
127 } else {
128 for(
const TrigConf::TriggerLine & trigger : dec.
m_triggers)
129 o <<
" " << setw(30) << left << trigger.
name() <<
" unset" << endl;
130 }
131 return o;
132}
unsigned int flatindex() const
const std::string & connName() const
const std::string & name() const
◆ 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 71 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: