ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigConfiguration
TrigConfL1Data
TrigConfL1Data
PrescaleSet.h
Go to the documentation of this file.
1
// Dear emacs, this is -*- c++ -*-
2
3
/*
4
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
#ifndef TrigConf_PrescaleSet
8
#define TrigConf_PrescaleSet
9
10
#include "
TrigConfL1Data/L1DataBaseclass.h
"
11
12
#include <vector>
13
#include <string>
14
#include <stdint.h>
15
21
namespace
TrigConf
{
22
23
class
PrescaleSet
:
public
L1DataBaseclass
{
24
public
:
25
26
static
const
int32_t
maxPrescaleCut
;
27
28
static
int32_t
getCutFromPrescale
(
double
prescale);
29
30
static
double
getPrescaleFromCut
(int32_t cut);
31
32
PrescaleSet
() =
default
;
33
virtual
~PrescaleSet
()
override
=
default
;
34
35
// Accessors
36
bool
isNull
()
const
{
return
m_null
; }
37
const
std::string&
type
()
const
{
return
m_Type
; }
38
unsigned
int
partition
()
const
{
return
m_Partition
; }
39
const
std::vector<int64_t>&
prescales_ctp
()
const
{
return
m_Prescales_ctp
; }
40
const
std::vector<float>&
prescales_float
()
const
{
return
m_Prescales_float
; }
41
const
std::vector<int32_t>&
cuts
()
const
{
return
m_Cuts
; }
42
43
// Setters
44
void
setType
(
const
std::string&
type
) {
m_Type
=
type
; }
45
void
setPartition
(
unsigned
int
partition
) {
m_Partition
=
partition
; }
46
47
// setting of prescales
48
void
resize
(
size_t
size
);
49
void
setPrescale
(
unsigned
int
num,
float
prescaleValue);
50
void
setCuts
(
const
std::vector<int32_t>&
cuts
);
51
void
setCut
(
unsigned
int
num, int32_t cut);
52
53
// reset all prescales to -1
54
void
reset
();
55
56
virtual
void
print
(
const
std::string&
indent
=
""
,
unsigned
int
detail
=1)
const override
;
57
58
void
writeXML
(std::ostream &
xmlfile
,
int
indentLevel = 0,
int
indentWidth = 2)
const
;
59
60
private
:
61
bool
m_null
{
true
};
// false: indicates if the prescale set has been filled
62
63
std::string
m_Type
{
"Physics"
};
// the type of the prescale set, e.g. Physics, Standby, Cosmics, HighRate, VdM (case insensitive)
64
unsigned
int
m_Partition
{0};
65
std::vector<int64_t>
m_Prescales_ctp
;
// the 64bit representation.
66
std::vector<float>
m_Prescales_float
;
// the float representation.
67
std::vector<int32_t>
m_Cuts
;
// the cut
68
69
};
70
71
}
72
73
#endif
74
L1DataBaseclass.h
size
size_t size() const
Number of registered mappings.
TrigConf::L1DataBaseclass::L1DataBaseclass
L1DataBaseclass()
Definition
L1DataBaseclass.h:24
TrigConf::PrescaleSet::m_null
bool m_null
Definition
PrescaleSet.h:61
TrigConf::PrescaleSet::getCutFromPrescale
static int32_t getCutFromPrescale(double prescale)
calculate cut value for hardware configuration cut = 2*24/prescale - 1
Definition
PrescaleSet.cxx:30
TrigConf::PrescaleSet::isNull
bool isNull() const
Definition
PrescaleSet.h:36
TrigConf::PrescaleSet::type
const std::string & type() const
Definition
PrescaleSet.h:37
TrigConf::PrescaleSet::setCuts
void setCuts(const std::vector< int32_t > &cuts)
Definition
PrescaleSet.cxx:70
TrigConf::PrescaleSet::prescales_ctp
const std::vector< int64_t > & prescales_ctp() const
Definition
PrescaleSet.h:39
TrigConf::PrescaleSet::m_Type
std::string m_Type
Definition
PrescaleSet.h:63
TrigConf::PrescaleSet::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition
PrescaleSet.cxx:94
TrigConf::PrescaleSet::setPartition
void setPartition(unsigned int partition)
Definition
PrescaleSet.h:45
TrigConf::PrescaleSet::prescales_float
const std::vector< float > & prescales_float() const
Definition
PrescaleSet.h:40
TrigConf::PrescaleSet::~PrescaleSet
virtual ~PrescaleSet() override=default
TrigConf::PrescaleSet::reset
void reset()
Definition
PrescaleSet.cxx:55
TrigConf::PrescaleSet::setCut
void setCut(unsigned int num, int32_t cut)
Definition
PrescaleSet.cxx:77
TrigConf::PrescaleSet::partition
unsigned int partition() const
Definition
PrescaleSet.h:38
TrigConf::PrescaleSet::cuts
const std::vector< int32_t > & cuts() const
Definition
PrescaleSet.h:41
TrigConf::PrescaleSet::getPrescaleFromCut
static double getPrescaleFromCut(int32_t cut)
prescale = 2*24/(cut+1.)
Definition
PrescaleSet.cxx:49
TrigConf::PrescaleSet::maxPrescaleCut
static const int32_t maxPrescaleCut
Definition
PrescaleSet.h:26
TrigConf::PrescaleSet::m_Cuts
std::vector< int32_t > m_Cuts
Definition
PrescaleSet.h:67
TrigConf::PrescaleSet::writeXML
void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Writes the Prescale item to the XML file.
Definition
PrescaleSet.cxx:110
TrigConf::PrescaleSet::PrescaleSet
PrescaleSet()=default
TrigConf::PrescaleSet::m_Partition
unsigned int m_Partition
Definition
PrescaleSet.h:64
TrigConf::PrescaleSet::setPrescale
void setPrescale(unsigned int num, float prescaleValue)
Definition
PrescaleSet.cxx:85
TrigConf::PrescaleSet::setType
void setType(const std::string &type)
Definition
PrescaleSet.h:44
TrigConf::PrescaleSet::m_Prescales_float
std::vector< float > m_Prescales_float
Definition
PrescaleSet.h:66
TrigConf::PrescaleSet::resize
void resize(size_t size)
Definition
PrescaleSet.cxx:63
TrigConf::PrescaleSet::m_Prescales_ctp
std::vector< int64_t > m_Prescales_ctp
Definition
PrescaleSet.h:65
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition
TrigConfData.cxx:23
xmlfile
static std::vector< std::string > xmlfile
Definition
iLumiCalc.h:29
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition
IDPerfMonZmumu.h:57
detail
Definition
extract_histogram_tag.cxx:14
Generated on
for ATLAS Offline Software by
1.17.0