ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigConfiguration
TrigConfHLTData
Root
HLTPrescale.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
#include "
TrigConfHLTData/HLTPrescale.h
"
8
#include "
TrigConfHLTData/HLTFrame.h
"
9
#include "
TrigConfHLTData/HLTChain.h
"
10
#include "
TrigConfHLTData/HLTChainList.h
"
11
12
#include <iomanip>
13
#include <iostream>
14
using namespace
std
;
15
using namespace
TrigConf
;
16
17
TrigConf::HLTPrescale::HLTPrescale
(
float
prescale
,
float
pass_through
) :
18
m_prescale
(
prescale
),
19
m_pass_through
(
pass_through
)
20
{}
21
22
23
TrigConf::HLTPrescale
&
24
TrigConf::HLTPrescale::setStreamPrescale
(
const
std::string& streamName,
float
ps) {
25
m_stream_prescale
[streamName] = ps;
26
return
*
this
;
27
}
28
29
TrigConf::HLTPrescale
&
30
TrigConf::HLTPrescale::setRerunPrescale
(
const
std::string& targetName,
float
ps) {
31
m_rerun_prescale
[targetName] = ps;
32
return
*
this
;
33
}
34
35
std::pair<bool, float>
36
TrigConf::HLTPrescale::getRerunPrescale
(std::string_view targetName)
const
{
37
PrescaleMap_t::const_iterator i =
m_rerun_prescale
.find(targetName);
38
bool
found = (i!=
m_rerun_prescale
.end());
39
float
ps = found ? i->second : 0;
40
return
std::make_pair(found,ps);
41
}
42
43
std::pair<bool, float>
44
TrigConf::HLTPrescale::getStreamPrescale
(std::string_view streamName)
const
{
45
PrescaleMap_t::const_iterator i =
m_stream_prescale
.find(streamName);
46
bool
found = i!=
m_stream_prescale
.end();
47
float
ps = found ? i->second : 0;
48
return
std::make_pair(found,ps);
49
}
50
51
52
//________________________________________________________________________________
53
std::ostream&
54
TrigConf::operator<<
(std::ostream & o,
const
TrigConf::HLTPrescale
& c) {
55
56
o <<
"Prescale: "
<< setw(4) << c.prescale()
57
<<
", pass-through: "
<< setw(4) << c.pass_through()
58
<< endl;
59
return
o;
60
}
61
62
63
string
HLTPrescale::__str__
()
const
{
64
stringstream s;
65
s << *
this
;
66
return
s.str();
67
}
HLTChainList.h
HLTFrame.h
HLTPrescale.h
HLTChain.h
TrigConf::HLTPrescale
Definition
HLTPrescale.h:30
TrigConf::HLTPrescale::setStreamPrescale
HLTPrescale & setStreamPrescale(const std::string &streamName, float ps)
Definition
HLTPrescale.cxx:24
TrigConf::HLTPrescale::m_stream_prescale
PrescaleMap_t m_stream_prescale
Definition
HLTPrescale.h:72
TrigConf::HLTPrescale::m_prescale
float m_prescale
Definition
HLTPrescale.h:69
TrigConf::HLTPrescale::pass_through
float pass_through() const
Definition
HLTPrescale.h:57
TrigConf::HLTPrescale::HLTPrescale
HLTPrescale(float prescale=1, float pass_through=-1)
Definition
HLTPrescale.cxx:17
TrigConf::HLTPrescale::m_pass_through
float m_pass_through
Definition
HLTPrescale.h:70
TrigConf::HLTPrescale::setRerunPrescale
HLTPrescale & setRerunPrescale(const std::string &targetName, float ps)
Definition
HLTPrescale.cxx:30
TrigConf::HLTPrescale::getRerunPrescale
std::pair< bool, float > getRerunPrescale(std::string_view targetName) const
Definition
HLTPrescale.cxx:36
TrigConf::HLTPrescale::__str__
std::string __str__() const
Definition
HLTPrescale.cxx:63
TrigConf::HLTPrescale::m_rerun_prescale
PrescaleMap_t m_rerun_prescale
Definition
HLTPrescale.h:71
TrigConf::HLTPrescale::getStreamPrescale
std::pair< bool, float > getStreamPrescale(std::string_view streamName) const
Definition
HLTPrescale.cxx:44
TrigConf::HLTPrescale::prescale
float prescale() const
Definition
HLTPrescale.h:56
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition
Config.h:22
TrigConf::operator<<
std::ostream & operator<<(std::ostream &os, const TrigConf::IsolationLegacy &iso)
Definition
L1ThresholdBase.cxx:339
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0