ATLAS Offline Software
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 
8 namespace 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 
16  m_eta_bits(CommonTOB.eta_bits()),
17  m_phi_bits(CommonTOB.phi_bits()){}
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),
22  m_eta_bits(eta_bits),
23  m_phi_bits(phi_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 }
GlobalSim::IOBitwise::ICommonTOB::to_string
virtual std::string to_string() const =0
print out contents to string
Definition: ICommonTOB.cxx:11
et
Extra patterns decribing particle interation process.
GlobalSim::IOBitwise::CommonTOB::et_bits
virtual std::bitset< s_et_width > et_bits() const override
Returns the eT bits of this TOB.
Definition: CommonTOB.cxx:25
GlobalSim::IOBitwise::CommonTOB::phi_bits
virtual std::bitset< s_phi_width > phi_bits() const override
Returns the phi bits of this TOB.
Definition: CommonTOB.cxx:33
GlobalSim::IOBitwise::ICommonTOB
Class to hold common (eta/eta/phi) TOB bits.
Definition: ICommonTOB.h:27
GlobalSim::IOBitwise::CommonTOB::m_et_bits
std::bitset< ICommonTOB::s_et_width > m_et_bits
Property: eT bitset within the common TOB word.
Definition: CommonTOB.h:66
xAOD::eFexEMRoI_v1
Class describing a LVL1 eFEX EM region of interest.
Definition: eFexEMRoI_v1.h:33
GlobalSim::IOBitwise::CommonTOB
Class to hold common (eta/eta/phi) TOB bits.
Definition: CommonTOB.h:23
GlobalSim::IOBitwise::CommonTOB::m_phi_bits
std::bitset< ICommonTOB::s_phi_width > m_phi_bits
Property: phi bitset within the common TOB word.
Definition: CommonTOB.h:70
GlobalSim::IOBitwise::CommonTOB::eta_bits
virtual std::bitset< s_eta_width > eta_bits() const override
Returns the eta bits of this TOB.
Definition: CommonTOB.cxx:29
GlobalSim::IOBitwise
Definition: eEmMultAlgTool.h:18
CommonTOB.h
GlobalSim::IOBitwise::CommonTOB::m_eta_bits
std::bitset< ICommonTOB::s_eta_width > m_eta_bits
Property: eta bitset within the common TOB word.
Definition: CommonTOB.h:68
GlobalSim::IOBitwise::CommonTOB::CommonTOB
CommonTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise common bits.
Definition: CommonTOB.cxx:10
GlobalSim::IOBitwise::CommonTOB::to_string
virtual std::string to_string() const override
print out contents to string
Definition: CommonTOB.cxx:37