ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
Global
GlobalSimulation
src
IO
CommonTOB.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 "
CommonTOB.h
"
6
#include <sstream>
7
8
namespace
GlobalSim::IOBitwise
{
9
10
CommonTOB::CommonTOB
(
const
xAOD::eFexEMRoI
& eFexTOB):
11
m_et_bits
(static_cast<ulong>(eFexTOB.
et
())/
CommonTOB
::
s_eFex_granularity
),
12
m_eta_bits
(eFexTOB.iEtaTopo()),
13
m_phi_bits
(eFexTOB.iPhiTopo()){}
14
15
CommonTOB::CommonTOB
(
const
GlobalSim::IOBitwise::CommonTOB
& tob):
16
m_et_bits
(tob.
et_bits
()),
17
m_eta_bits
(tob.
eta_bits
()),
18
m_phi_bits
(tob.
phi_bits
()){}
19
20
CommonTOB::CommonTOB
(
const
std::bitset<CommonTOB::s_et_width>& et_bits,
21
const
std::bitset<CommonTOB::s_eta_width>& eta_bits,
22
const
std::bitset<CommonTOB::s_phi_width>& phi_bits):
23
m_et_bits(et_bits),
24
m_eta_bits(eta_bits),
25
m_phi_bits(phi_bits){}
26
27
std::bitset<CommonTOB::s_et_width>
CommonTOB::et_bits
()
const
{
28
return
m_et_bits
;
29
}
30
31
std::bitset<CommonTOB::s_eta_width>
CommonTOB::eta_bits
()
const
{
32
return
m_eta_bits
;
33
}
34
35
std::bitset<CommonTOB::s_phi_width>
CommonTOB::phi_bits
()
const
{
36
return
m_phi_bits
;
37
}
38
39
std::string
CommonTOB::to_string
()
const
{
40
std::stringstream
ss
;
41
42
auto
et
=
et_bits
();
43
auto
eta
=
eta_bits
();
44
auto
phi
=
phi_bits
();
45
46
ss
<<
"Et: "
<<
et
<<
" ("
<<
et
.to_ulong() <<
") "
47
<<
"Eta: "
<<
eta
<<
" ("
<<
eta
.to_ulong() <<
") "
48
<<
"Phi: "
<<
phi
<<
" ("
<<
phi
.to_ulong() <<
") "
;
49
50
return
ss
.str();
51
}
52
}
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
CommonTOB.h
ss
static Double_t ss
Definition
LArPhysWaveHECTool.cxx:37
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::m_et_bits
std::bitset< s_et_width > m_et_bits
Property: eT bitset within the common TOB word.
Definition
CommonTOB.h:82
GlobalSim::IOBitwise::CommonTOB::m_eta_bits
std::bitset< s_eta_width > m_eta_bits
Property: eta bitset within the common TOB word.
Definition
CommonTOB.h:84
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::IOBitwise::CommonTOB::CommonTOB
CommonTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise common bits.
Definition
CommonTOB.cxx:10
GlobalSim::IOBitwise::CommonTOB::s_eFex_granularity
static constexpr std::size_t s_eFex_granularity
Definition
CommonTOB.h:34
GlobalSim::IOBitwise::CommonTOB::to_string
virtual std::string to_string() const
Definition
CommonTOB.cxx:39
GlobalSim::IOBitwise::CommonTOB::m_phi_bits
std::bitset< s_phi_width > m_phi_bits
Property: phi bitset within the common TOB word.
Definition
CommonTOB.h:86
GlobalSim::IOBitwise
Definition
CommonSortSelectAlgTool.h:19
xAOD::eFexEMRoI
eFexEMRoI_v1 eFexEMRoI
Define the latest version of the eFexEMRoI class.
Definition
eFexEMRoI.h:17
et
Extra patterns decribing particle interation process.
Generated on
for ATLAS Offline Software by
1.17.0