ATLAS Offline Software
Global/GlobalSimulation/src/IO/eEmTOB.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 "eEmTOB.h"
6 
7 namespace GlobalSim::IOBitwise {
8 
9  eEmTOB::eEmTOB(const xAOD::eFexEMRoI& eFexTOB) : CommonTOB(eFexTOB),
10  m_RHad_bits(eFexTOB.RhadThresholds()),
11  m_WsTot_bits(eFexTOB.WstotThresholds()),
12  m_REta_bits(eFexTOB.RetaThresholds()),
13  m_Seed_bits(eFexTOB.seed()),
14  m_UpNotDown_bit(eFexTOB.UpNotDown()),
15  m_SeedIsMax_bit(eFexTOB.seedMax()){}
16 
18  m_RHad_bits(eEmTOB.RHad_bits()),
19  m_WsTot_bits(eEmTOB.WsTot_bits()),
20  m_REta_bits(eEmTOB.REta_bits()),
21  m_Seed_bits(eEmTOB.Seed_bits()),
22  m_UpNotDown_bit(eEmTOB.UpNotDown_bit()),
23  m_SeedIsMax_bit(eEmTOB.SeedIsMax_bit()){}
24 
25  const std::bitset<eEmTOB::s_RHad_width>& eEmTOB::RHad_bits() const {
26  return m_RHad_bits;
27  }
28 
29  const std::bitset<eEmTOB::s_WsTot_width>& eEmTOB::WsTot_bits() const {
30  return m_WsTot_bits;
31  }
32 
33  const std::bitset<eEmTOB::s_REta_width>& eEmTOB::REta_bits() const {
34  return m_REta_bits;
35  }
36 
37  const std::bitset<eEmTOB::s_Seed_width>& eEmTOB::Seed_bits() const {
38  return m_Seed_bits;
39  }
40 
41  const std::bitset<eEmTOB::s_UpNotDown_width>& eEmTOB::UpNotDown_bit() const {
42  return m_UpNotDown_bit;
43  }
44 
45  const std::bitset<eEmTOB::s_SeedIsMax_width>& eEmTOB::SeedIsMax_bit() const {
46  return m_SeedIsMax_bit;
47  }
48 }
GlobalSim::IOBitwise::eEmTOB::Seed_bits
virtual const std::bitset< s_Seed_width > & Seed_bits() const override
Returns the eFexRoI seed eta position bits.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.cxx:37
GlobalSim::IOBitwise::eEmTOB::eEmTOB
eEmTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to inisialise bits.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.cxx:9
GlobalSim::IOBitwise::eEmTOB
Class to hold eFexROI TOB bits.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.h:23
GlobalSim::IOBitwise::eEmTOB::RHad_bits
virtual const std::bitset< s_RHad_width > & RHad_bits() const override
Returns the eFexRoI Rhad threshold bits.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.cxx:25
GlobalSim::IOBitwise::eEmTOB::SeedIsMax_bit
virtual const std::bitset< s_SeedIsMax_width > & SeedIsMax_bit() const override
Returns the eFexRoI seed is a local maxima bit.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.cxx:45
GlobalSim::IOBitwise::eEmTOB::m_WsTot_bits
std::bitset< s_WsTot_width > m_WsTot_bits
Property: Wstot threshold bitset within the eEmTOB word.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.h:67
xAOD::eFexEMRoI_v1
Class describing a LVL1 eFEX EM region of interest.
Definition: eFexEMRoI_v1.h:33
GlobalSim::IOBitwise::eEmTOB::m_Seed_bits
std::bitset< s_Seed_width > m_Seed_bits
Property: Seed eta position bitset within the eEmTOB word.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.h:71
GlobalSim::IOBitwise::eEmTOB::m_UpNotDown_bit
std::bitset< s_UpNotDown_width > m_UpNotDown_bit
Property: Up not down bitset within the eEmTOB word.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.h:73
eEmTOB.h
GlobalSim::IOBitwise::CommonTOB
Class to hold common (eta/eta/phi) TOB bits.
Definition: CommonTOB.h:23
GlobalSim::IOBitwise::eEmTOB::m_REta_bits
std::bitset< s_REta_width > m_REta_bits
Property: REta threshold bitset within the eEmTOB word.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.h:69
GlobalSim::IOBitwise::eEmTOB::UpNotDown_bit
virtual const std::bitset< s_UpNotDown_width > & UpNotDown_bit() const override
Returns the eFexRoI up not down bit.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.cxx:41
GlobalSim::IOBitwise
Definition: eEmMultAlgTool.h:17
GlobalSim::IOBitwise::eEmTOB::m_SeedIsMax_bit
std::bitset< s_SeedIsMax_width > m_SeedIsMax_bit
Property: Seed is a maximum bitset within the eEmTOB word.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.h:75
GlobalSim::IOBitwise::eEmTOB::m_RHad_bits
std::bitset< s_RHad_width > m_RHad_bits
Property: RHad threshold bitset within the eEmTOB word.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.h:65
GlobalSim::IOBitwise::IeEmTOB
Class to hold eFexROI TOB bits.
Definition: IeEmTOB.h:27
GlobalSim::IOBitwise::eEmTOB::REta_bits
virtual const std::bitset< s_REta_width > & REta_bits() const override
Returns the eFexRoI REta threshold bits.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.cxx:33
GlobalSim::IOBitwise::eEmTOB::WsTot_bits
virtual const std::bitset< s_WsTot_width > & WsTot_bits() const override
Returns the eFexRoI Wstot threshold bits.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.cxx:29