ATLAS Offline Software
Loading...
Searching...
No Matches
TrigConfSig.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6
7// Local
9// C/C++
10#include <algorithm> //std::find
11#include <sstream>
12#include <iostream>
13
14using namespace std;
15
16
17
18//--------------------------------------------------------------------------------------
19TrigConfSig::TrigConfSig(uint32_t counter, int logic, const std::string &label)
20 :m_counter(counter),
21 m_logic(logic),
23{
24}
25
26//--------------------------------------------------------------------------------------
28{
29 //
30 // Clear all string variables
31 //
32 m_label.clear();
33}
34
35//--------------------------------------------------------------------------------------
36bool TrigConfSig::matchOutputTE(uint32_t te_id) const
37{
38 return (std::find(m_output_te.begin(), m_output_te.end(), te_id) != m_output_te.end());
39}
40
41//--------------------------------------------------------------------------------------
42void TrigConfSig::print(std::ostream &os) const
43{
44 os << str(*this) << endl;
45}
46
48{
49 std::cout << str(*this) << endl;
50}
51
52//--------------------------------------------------------------------------------------
53std::string str(const TrigConfSig &o)
54{
55 std::stringstream s;
56 s << "TrigConfSig: " << o.getLabel() << " counter=" << o.getCounter();
57
58 return s.str();
59}
std::vector< uint32_t > m_output_te
Definition TrigConfSig.h:52
uint32_t m_counter
Definition TrigConfSig.h:49
TrigConfSig()=default
bool matchOutputTE(uint32_t te) const
void clearStrings()
void print() const
std::string m_label
Definition TrigConfSig.h:51
uint32_t getCounter() const
Definition TrigConfSig.h:37
const std::string & getLabel() const
Definition TrigConfSig.h:39
std::string label(const std::string &format, int i)
Definition label.h:19
STL namespace.