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