ATLAS Offline Software
CommonTOB.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
12 #ifndef GLOBALSIM_COMMONTOB_H
13 #define GLOBALSIM_COMMONTOB_H
14 
15 #include "ICommonTOB.h"
16 #include "xAODTrigger/eFexEMRoI.h"
17 #include "AthenaKernel/CLASS_DEF.h"
18 
19 #include <bitset>
20 
21 namespace GlobalSim::IOBitwise{
23  class CommonTOB : virtual public ICommonTOB {
24 
25  public:
32  CommonTOB(const xAOD::eFexEMRoI& eFexTOB);
40 
42  virtual ~CommonTOB(){};
43 
45  virtual std::bitset<s_et_width> et_bits() const override;
47  virtual std::bitset<s_eta_width> eta_bits() const override;
49  virtual std::bitset<s_phi_width> phi_bits() const override;
50 
51  private:
53  std::bitset<ICommonTOB::s_et_width> m_et_bits;
55  std::bitset<ICommonTOB::s_eta_width> m_eta_bits;
57  std::bitset<ICommonTOB::s_phi_width> m_phi_bits;
58  };
59 } //End of namespace
60 
62 
63 #endif //GLOBALSIM_COMMONTOB_H
ICommonTOB.h
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
GlobalSim::IOBitwise::CommonTOB::~CommonTOB
virtual ~CommonTOB()
Destructor.
Definition: CommonTOB.h:42
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
eFexEMRoI.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
CLASS_DEF.h
macros to associate a CLID to a type