ATLAS Offline Software
Loading...
Searching...
No Matches
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
7
8namespace GlobalSim::IOBitwise {
9
10 CommonTOB::CommonTOB(const xAOD::eFexEMRoI& eFexTOB): m_et_bits(static_cast<ulong>(eFexTOB.et())/s_eFex_granularity),
11 m_eta_bits(eFexTOB.iEtaTopo()),
12 m_phi_bits(eFexTOB.iPhiTopo()){
13 }
14
18
19 CommonTOB::CommonTOB(const std::bitset<CommonTOB::s_et_width>& et_bits,
20 const std::bitset<CommonTOB::s_eta_width>& eta_bits,
21 const std::bitset<CommonTOB::s_phi_width>& phi_bits): m_et_bits(et_bits),
24
25 std::bitset<CommonTOB::s_et_width> CommonTOB::et_bits() const {
26 return m_et_bits;
27 }
28
29 std::bitset<CommonTOB::s_eta_width> CommonTOB::eta_bits() const {
30 return m_eta_bits;
31 }
32
33 std::bitset<CommonTOB::s_phi_width> CommonTOB::phi_bits() const {
34 return m_phi_bits;
35 }
36
37 std::string CommonTOB::to_string() const {
38 return ICommonTOB::to_string();
39 }
40}
std::bitset< ICommonTOB::s_eta_width > m_eta_bits
Property: eta bitset within the common TOB word.
Definition CommonTOB.h:68
std::bitset< ICommonTOB::s_phi_width > m_phi_bits
Property: phi bitset within the common TOB word.
Definition CommonTOB.h:70
virtual std::bitset< s_phi_width > phi_bits() const override
Returns the phi bits of this TOB.
Definition CommonTOB.cxx:33
virtual std::string to_string() const override
print out contents to string
Definition CommonTOB.cxx:37
CommonTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise common bits.
Definition CommonTOB.cxx:10
virtual std::bitset< s_eta_width > eta_bits() const override
Returns the eta bits of this TOB.
Definition CommonTOB.cxx:29
virtual std::bitset< s_et_width > et_bits() const override
Returns the eT bits of this TOB.
Definition CommonTOB.cxx:25
std::bitset< ICommonTOB::s_et_width > m_et_bits
Property: eT bitset within the common TOB word.
Definition CommonTOB.h:66
Class to hold common (eta/eta/phi) TOB bits.
Definition ICommonTOB.h:27
virtual std::string to_string() const =0
print out contents to string
static constexpr std::size_t s_eFex_granularity
Definition ICommonTOB.h:41
eFexEMRoI_v1 eFexEMRoI
Define the latest version of the eFexEMRoI class.
Definition eFexEMRoI.h:17
Extra patterns decribing particle interation process.