ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigConfiguration
TrigConfL1Data
Root
EtThresholdValue.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigConfL1Data/EtThresholdValue.h
"
6
#include "
TrigConfL1Data/L1DataDef.h
"
7
#include "
TrigConfL1Data/CaloInfo.h
"
8
#include <iostream>
9
10
using namespace
std
;
11
12
TrigConf::EtThresholdValue::EtThresholdValue
() :
13
TriggerThresholdValue
()
14
{}
15
16
TrigConf::TriggerThresholdValue
*
17
TrigConf::EtThresholdValue::createCopy
()
const
{
18
return
new
EtThresholdValue
(*
this
);
19
}
20
21
int
22
TrigConf::EtThresholdValue::thresholdValueCount
()
const
{
23
24
int
count
=
static_cast<
int
>
(
m_Ptcut
*
caloInfo
().globalJetScale() );
25
26
if
(
type
()==
L1DataDef::typeAsString
(
L1DataDef::JE
) &&
count
>
fgCaloJetEtOff
) {
27
count
=
fgCaloJetEtOff
;
28
}
else
if
(
type
()==
L1DataDef::typeAsString
(
L1DataDef::TE
) &&
count
>
fgCaloEtSumOff
) {
29
count
=
fgCaloEtSumOff
;
30
}
else
if
(
type
()==
L1DataDef::typeAsString
(
L1DataDef::XE
) &&
count
>
fgCaloEtMissOff
) {
31
count
=
fgCaloEtMissOff
;
32
}
33
34
return
count
;
35
}
36
37
void
38
TrigConf::EtThresholdValue::print
(
const
std::string&
indent
,
unsigned
int
/*detail*/
)
const
{
39
cout <<
indent
<<
"-----------------------"
<< endl;
40
cout <<
indent
<<
"EtThresholdValue: "
<< endl;
41
printNameIdV
(
indent
);
42
cout <<
indent
<<
"\t Type: "
<<
m_Type
<< endl;
43
cout <<
indent
<<
"\t ptcut: "
<<
m_Ptcut
44
<<
" count="
<<
thresholdValueCount
() << endl;
45
cout <<
indent
<<
"\t etamin: "
<<
m_EtaMin
<< endl;
46
cout <<
indent
<<
"\t etamax: "
<<
m_EtaMax
<< endl;
47
cout <<
indent
<<
"\t phimin: "
<<
m_PhiMin
<< endl;
48
cout <<
indent
<<
"\t phimax: "
<<
m_PhiMax
<< endl;
49
cout <<
indent
<<
"\t priority:"
<<
m_Priority
<< endl;
50
}
51
52
void
53
TrigConf::EtThresholdValue::writeXML
(std::ostream &
xmlfile
,
int
indentLevel,
int
indentWidth)
const
{
54
indent
(
xmlfile
, indentLevel, indentWidth)
55
<<
"<TriggerThresholdValue em_isolation=\"63\" etamin=\""
<<
m_EtaMin
56
<<
"\" etamax=\""
<<
m_EtaMax
57
<<
"\" had_isolation=\"63\" had_veto=\"63\" name=\""
<<
name
()
58
<<
"\" phimin=\""
<<
m_PhiMin
59
<<
"\" phimax=\""
<<
m_PhiMax
60
<<
"\" priority=\""
<<
m_Priority
61
<<
"\" thresholdval=\""
<<
m_Ptcut
62
<<
"\" type=\""
<<
m_Type
63
<<
"\" window=\"0\"/>"
64
<< endl;
65
}
66
CaloInfo.h
EtThresholdValue.h
L1DataDef.h
TrigConf::EtThresholdValue::thresholdValueCount
virtual int thresholdValueCount() const override
Definition
EtThresholdValue.cxx:22
TrigConf::EtThresholdValue::createCopy
virtual TriggerThresholdValue * createCopy() const override
Definition
EtThresholdValue.cxx:17
TrigConf::EtThresholdValue::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition
EtThresholdValue.cxx:38
TrigConf::EtThresholdValue::writeXML
virtual void writeXML(std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const override
Definition
EtThresholdValue.cxx:53
TrigConf::EtThresholdValue::EtThresholdValue
EtThresholdValue()
Definition
EtThresholdValue.cxx:12
TrigConf::L1DataDef::JE
@ JE
Definition
L1DataDef.h:21
TrigConf::L1DataDef::TE
@ TE
Definition
L1DataDef.h:22
TrigConf::L1DataDef::XE
@ XE
Definition
L1DataDef.h:22
TrigConf::L1DataDef::typeAsString
static std::string & typeAsString(TriggerType tt)
Definition
L1DataDef.h:53
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition
TrigConfData.cxx:23
TrigConf::TrigConfData::printNameIdV
void printNameIdV(const std::string &indent="") const
Definition
TrigConfData.cxx:31
TrigConf::TriggerThresholdValue
Definition
TriggerThresholdValue.h:22
TrigConf::TriggerThresholdValue::m_EtaMin
int m_EtaMin
Definition
TriggerThresholdValue.h:83
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::m_PhiMin
int m_PhiMin
Definition
TriggerThresholdValue.h:81
TrigConf::TriggerThresholdValue::m_PhiMax
int m_PhiMax
Definition
TriggerThresholdValue.h:82
TrigConf::TriggerThresholdValue::TriggerThresholdValue
TriggerThresholdValue()
Definition
TriggerThresholdValue.cxx:62
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::m_Type
std::string m_Type
Definition
TriggerThresholdValue.h:76
TrigConf::TriggerThresholdValue::type
const std::string & type() const
Definition
TriggerThresholdValue.h:44
TrigConf::TriggerThresholdValue::fgCaloEtSumOff
static const int fgCaloEtSumOff
Definition
TriggerThresholdValue.h:26
TrigConf::TriggerThresholdValue::m_EtaMax
int m_EtaMax
Definition
TriggerThresholdValue.h:84
count
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
Definition
hcg.cxx:148
xmlfile
static std::vector< std::string > xmlfile
Definition
iLumiCalc.h:29
std
STL namespace.
TrigConf::name
Definition
HLTChainList.h:35
Generated on
for ATLAS Offline Software by
1.17.0