ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigConfiguration
TrigConfHLTData
TrigConfHLTData
HLTPrescale.h
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
#ifndef TrigConf_HLTPrescale
7
#define TrigConf_HLTPrescale
8
#include "
TrigConfL1Data/TrigConfData.h
"
9
10
#include "
CxxUtils/transparent_string_hash.h
"
11
12
#include <iosfwd>
13
#include <string>
14
#include <string_view>
15
#include <map>
16
#include <vector>
17
#include <utility>
18
19
#include <unordered_map>
20
21
22
namespace
TrigConf
{
23
class
HLTPrescale
;
24
}
25
26
namespace
TrigConf
{
27
28
std::ostream &
operator<<
(std::ostream &,
const
TrigConf::HLTPrescale &);
29
30
class
HLTPrescale
{
31
public
:
32
33
// constructor
34
HLTPrescale
(
float
prescale
=1,
float
pass_through
=-1);
35
HLTPrescale
(
const
HLTPrescale
& o) =
default
;
36
HLTPrescale
(
HLTPrescale
&& o)
noexcept
=
default
;
37
38
// destructor
39
~HLTPrescale
() =
default
;
40
41
// assignment
42
HLTPrescale
&
operator=
(
const
HLTPrescale
&) =
default
;
43
HLTPrescale
&
operator=
(
HLTPrescale
&&) noexcept = default;
44
45
// maps for rerun and stream prescales
46
typedef
std
::unordered_map<
std
::
string
,
float
,
CxxUtils
::TransparentStringHash,
std
::equal_to<> >
PrescaleMap_t
;
47
typedef
PrescaleMap_t
::
value_type
value_type
;
48
49
// setters
50
HLTPrescale
&
setPrescale
(
float
prescale
) {
m_prescale
=
prescale
;
return
*
this
; }
51
HLTPrescale
&
setPassThrough
(
float
pass_through
) {
m_pass_through
=
pass_through
;
return
*
this
; }
52
HLTPrescale
&
setRerunPrescale
(
const
std::string& targetName,
float
ps);
53
HLTPrescale
&
setStreamPrescale
(
const
std::string& streamName,
float
ps);
54
55
// getters
56
float
prescale
()
const
{
return
m_prescale
; }
57
float
pass_through
()
const
{
return
m_pass_through
; }
58
std::pair<bool, float>
getRerunPrescale
(std::string_view targetName)
const
;
59
std::pair<bool, float>
getStreamPrescale
(std::string_view streamName)
const
;
60
const
PrescaleMap_t
&
getRerunPrescales
()
const
{
return
m_rerun_prescale
; }
61
const
PrescaleMap_t
&
getStreamPrescales
()
const
{
return
m_stream_prescale
; }
62
63
bool
disabled
()
const
{
return
m_prescale
<0; }
64
65
std::string
__str__
()
const
;
66
67
private
:
68
// data
69
float
m_prescale
;
70
float
m_pass_through
;
71
PrescaleMap_t
m_rerun_prescale
;
72
PrescaleMap_t
m_stream_prescale
;
73
};
74
75
}
76
77
#endif
TrigConfData.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::getStreamPrescales
const PrescaleMap_t & getStreamPrescales() const
Definition
HLTPrescale.h:61
TrigConf::HLTPrescale::HLTPrescale
HLTPrescale(float prescale=1, float pass_through=-1)
Definition
HLTPrescale.cxx:17
TrigConf::HLTPrescale::value_type
PrescaleMap_t::value_type value_type
Definition
HLTPrescale.h:47
TrigConf::HLTPrescale::HLTPrescale
HLTPrescale(HLTPrescale &&o) noexcept=default
TrigConf::HLTPrescale::m_pass_through
float m_pass_through
Definition
HLTPrescale.h:70
TrigConf::HLTPrescale::operator=
HLTPrescale & operator=(HLTPrescale &&) noexcept=default
TrigConf::HLTPrescale::~HLTPrescale
~HLTPrescale()=default
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::operator=
HLTPrescale & operator=(const HLTPrescale &)=default
TrigConf::HLTPrescale::setPassThrough
HLTPrescale & setPassThrough(float pass_through)
Definition
HLTPrescale.h:51
TrigConf::HLTPrescale::getStreamPrescale
std::pair< bool, float > getStreamPrescale(std::string_view streamName) const
Definition
HLTPrescale.cxx:44
TrigConf::HLTPrescale::getRerunPrescales
const PrescaleMap_t & getRerunPrescales() const
Definition
HLTPrescale.h:60
TrigConf::HLTPrescale::setPrescale
HLTPrescale & setPrescale(float prescale)
Definition
HLTPrescale.h:50
TrigConf::HLTPrescale::prescale
float prescale() const
Definition
HLTPrescale.h:56
TrigConf::HLTPrescale::HLTPrescale
HLTPrescale(const HLTPrescale &o)=default
TrigConf::HLTPrescale::disabled
bool disabled() const
Definition
HLTPrescale.h:63
TrigConf::HLTPrescale::PrescaleMap_t
std::unordered_map< std::string, float, CxxUtils::TransparentStringHash, std::equal_to<> > PrescaleMap_t
Definition
HLTPrescale.h:46
CxxUtils
Definition
aligned_vector.h:29
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition
IDPerfMonZmumu.h:57
TrigConf::operator<<
std::ostream & operator<<(std::ostream &os, const TrigConf::IsolationLegacy &iso)
Definition
L1ThresholdBase.cxx:339
std
STL namespace.
transparent_string_hash.h
Generated on
for ATLAS Offline Software by
1.17.0