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 #include <iostream>
7 
8 
9 namespace GlobalSim::IOBitwise {
10 
11  CommonTOB::CommonTOB(const xAOD::eFexEMRoI& eFexTOB): m_et_bits(eFexTOB.et()),
12  m_eta_bits(eFexTOB.iEtaTopo()),
13  m_phi_bits(eFexTOB.iPhiTopo()){}
14 
16  m_eta_bits(CommonTOB.eta_bits()),
17  m_phi_bits(CommonTOB.phi_bits()){}
18 
19  std::bitset<CommonTOB::s_et_width> CommonTOB::et_bits() const {
20  return m_et_bits;
21  }
22 
23  std::bitset<CommonTOB::s_eta_width> CommonTOB::eta_bits() const {
24  return m_eta_bits;
25  }
26 
27  std::bitset<CommonTOB::s_phi_width> CommonTOB::phi_bits() const {
28  return m_phi_bits;
29  }
30 }
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:19
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:27
GlobalSim::IOBitwise::ICommonTOB
Class to hold common (eta/eta/phi) TOB bits.
Definition: ICommonTOB.h:26
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:53
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:57
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:23
GlobalSim::IOBitwise
Definition: eEmMultAlgTool.h:17
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:55
GlobalSim::IOBitwise::CommonTOB::CommonTOB
CommonTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise common bits.
Definition: CommonTOB.cxx:11