12#ifndef GLOBALSIM_COMMONTOB_H
13#define GLOBALSIM_COMMONTOB_H
39 "Overflow or UB detected!");
66 const std::bitset<s_eta_width>&
eta_bits,
67 const std::bitset<s_phi_width>&
phi_bits);
73 virtual std::bitset<s_et_width>
et_bits()
const;
75 virtual std::bitset<s_eta_width>
eta_bits()
const;
77 virtual std::bitset<s_phi_width>
phi_bits()
const;
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
CommonTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise common bits.
static constexpr std::size_t s_eta_width
Size of the eta bitset.
virtual std::bitset< s_et_width > et_bits() const
std::bitset< s_et_width > m_et_bits
Property: eT bitset within the common TOB word.
static constexpr ulong max_et
CommonTOB(const std::bitset< s_et_width > &et_bits, const std::bitset< s_eta_width > &eta_bits, const std::bitset< s_phi_width > &phi_bits)
Constructor taking raw bitsets to initialise common bits.
static constexpr std::size_t s_et_width
Size of the eT bitset.
std::bitset< s_eta_width > m_eta_bits
Property: eta bitset within the common TOB word.
virtual std::bitset< s_eta_width > eta_bits() const
virtual std::bitset< s_phi_width > phi_bits() const
CommonTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise common bits.
static constexpr std::size_t s_eFex_granularity
virtual std::string to_string() const
static constexpr std::size_t s_phi_width
Size of the phi bitset.
std::bitset< s_phi_width > m_phi_bits
Property: phi bitset within the common TOB word.
eFexEMRoI_v1 eFexEMRoI
Define the latest version of the eFexEMRoI class.