ATLAS Offline Software
Loading...
Searching...
No Matches
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#include <sstream>
7
8namespace GlobalSim::IOBitwise {
9
10 eEmTOB::eEmTOB(const xAOD::eFexEMRoI& eFexTOB) : CommonTOB(eFexTOB),
11 m_RHad_bits(eFexTOB.RhadThresholds()),
12 m_WsTot_bits(eFexTOB.WstotThresholds()),
13 m_REta_bits(eFexTOB.RetaThresholds()),
14 m_Seed_bits(eFexTOB.seed()),
15 m_UpNotDown_bit(eFexTOB.UpNotDown()),
16 m_SeedIsMax_bit(eFexTOB.seedMax()){}
17
25
26
28 const std::bitset<s_RHad_width>& RHad_bits,
29 const std::bitset<s_WsTot_width>& WsTot_bits,
30 const std::bitset<s_REta_width>& REta_bits,
31 const std::bitset<s_Seed_width>& Seed_bits,
32 const std::bitset<s_UpNotDown_width>& UpNotDown_bit,
33 const std::bitset<s_SeedIsMax_width>& SeedIsMax_bit
34 ) :
35 CommonTOB(commonTOB),
36 m_RHad_bits(RHad_bits),
37 m_WsTot_bits(WsTot_bits),
38 m_REta_bits(REta_bits),
39 m_Seed_bits(Seed_bits),
40 m_UpNotDown_bit(UpNotDown_bit),
41 m_SeedIsMax_bit(SeedIsMax_bit){
42 }
43
44
45
46 const std::bitset<eEmTOB::s_RHad_width>& eEmTOB::RHad_bits() const {
47 return m_RHad_bits;
48 }
49
50 const std::bitset<eEmTOB::s_WsTot_width>& eEmTOB::WsTot_bits() const {
51 return m_WsTot_bits;
52 }
53
54 const std::bitset<eEmTOB::s_REta_width>& eEmTOB::REta_bits() const {
55 return m_REta_bits;
56 }
57
58 const std::bitset<eEmTOB::s_Seed_width>& eEmTOB::Seed_bits() const {
59 return m_Seed_bits;
60 }
61
62 const std::bitset<eEmTOB::s_UpNotDown_width>& eEmTOB::UpNotDown_bit() const {
63 return m_UpNotDown_bit;
64 }
65
66 const std::bitset<eEmTOB::s_SeedIsMax_width>& eEmTOB::SeedIsMax_bit() const {
67 return m_SeedIsMax_bit;
68 }
69
70 std::string eEmTOB::to_string() const {
71 return IeEmTOB::to_string();
72 }
73
74}
Class to hold common (eta/eta/phi) TOB bits.
Definition CommonTOB.h:23
CommonTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise common bits.
Definition CommonTOB.cxx:10
Class to hold common (eta/eta/phi) TOB bits.
Definition ICommonTOB.h:27
Class to hold eFexROI TOB bits.
Definition IeEmTOB.h:29
virtual std::string to_string() const =0
print out contents to string
Definition IeEmTOB.cxx:10
eEmTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to inisialise bits.
std::bitset< s_SeedIsMax_width > m_SeedIsMax_bit
Property: Seed is a maximum bitset within the eEmTOB word.
virtual const std::bitset< s_Seed_width > & Seed_bits() const override
Returns the eFexRoI seed eta position bits.
virtual const std::bitset< s_WsTot_width > & WsTot_bits() const override
Returns the eFexRoI Wstot threshold bits.
virtual const std::bitset< s_RHad_width > & RHad_bits() const override
Returns the eFexRoI Rhad threshold bits.
std::bitset< s_WsTot_width > m_WsTot_bits
Property: Wstot threshold bitset within the eEmTOB word.
virtual const std::bitset< s_UpNotDown_width > & UpNotDown_bit() const override
Returns the eFexRoI up not down bit.
std::bitset< s_Seed_width > m_Seed_bits
Property: Seed eta position bitset within the eEmTOB word.
std::bitset< s_RHad_width > m_RHad_bits
Property: RHad threshold bitset within the eEmTOB word.
virtual std::string to_string() const override
print out contents to string
std::bitset< s_REta_width > m_REta_bits
Property: REta threshold bitset within the eEmTOB word.
virtual const std::bitset< s_SeedIsMax_width > & SeedIsMax_bit() const override
Returns the eFexRoI seed is a local maxima bit.
virtual const std::bitset< s_REta_width > & REta_bits() const override
Returns the eFexRoI REta threshold bits.
std::bitset< s_UpNotDown_width > m_UpNotDown_bit
Property: Up not down bitset within the eEmTOB word.
eFexEMRoI_v1 eFexEMRoI
Define the latest version of the eFexEMRoI class.
Definition eFexEMRoI.h:17