ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigConfiguration
TrigConfL1Data
Root
TriggerThresholdValue.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigConfL1Data/TriggerThresholdValue.h
"
6
#include "
TrigConfL1Data/CaloInfo.h
"
7
#include "
CxxUtils/checker_macros.h
"
8
9
#include <iostream>
10
11
using namespace
std
;
12
using namespace
TrigConf
;
13
14
// Internal variable (thread-safe, because set during initialize)
15
static
TrigConf::CaloInfo
fgCaloInfo
ATLAS_THREAD_SAFE
;
16
static
const
TrigConf::CaloInfo
* fgCaloInfoPointer
ATLAS_THREAD_SAFE
= 0;
17
18
const
int
TriggerThresholdValue::fgCaloClusterOff
= 0xff;
// 255
19
const
int
TriggerThresholdValue::fgCaloJetOff
= 0x3ff;
// 1023
20
const
int
TriggerThresholdValue::fgCaloEtSumOff
= 0x7fff;
// 16383
21
const
int
TriggerThresholdValue::fgCaloEtMissOff
= 0x7fff;
// 2895
22
const
int
TriggerThresholdValue::fgCaloJetEtOff
= 0x33e6;
// 13286
23
const
int
TriggerThresholdValue::fgCaloIsolationOff
= 0x3f;
// 63
24
25
26
27
// Static stuffs
28
void
29
TriggerThresholdValue::setCaloInfo
(
const
CaloInfo
& ci) {
30
fgCaloInfo = ci;
31
fgCaloInfoPointer = &fgCaloInfo;
32
}
33
34
const
CaloInfo
&
35
TriggerThresholdValue::caloInfo
()
const
{
36
return
fgCaloInfo;
37
}
38
39
40
float
41
TrigConf::TriggerThresholdValue::caloGlobalScale
() {
42
if
(fgCaloInfoPointer)
43
return
fgCaloInfoPointer->
globalScale
();
44
return
1.0;
45
}
46
47
float
48
TrigConf::TriggerThresholdValue::caloGlobalScaleGeVToCount
() {
49
float
x
=
caloGlobalScaleCountToGeV
();
50
if
(
x
== 0)
51
return
1.0;
52
else
53
return
1.0/
x
;
54
}
55
56
float
57
TrigConf::TriggerThresholdValue::caloGlobalScaleCountToGeV
() {
58
return
caloGlobalScale
();
59
}
60
61
// constructors
62
TrigConf::TriggerThresholdValue::TriggerThresholdValue
( )
63
:
L1DataBaseclass
()
64
,
m_Type
(
""
)
65
,
m_Ptcut
(0.0)
66
,
m_Priority
(0.0)
67
,
m_Window
(0)
68
,
m_WindowSize
(
JetWindowSize
::NONE )
69
,
m_PhiMin
(0)
70
,
m_PhiMax
(64)
71
,
m_EtaMin
(-49)
72
,
m_EtaMax
(49)
73
{}
74
75
int
76
TrigConf::TriggerThresholdValue::thresholdValueCount
()
const
{
77
return
(
int
)
ptcut
();
// overriden in Cluster/JetThresholdValue
78
}
79
80
bool
81
TrigConf::TriggerThresholdValue::contains
(
float
eta
,
float
phi
)
const
{
82
return
(
eta
>=
etamin
() &&
eta
<=
etamax
() &&
83
phi
>=
phimin
() &&
phi
<=
phimax
());
84
}
85
86
void
87
TrigConf::TriggerThresholdValue::print
(
const
std::string&
indent
,
unsigned
int
/*detail*/
)
const
{
88
cout <<
indent
<<
"-----------------------"
<< endl;
89
cout <<
indent
<<
"TriggerThresholdValue: "
<< endl;
90
cout <<
indent
<<
"\t id: "
<<
id
() << endl;
91
cout <<
indent
<<
"\t Name: "
<<
name
() << endl;
92
cout <<
indent
<<
"\t Version: "
<<
version
() << endl;
93
cout <<
indent
<<
"\t Priority: "
<<
m_Priority
<< endl;
94
cout <<
indent
<<
"\t Type: "
<<
m_Type
<< endl;
95
cout <<
indent
<<
"\t ptcut: "
<<
m_Ptcut
<< endl;
96
}
97
98
void
99
TrigConf::TriggerThresholdValue::writeXML
(std::ostream &
xmlfile
,
int
indentLevel,
int
indentWidth)
const
{
100
indent
(
xmlfile
, indentLevel, indentWidth)
101
<<
"<TriggerThresholdValue "
<<
m_Type
<<
" NOT IMPLEMENTED/>"
102
<< endl;
103
}
104
105
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
CaloInfo.h
TriggerThresholdValue.h
x
#define x
checker_macros.h
Define macros for attributes used to control the static checker.
ATLAS_THREAD_SAFE
#define ATLAS_THREAD_SAFE
Definition
checker_macros.h:211
TrigConf::CaloInfo
Definition
CaloInfo.h:35
TrigConf::CaloInfo::globalScale
double globalScale() const
Definition
CaloInfo.h:42
TrigConf::L1DataBaseclass::L1DataBaseclass
L1DataBaseclass()
Definition
L1DataBaseclass.h:24
TrigConf::TrigConfData::id
unsigned int id() const
Definition
TrigConfData.h:21
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition
TrigConfData.cxx:23
TrigConf::TrigConfData::version
unsigned int version() const
Definition
TrigConfData.h:24
TrigConf::TriggerThresholdValue::m_EtaMin
int m_EtaMin
Definition
TriggerThresholdValue.h:83
TrigConf::TriggerThresholdValue::m_Window
unsigned int m_Window
Definition
TriggerThresholdValue.h:79
TrigConf::TriggerThresholdValue::m_WindowSize
JetWindowSize::Size m_WindowSize
Definition
TriggerThresholdValue.h:80
TrigConf::TriggerThresholdValue::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const
Definition
TriggerThresholdValue.cxx:99
TrigConf::TriggerThresholdValue::phimin
int phimin() const
Definition
TriggerThresholdValue.h:51
TrigConf::TriggerThresholdValue::caloGlobalScaleCountToGeV
static float caloGlobalScaleCountToGeV()
Definition
TriggerThresholdValue.cxx:57
TrigConf::TriggerThresholdValue::m_Priority
unsigned int m_Priority
Definition
TriggerThresholdValue.h:78
TrigConf::TriggerThresholdValue::fgCaloJetEtOff
static const int fgCaloJetEtOff
Definition
TriggerThresholdValue.h:28
TrigConf::TriggerThresholdValue::caloGlobalScale
static float caloGlobalScale()
Definition
TriggerThresholdValue.cxx:41
TrigConf::TriggerThresholdValue::contains
bool contains(float eta, float phi) const
Definition
TriggerThresholdValue.cxx:81
TrigConf::TriggerThresholdValue::m_PhiMin
int m_PhiMin
Definition
TriggerThresholdValue.h:81
TrigConf::TriggerThresholdValue::caloGlobalScaleGeVToCount
static float caloGlobalScaleGeVToCount()
Definition
TriggerThresholdValue.cxx:48
TrigConf::TriggerThresholdValue::fgCaloClusterOff
static const int fgCaloClusterOff
Definition
TriggerThresholdValue.h:24
TrigConf::TriggerThresholdValue::fgCaloIsolationOff
static const int fgCaloIsolationOff
Definition
TriggerThresholdValue.h:29
TrigConf::TriggerThresholdValue::thresholdValueCount
virtual int thresholdValueCount() const
Definition
TriggerThresholdValue.cxx:76
TrigConf::TriggerThresholdValue::m_PhiMax
int m_PhiMax
Definition
TriggerThresholdValue.h:82
TrigConf::TriggerThresholdValue::TriggerThresholdValue
TriggerThresholdValue()
Definition
TriggerThresholdValue.cxx:62
TrigConf::TriggerThresholdValue::ptcut
float ptcut() const
Definition
TriggerThresholdValue.h:45
TrigConf::TriggerThresholdValue::caloInfo
const CaloInfo & caloInfo() const
Definition
TriggerThresholdValue.cxx:35
TrigConf::TriggerThresholdValue::fgCaloEtMissOff
static const int fgCaloEtMissOff
Definition
TriggerThresholdValue.h:27
TrigConf::TriggerThresholdValue::m_Ptcut
float m_Ptcut
Definition
TriggerThresholdValue.h:77
TrigConf::TriggerThresholdValue::phimax
int phimax() const
Definition
TriggerThresholdValue.h:52
TrigConf::TriggerThresholdValue::m_Type
std::string m_Type
Definition
TriggerThresholdValue.h:76
TrigConf::TriggerThresholdValue::fgCaloJetOff
static const int fgCaloJetOff
Definition
TriggerThresholdValue.h:25
TrigConf::TriggerThresholdValue::etamax
int etamax() const
Definition
TriggerThresholdValue.h:54
TrigConf::TriggerThresholdValue::etamin
int etamin() const
Definition
TriggerThresholdValue.h:53
TrigConf::TriggerThresholdValue::setCaloInfo
static void setCaloInfo(const CaloInfo &ci)
Definition
TriggerThresholdValue.cxx:29
TrigConf::TriggerThresholdValue::fgCaloEtSumOff
static const int fgCaloEtSumOff
Definition
TriggerThresholdValue.h:26
TrigConf::TriggerThresholdValue::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override=0
Definition
TriggerThresholdValue.cxx:87
TrigConf::TriggerThresholdValue::m_EtaMax
int m_EtaMax
Definition
TriggerThresholdValue.h:84
xmlfile
static std::vector< std::string > xmlfile
Definition
iLumiCalc.h:29
TrigConf::JetWindowSize
Definition
TriggerThresholdValue.h:16
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition
Config.h:22
std
STL namespace.
TrigConf::name
Definition
HLTChainList.h:35
Generated on
for ATLAS Offline Software by
1.17.0