ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
Global
GlobalSimulation
src
Hypothesis
CommonSelector.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
./CommonSelector.h
"
6
#include <sstream>
7
8
namespace
GlobalSim
{
9
10
using namespace
GlobalSim::IOBitwise;
11
12
CommonSelector::CommonSelector
(
const
std::string& et_low,
13
const
std::string& et_high,
14
const
std::string& eta_low,
15
const
std::string& eta_high,
16
const
std::string& phi_low,
17
const
std::string& phi_high):
18
m_et_low
{
std
::stoul(et_low)},
19
m_eta_low
{
std
::stoul(eta_low)},
20
m_phi_low
{
std
::stoul(phi_low)} {
21
//
22
auto
unsignedLong = [](
const
std::string & txt)->unsigned
long
{
23
if
(txt ==
"inf"
)
return
ULONG_MAX;
24
return
std::stoul(txt);
25
};
26
//
27
m_et_high
= unsignedLong(et_high);
28
m_eta_high
= unsignedLong(eta_high);
29
m_phi_high
= unsignedLong(phi_high);
30
}
31
32
33
bool
CommonSelector::select
(
const
CommonTOB
& tob)
const
{
34
{
35
auto
et
= tob.
et_bits
().to_ulong();
36
if
(
et < m_et_low or et >
=
m_et_high
) {
return
false
;}
37
}
38
39
{
40
auto
eta
= tob.
eta_bits
().to_ulong();
41
if
(
eta < m_eta_low or eta >
=
m_eta_high
) {
return
false
;}
42
}
43
44
{
45
auto
phi
= tob.
phi_bits
().to_ulong();
46
if
(
phi < m_phi_low or phi >
=
m_phi_high
) {
return
false
;}
47
}
48
49
return
true
;
50
};
51
52
std::string
CommonSelector::to_string
()
const
{
53
54
auto
ss
= std::stringstream();
55
ss
<<
"et_low: "
<<
m_et_low
<<
' '
56
<<
"et_high: "
<<
m_et_high
<<
' '
57
<<
"eta_low: "
<<
m_eta_low
<<
' '
58
<<
"eta_high: "
<<
m_eta_high
<<
' '
59
<<
"phi_low: "
<<
m_phi_low
<<
' '
60
<<
"phi_high: "
<<
m_phi_high
;
61
62
return
ss
.str();
63
};
64
65
}
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
CommonSelector.h
et
float et(const xAOD::jFexSRJetRoI *j)
Definition
L1MonitorAdaptors.h:17
ss
static Double_t ss
Definition
LArPhysWaveHECTool.cxx:37
GlobalSim::CommonSelector::CommonSelector
CommonSelector()=default
Passes all.
GlobalSim::CommonSelector::m_et_high
ulong m_et_high
Definition
CommonSelector.h:45
GlobalSim::CommonSelector::m_eta_low
ulong m_eta_low
Definition
CommonSelector.h:47
GlobalSim::CommonSelector::m_et_low
ulong m_et_low
Definition
CommonSelector.h:44
GlobalSim::CommonSelector::m_phi_low
ulong m_phi_low
Definition
CommonSelector.h:51
GlobalSim::CommonSelector::m_eta_high
ulong m_eta_high
Definition
CommonSelector.h:48
GlobalSim::CommonSelector::select
virtual bool select(const CommonTOB &) const override
Definition
CommonSelector.cxx:33
GlobalSim::CommonSelector::m_phi_high
ulong m_phi_high
Definition
CommonSelector.h:52
GlobalSim::CommonSelector::to_string
virtual std::string to_string() const override
Definition
CommonSelector.cxx:52
GlobalSim::IOBitwise::CommonTOB
Definition
CommonTOB.h:22
GlobalSim::IOBitwise::CommonTOB::et_bits
virtual std::bitset< s_et_width > et_bits() const
Definition
CommonTOB.cxx:27
GlobalSim::IOBitwise::CommonTOB::eta_bits
virtual std::bitset< s_eta_width > eta_bits() const
Definition
CommonTOB.cxx:31
GlobalSim::IOBitwise::CommonTOB::phi_bits
virtual std::bitset< s_phi_width > phi_bits() const
Definition
CommonTOB.cxx:35
GlobalSim
AlgTool to read in LArStripNeighborhoods, and run the BDT Algorithm.
Definition
Trigger/TrigT1/Global/GlobalSimulation/src/Egamma1BDT/Egamma1BDT/BDT.h:11
std
STL namespace.
et
Extra patterns decribing particle interation process.
Generated on
for ATLAS Offline Software by
1.17.0