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
11 CommonTOB(eFexTOB),
12 m_RHad_bits(eFexTOB.RhadThresholds()),
13 m_WsTot_bits(eFexTOB.WstotThresholds()),
14 m_REta_bits(eFexTOB.RetaThresholds()),
15 m_Seed_bits(eFexTOB.seed()),
16 m_UpNotDown_bit(eFexTOB.UpNotDown()),
17 m_SeedIsMax_bit(eFexTOB.seedMax()){}
18
27
28
30 const std::bitset<eEmTOB::s_RHad_width>& RHad_bits,
31 const std::bitset<eEmTOB::s_WsTot_width>& WsTot_bits,
32 const std::bitset<eEmTOB::s_REta_width>& REta_bits,
33 const std::bitset<eEmTOB::s_Seed_width>& Seed_bits,
34 const std::bitset<eEmTOB::s_UpNotDown_width>& UpNotDown_bit,
35 const std::bitset<eEmTOB::s_SeedIsMax_width>& SeedIsMax_bit
36 ) :
37 CommonTOB(commonTOB),
38 m_RHad_bits(RHad_bits),
39 m_WsTot_bits(WsTot_bits),
40 m_REta_bits(REta_bits),
41 m_Seed_bits(Seed_bits),
42 m_UpNotDown_bit(UpNotDown_bit),
43 m_SeedIsMax_bit(SeedIsMax_bit){
44 }
45
46
47
48 const std::bitset<eEmTOB::s_RHad_width>& eEmTOB::RHad_bits() const {
49 return m_RHad_bits;
50 }
51
52 const std::bitset<eEmTOB::s_WsTot_width>& eEmTOB::WsTot_bits() const {
53 return m_WsTot_bits;
54 }
55
56 const std::bitset<eEmTOB::s_REta_width>& eEmTOB::REta_bits() const {
57 return m_REta_bits;
58 }
59
60 const std::bitset<eEmTOB::s_Seed_width>& eEmTOB::Seed_bits() const {
61 return m_Seed_bits;
62 }
63
64 const std::bitset<eEmTOB::s_UpNotDown_width>& eEmTOB::UpNotDown_bit() const {
65 return m_UpNotDown_bit;
66 }
67
68 const std::bitset<eEmTOB::s_SeedIsMax_width>& eEmTOB::SeedIsMax_bit() const {
69 return m_SeedIsMax_bit;
70 }
71
72 std::string eEmTOB::to_string() const {
73
74 std::stringstream ss;
75
76 ss << '\n'
78 << " RHad " << RHad_bits() << " (" << RHad_bits().to_ulong() << ")"
79 << " REta " << REta_bits() << " (" << REta_bits().to_ulong() << ")"
80 << " WsTot " << WsTot_bits() << " (" << WsTot_bits().to_ulong() << ")";
81 return ss.str();
82 }
83
84}
static Double_t ss
CommonTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise common bits.
Definition CommonTOB.cxx:10
virtual std::string to_string() const
Definition CommonTOB.cxx:40
virtual const std::bitset< s_REta_width > & REta_bits() const
eEmTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise bits.
std::bitset< s_SeedIsMax_width > m_SeedIsMax_bit
Property: Seed is a maximum bitset within the eEmTOB word.
virtual const std::bitset< s_UpNotDown_width > & UpNotDown_bit() const
virtual const std::bitset< s_SeedIsMax_width > & SeedIsMax_bit() const
std::bitset< s_WsTot_width > m_WsTot_bits
Property: Wstot threshold bitset within the eEmTOB word.
virtual const std::bitset< s_Seed_width > & Seed_bits() const
std::bitset< s_Seed_width > m_Seed_bits
Property: Seed eta position bitset within the eEmTOB word.
virtual const std::bitset< s_RHad_width > & RHad_bits() const
std::bitset< s_RHad_width > m_RHad_bits
Property: RHad threshold bitset within the eEmTOB word.
std::bitset< s_REta_width > m_REta_bits
Property: REta threshold bitset within the eEmTOB word.
virtual const std::bitset< s_WsTot_width > & WsTot_bits() const
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