#include <GlobalOutput.h>
Definition at line 37 of file GlobalOutput.h.
◆ GlobalOutput()
| GlobalOutput::GlobalOutput |
( |
const std::string & | name = "L1TopoGlobalOutput" | ) |
|
◆ ambiguity_field() [1/2]
| uint64_t GlobalOutput::ambiguity_field |
( |
const std::string & | l1connName | ) |
const |
Definition at line 111 of file GlobalOutput.cxx.
111 {
114 }else{
116 return 0;
117 }
118}
#define TRG_MSG_WARNING(x)
std::map< std::string, uint64_t > m_ambiguity
◆ ambiguity_field() [2/2]
| uint32_t GlobalOutput::ambiguity_field |
( |
const std::string & | l1connName, |
|
|
unsigned int | clock ) const |
Definition at line 121 of file GlobalOutput.cxx.
121 {
123 if(clock==0) {
124
126 } else {
127
129 return static_cast<uint32_t>(clock1 >> 32);
130 }
131 }else{
133 return 0;
134 }
135}
◆ collectOutput()
Definition at line 150 of file GlobalOutput.cxx.
150 {
152
153 for( const DecisionConnector * conn : outConn ) {
154
156
157 unsigned int pos = 0;
158 for(
const TrigConf::TriggerLine & trigger :
conn->triggers() ) {
159 unsigned int position = trigger.flatindex();
160
165
167 l1connectorDec |= (
mask << position);
169 l1connectorOvf |= (
mask << position);
171 l1connectorAmb |= (
mask << position);
172 }
173
174 }
175
176 for (const CountingConnector * conn : countConn) {
177
179
180 const TrigConf::TriggerLine & trigger =
conn->triggers().at(0);
181
183
184 l1connectorCount |=
count.getCountBits();
185
186 }
187
190}
xAOD::TrigComposite Decision
bool bit(unsigned int index) const
std::map< std::string, uint64_t > m_overflow
std::map< std::string, std::bitset< 128 > > m_count
std::map< std::string, uint64_t > m_decision
const std::string & connName() const
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
◆ count_field()
| std::bitset< 128 > GlobalOutput::count_field |
( |
const std::string & | l1connName | ) |
const |
Definition at line 74 of file GlobalOutput.cxx.
74 {
76 return m_count.find(l1connName)->second;
77 }else{
79 return 0;
80 }
81}
◆ decision()
| const Decision & TCS::GlobalOutput::decision |
( |
const std::string & | algName | ) |
const |
◆ decision_field() [1/2]
| uint64_t GlobalOutput::decision_field |
( |
const std::string & | l1connName | ) |
const |
◆ decision_field() [2/2]
| uint32_t GlobalOutput::decision_field |
( |
const std::string & | l1connName, |
|
|
unsigned int | clock ) const |
Definition at line 57 of file GlobalOutput.cxx.
57 {
59 if(clock==0) {
60
62 } else {
63
65 return static_cast<uint32_t>(clock1 >> 32);
66 }
67 }else{
69 return 0;
70 }
71}
◆ getName()
| const std::string & TrigConf::TrigConfMessaging::getName |
( |
| ) |
const |
|
inlineinherited |
◆ isValid()
| bool TCS::GlobalOutput::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 GlobalOutput::overflow_field |
( |
const std::string & | l1connName | ) |
const |
◆ overflow_field() [2/2]
| uint32_t GlobalOutput::overflow_field |
( |
const std::string & | l1connName, |
|
|
unsigned int | clock ) const |
Definition at line 94 of file GlobalOutput.cxx.
94 {
96 if(clock==0) {
97
99 } else {
100
102 return static_cast<uint32_t>(clock1 >> 32);
103 }
104 }else{
106 return 0;
107 }
108}
◆ overflowed()
| bool TCS::GlobalOutput::overflowed |
( |
const std::string & | l1connName, |
|
|
unsigned int | bit ) const |
|
inline |
◆ passed()
| bool TCS::GlobalOutput::passed |
( |
const std::string & | connName, |
|
|
unsigned int | bit ) const |
|
inline |
◆ print()
| void TCS::GlobalOutput::print |
( |
| ) |
const |
Definition at line 229 of file GlobalOutput.cxx.
229 {
230
232 TRG_MSG_INFO(
"Note that the overall decision has not been calculated");
233
235 TRG_MSG_INFO(
"Overall decision from connector " << dec.first <<
": 0x" << right << hex << setfill(
'0') << setw(16) <<
decision_field(dec.first) << std::dec << setfill(
' '));
236
239 unsigned int position = trigger.flatindex();
240 TRG_MSG_INFO(
" " << setw(30) << left << trigger.name() <<
" " << (
passed(trigger.connName(), position) ?
"pass" :
"fail") );}
241 } else {
243 TRG_MSG_INFO(
" " << setw(30) << left << trigger.name() <<
" unset" );
244 }
245}
uint64_t decision_field(const std::string &l1connName) const
std::vector< TrigConf::TriggerLine > m_triggersDec
bool passed(const std::string &connName, unsigned int bit) const
◆ resetOutput()
◆ setDecisionTriggerLines()
Definition at line 19 of file GlobalOutput.cxx.
19 {
20
22 vector<string> l1connNames = {};
23 for (const TrigConf::TriggerLine & trigger : triggers){
24 auto it =
find(l1connNames.begin(), l1connNames.end(), trigger.connName());
25 if (it == l1connNames.end()){
26 l1connNames.push_back(trigger.connName());
28 }
29 }
30}
std::string find(const std::string &s)
return a remapped string
◆ setMultiplicityTriggerLines()
Definition at line 33 of file GlobalOutput.cxx.
33 {
34
36 vector<string> l1connNames = {};
37 for (const TrigConf::TriggerLine & trigger : triggers){
38 auto it =
find(l1connNames.begin(), l1connNames.end(), trigger.connName());
39 if (it == l1connNames.end()){
40 l1connNames.push_back(trigger.connName());
41 m_count[trigger.connName()] = 0;
42 }
43 }
44}
std::vector< TrigConf::TriggerLine > m_triggersCount
◆ operator<<
Definition at line 208 of file GlobalOutput.cxx.
209 {
210
212 o << "Note that the overall decision has not been calculated" << endl;
213
215 o <<
"Overall decision for connector " << itdec.first <<
": 0x" << right << hex << setfill(
'0') << setw(16) << dec.
decision_field(itdec.first) << std::dec << setfill(
' ') << endl;
216
218 for(
const TrigConf::TriggerLine & trigger : dec.
m_triggersDec){
219 unsigned int position = trigger.
flatindex();
220 o <<
" " << setw(30) << left << trigger.
name() <<
" " << (dec.
passed(trigger.
connName(), position) ?
"pass" :
"fail") << endl;}
221 } else {
222 for(
const TrigConf::TriggerLine & trigger : dec.
m_triggersDec)
223 o <<
" " << setw(30) << left << trigger.
name() <<
" unset" << endl;
224 }
225 return o;
226}
unsigned int flatindex() const
const std::string & name() const
◆ m_ambiguity
| std::map<std::string,uint64_t> TCS::GlobalOutput::m_ambiguity |
|
private |
◆ m_count
| std::map<std::string,std::bitset<128> > TCS::GlobalOutput::m_count |
|
private |
◆ m_decision
| std::map<std::string,uint64_t> TCS::GlobalOutput::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::GlobalOutput::m_overflow |
|
private |
◆ m_triggersCount
◆ m_triggersDec
◆ m_valid
| bool TCS::GlobalOutput::m_valid {false} |
|
private |
The documentation for this class was generated from the following files: