ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigMonitoringEvent
src
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
8
#include "
TrigMonitoringEvent/TrigConfSig.h
"
9
// C/C++
10
#include <algorithm>
//std::find
11
#include <sstream>
12
#include <iostream>
13
14
using namespace
std
;
15
16
17
18
//--------------------------------------------------------------------------------------
19
TrigConfSig::TrigConfSig
(uint32_t counter,
int
logic,
const
std::string &
label
)
20
:
m_counter
(counter),
21
m_logic
(logic),
22
m_label
(
label
)
23
{
24
}
25
26
//--------------------------------------------------------------------------------------
27
void
TrigConfSig::clearStrings
()
28
{
29
//
30
// Clear all string variables
31
//
32
m_label
.clear();
33
}
34
35
//--------------------------------------------------------------------------------------
36
bool
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
//--------------------------------------------------------------------------------------
42
void
TrigConfSig::print
(std::ostream &os)
const
43
{
44
os <<
str
(*
this
) << endl;
45
}
46
47
void
TrigConfSig::print
()
const
48
{
49
std::cout <<
str
(*
this
) << endl;
50
}
51
52
//--------------------------------------------------------------------------------------
53
std::string
str
(
const
TrigConfSig
&o)
54
{
55
std::stringstream s;
56
s <<
"TrigConfSig: "
<< o.
getLabel
() <<
" counter="
<< o.
getCounter
();
57
58
return
s.str();
59
}
TrigConfSig.h
TrigConfSig
Definition
TrigConfSig.h:27
TrigConfSig::m_output_te
std::vector< uint32_t > m_output_te
Definition
TrigConfSig.h:52
TrigConfSig::m_counter
uint32_t m_counter
Definition
TrigConfSig.h:49
TrigConfSig::TrigConfSig
TrigConfSig()=default
TrigConfSig::matchOutputTE
bool matchOutputTE(uint32_t te) const
Definition
TrigConfSig.cxx:36
TrigConfSig::m_logic
int m_logic
Definition
TrigConfSig.h:50
TrigConfSig::clearStrings
void clearStrings()
Definition
TrigConfSig.cxx:27
TrigConfSig::print
void print() const
Definition
TrigConfSig.cxx:47
TrigConfSig::m_label
std::string m_label
Definition
TrigConfSig.h:51
TrigConfSig::getCounter
uint32_t getCounter() const
Definition
TrigConfSig.h:37
TrigConfSig::getLabel
const std::string & getLabel() const
Definition
TrigConfSig.h:39
label
std::string label(const std::string &format, int i)
Definition
label.h:19
std
STL namespace.
str
Definition
BTagTrackIpAccessor.cxx:11
Generated on
for ATLAS Offline Software by
1.16.1