ATLAS Offline Software
Trigger
TrigEvent
TrigMonitoringEvent
src
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
10
#include "
TrigMonitoringEvent/TrigConfSig.h
"
11
12
using namespace
std;
13
14
//--------------------------------------------------------------------------------------
15
TrigConfSig::TrigConfSig
()
16
:m_counter(0),
17
m_logic(0),
18
m_label()
19
{
20
}
21
22
//--------------------------------------------------------------------------------------
23
TrigConfSig::TrigConfSig
(
uint32_t
counter
,
int
logic,
const
std::string &
label
)
24
:m_counter(
counter
),
25
m_logic(logic),
26
m_label(
label
)
27
{
28
}
29
30
//--------------------------------------------------------------------------------------
31
void
TrigConfSig::clearStrings
()
32
{
33
//
34
// Clear all string variables
35
//
36
m_label
.clear();
37
}
38
39
//--------------------------------------------------------------------------------------
40
bool
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
//--------------------------------------------------------------------------------------
46
void
TrigConfSig::print
(std::ostream &
os
)
const
47
{
48
os
<<
str
(*
this
) << endl;
49
}
50
51
//--------------------------------------------------------------------------------------
52
std::string
str
(
const
TrigConfSig
&o)
53
{
54
std::stringstream
s
;
55
s
<<
"TrigConfSig: "
<< o.
getLabel
() <<
" counter="
<< o.
getCounter
();
56
57
return
s
.str();
58
}
TrigConfSig::matchOutputTE
bool matchOutputTE(uint32_t te) const
Definition:
TrigConfSig.cxx:40
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
TrigConfSig::m_label
std::string m_label
Definition:
TrigConfSig.h:52
TrigConfSig.h
find
std::string find(const std::string &s)
return a remapped string
Definition:
hcg.cxx:135
xAOD::uint32_t
setEventNumber uint32_t
Definition:
EventInfo_v1.cxx:127
TrigConfSig::getCounter
uint32_t getCounter() const
Definition:
TrigConfSig.h:38
PlotCalibFromCool.label
label
Definition:
PlotCalibFromCool.py:78
TrigConfSig::print
void print(std::ostream &os=std::cout) const
Definition:
TrigConfSig.cxx:46
TrigConfSig::getLabel
const std::string & getLabel() const
Definition:
TrigConfSig.h:40
TrigConfSig::clearStrings
void clearStrings()
Definition:
TrigConfSig.cxx:31
str
std::string str(const TrigConfSig &o)
Definition:
TrigConfSig.cxx:52
TrigConfSig
Definition:
TrigConfSig.h:27
ReadFromCoolCompare.os
os
Definition:
ReadFromCoolCompare.py:231
TrigConfSig::TrigConfSig
TrigConfSig()
Definition:
TrigConfSig.cxx:15
TrigConfSig::m_output_te
std::vector< uint32_t > m_output_te
Definition:
TrigConfSig.h:53
test_pyathena.counter
counter
Definition:
test_pyathena.py:15
Generated on Thu Nov 7 2024 21:29:28 for ATLAS Offline Software by
1.8.18