ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigConfiguration
TrigConfHLTData
TrigConfHLTData
HLTPrescaleSet.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TrigConf_HLTPrescaleSet
6
#define TrigConf_HLTPrescaleSet
7
8
#include <iosfwd>
9
#include <string>
10
#include <vector>
11
#include <utility>
12
#include <array>
13
#include <stdint.h>
14
15
#include "
TrigConfHLTData/HLTPrescale.h
"
16
#include "
TrigConfHLTData/HLTLevel.h
"
17
#include "
TrigConfL1Data/TrigConfData.h
"
18
19
#include <unordered_map>
20
21
22
namespace
TrigConf
{
23
class
HLTPrescaleSet
;
24
}
25
26
namespace
TrigConf
{
27
28
std::ostream &
operator<<
(std::ostream &,
const
TrigConf::HLTPrescaleSet &);
29
31
class
HLTPrescaleSet
:
public
TrigConfData
{
32
public
:
33
34
typedef
std::unordered_map<unsigned int, HLTPrescale>
ScalingMap_t
;
35
37
HLTPrescaleSet
();
38
40
virtual
~HLTPrescaleSet
()
override
=
default
;
41
42
HLTPrescale
&
setPrescale
(
const
HLTPrescale
&
sc
,
unsigned
int
chain_counter,
HLTLevel
level =
HLT
);
43
44
const
HLTPrescale
&
getPrescale
(
unsigned
int
chain_counter,
HLTLevel
level =
HLT
)
const
;
45
46
bool
hasPrescale
(
unsigned
int
counter
,
TrigConf::HLTLevel
level =
HLT
)
const
;
47
48
HLTPrescale
&
thePrescale
(
unsigned
int
chain_counter,
HLTLevel
level);
49
50
const
ScalingMap_t
&
getPrescales
(
HLTLevel
level)
const
{
return
m_scalers
[
static_cast<
unsigned
int
>
(level)]; }
51
52
size_t
size
(
HLTLevel
level=
HLT
)
const
{
return
m_scalers
[
static_cast<
unsigned
int
>
(level)].
size
(); }
53
54
void
reset
();
55
57
void
print
(
const
std::string&
indent
=
""
,
unsigned
int
detail
=1)
const override
;
58
60
void
setIOV
(uint32_t start_run, uint32_t start_lb, uint32_t end_run, uint32_t end_lb );
61
void
setIOV
(uint64_t start, uint64_t end );
62
64
void
getIOV
(uint32_t& start_run, uint32_t& start_lb, uint32_t& end_run, uint32_t& end_lb )
const
;
65
67
bool
isValid
(uint32_t
run
, uint32_t
lb
)
const
;
68
69
std::string
__str__
()
const override
;
70
71
private
:
72
std::array<ScalingMap_t, 3>
m_scalers
;
73
74
uint64_t
m_iovstart
;
75
uint64_t
m_iovend
;
76
77
friend
std::ostream &
operator<<
(std::ostream &,
const
TrigConf::HLTPrescaleSet
&);
78
};
79
80
}
81
82
#endif
isValid
bool isValid() const
Test to see if the link can be dereferenced.
HLTLevel.h
HLTPrescale.h
sc
static Double_t sc
Definition
LArPhysWaveHECTool.cxx:37
TrigConfData.h
TrigConf::HLTPrescaleSet
HLT chain configuration information.
Definition
HLTPrescaleSet.h:31
TrigConf::HLTPrescaleSet::print
void print(const std::string &indent="", unsigned int detail=1) const override
print the prescale set
Definition
HLTPrescaleSet.cxx:105
TrigConf::HLTPrescaleSet::size
size_t size(HLTLevel level=HLT) const
Definition
HLTPrescaleSet.h:52
TrigConf::HLTPrescaleSet::m_scalers
std::array< ScalingMap_t, 3 > m_scalers
Definition
HLTPrescaleSet.h:72
TrigConf::HLTPrescaleSet::setIOV
void setIOV(uint32_t start_run, uint32_t start_lb, uint32_t end_run, uint32_t end_lb)
sets the IOV of the prescale set
Definition
HLTPrescaleSet.cxx:65
TrigConf::HLTPrescaleSet::HLTPrescaleSet
HLTPrescaleSet()
default constructor
Definition
HLTPrescaleSet.cxx:16
TrigConf::HLTPrescaleSet::m_iovend
uint64_t m_iovend
Definition
HLTPrescaleSet.h:75
TrigConf::HLTPrescaleSet::getPrescales
const ScalingMap_t & getPrescales(HLTLevel level) const
Definition
HLTPrescaleSet.h:50
TrigConf::HLTPrescaleSet::getIOV
void getIOV(uint32_t &start_run, uint32_t &start_lb, uint32_t &end_run, uint32_t &end_lb) const
gets the IOV of the prescale set
Definition
HLTPrescaleSet.cxx:80
TrigConf::HLTPrescaleSet::operator<<
friend std::ostream & operator<<(std::ostream &, const TrigConf::HLTPrescaleSet &)
TrigConf::HLTPrescaleSet::~HLTPrescaleSet
virtual ~HLTPrescaleSet() override=default
destructor
TrigConf::HLTPrescaleSet::__str__
std::string __str__() const override
Definition
HLTPrescaleSet.cxx:169
TrigConf::HLTPrescaleSet::hasPrescale
bool hasPrescale(unsigned int counter, TrigConf::HLTLevel level=HLT) const
Definition
HLTPrescaleSet.cxx:35
TrigConf::HLTPrescaleSet::thePrescale
HLTPrescale & thePrescale(unsigned int chain_counter, HLTLevel level)
Definition
HLTPrescaleSet.cxx:53
TrigConf::HLTPrescaleSet::reset
void reset()
Definition
HLTPrescaleSet.cxx:99
TrigConf::HLTPrescaleSet::setPrescale
HLTPrescale & setPrescale(const HLTPrescale &sc, unsigned int chain_counter, HLTLevel level=HLT)
Definition
HLTPrescaleSet.cxx:22
TrigConf::HLTPrescaleSet::m_iovstart
uint64_t m_iovstart
Definition
HLTPrescaleSet.h:74
TrigConf::HLTPrescaleSet::getPrescale
const HLTPrescale & getPrescale(unsigned int chain_counter, HLTLevel level=HLT) const
Definition
HLTPrescaleSet.cxx:42
TrigConf::HLTPrescaleSet::ScalingMap_t
std::unordered_map< unsigned int, HLTPrescale > ScalingMap_t
Definition
HLTPrescaleSet.h:34
TrigConf::HLTPrescale
Definition
HLTPrescale.h:30
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition
TrigConfData.cxx:23
TrigConf::TrigConfData::TrigConfData
TrigConfData(const std::string &name="")
Definition
TrigConfData.cxx:14
lb
int lb
Definition
globals.cxx:23
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition
HLTResultReader.h:26
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition
IDPerfMonZmumu.h:57
TrigConf::HLTLevel
HLTLevel
Definition
HLTLevel.h:12
TrigConf::operator<<
std::ostream & operator<<(std::ostream &os, const TrigConf::IsolationLegacy &iso)
Definition
L1ThresholdBase.cxx:339
detail
Definition
extract_histogram_tag.cxx:14
TrigConf::counter
Definition
HLTChainList.h:37
run
int run(int argc, char *argv[])
Definition
ttree2hdf5.cxx:28
Generated on
for ATLAS Offline Software by
1.17.0