ATLAS Offline Software
Loading...
Searching...
No Matches
Global/GlobalSimulation/src/IO/eEmTOB.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
11
12#ifndef GLOBALSIM_EEMTOB_H
13#define GLOBALSIM_EEMTOB_H
14
15#include "CommonTOB.h"
16
19
20#include <bitset>
21
22namespace GlobalSim::IOBitwise {
24 class eEmTOB : public CommonTOB {
25
26 public:
27
28
30 static constexpr std::size_t s_RHad_width{2};
32 static constexpr std::size_t s_WsTot_width{2};
34 static constexpr std::size_t s_REta_width{2};
36 static constexpr std::size_t s_Seed_width{2};
38 static constexpr std::size_t s_UpNotDown_width{1};
40 static constexpr std::size_t s_SeedIsMax_width{1};
41
42
51 eEmTOB(const xAOD::eFexEMRoI& eFexTOB);
60
61 eEmTOB(const eEmTOB&);
62
63
65 const std::bitset<s_RHad_width>&,
66 const std::bitset<s_REta_width>&,
67 const std::bitset<s_WsTot_width>&,
68 const std::bitset<s_Seed_width>&,
69 const std::bitset<s_UpNotDown_width>&,
70 const std::bitset<s_SeedIsMax_width>&
71 );
72
74 virtual ~eEmTOB(){};
75
77 virtual const std::bitset<s_RHad_width>& RHad_bits() const;
79 virtual const std::bitset<s_WsTot_width>& WsTot_bits() const;
81 virtual const std::bitset<s_REta_width>& REta_bits() const;
83 virtual const std::bitset<s_Seed_width>& Seed_bits() const;
85 virtual const std::bitset<s_UpNotDown_width>& UpNotDown_bit() const;
87 virtual const std::bitset<s_SeedIsMax_width>& SeedIsMax_bit() const;
88
89 virtual std::string to_string() const;
90
91 private:
92
94 std::bitset<s_RHad_width> m_RHad_bits;
96 std::bitset<s_WsTot_width> m_WsTot_bits;
98 std::bitset<s_REta_width> m_REta_bits;
100 std::bitset<s_Seed_width> m_Seed_bits;
102 std::bitset<s_UpNotDown_width> m_UpNotDown_bit;
104 std::bitset<s_SeedIsMax_width> m_SeedIsMax_bit;
105 };
106} //End of namespace
107
109
110DATAVECTOR_BASE(GlobalSim::IOBitwise::eEmTOB, GlobalSim::IOBitwise::CommonTOB);
111
112namespace GlobalSim {
113 namespace IOBitwise {
115 }
116}
117
119
120#endif //GLOBALSIM_EEMTOB_H
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
#define DATAVECTOR_BASE(T, BASE)
Declare base class info to DataVector.
Definition DataVector.h:649
Derived DataVector<T>.
Definition DataVector.h:795
CommonTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise common bits.
Definition CommonTOB.cxx:10
virtual const std::bitset< s_REta_width > & REta_bits() const
static constexpr std::size_t s_SeedIsMax_width
Count: Size of Seed supercell is a local maxima bit.
eEmTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise bits.
static constexpr std::size_t s_REta_width
Count: Size of R0 thresholds satisfied bitset.
std::bitset< s_SeedIsMax_width > m_SeedIsMax_bit
Property: Seed is a maximum bitset within the eEmTOB word.
eEmTOB(const GlobalSim::IOBitwise::CommonTOB &, const std::bitset< s_RHad_width > &, const std::bitset< s_REta_width > &, const std::bitset< s_WsTot_width > &, const std::bitset< s_Seed_width > &, const std::bitset< s_UpNotDown_width > &, const std::bitset< s_SeedIsMax_width > &)
virtual const std::bitset< s_UpNotDown_width > & UpNotDown_bit() const
static constexpr std::size_t s_RHad_width
Count: Size of hadronic thresholds satisfied bitset.
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.
static constexpr std::size_t s_WsTot_width
Count: Size of WsTot algorithm thresholds satisfied bitset.
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
static constexpr std::size_t s_UpNotDown_width
Count: Size of UpnotDown bit.
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
static constexpr std::size_t s_Seed_width
Count: Size of Seed eta position in the TOB bitset.
std::bitset< s_UpNotDown_width > m_UpNotDown_bit
Property: Up not down bitset within the eEmTOB word.
eEmTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise bits.
DataVector< GlobalSim::IOBitwise::eEmTOB > eEmTOBContainer
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...
eFexEMRoI_v1 eFexEMRoI
Define the latest version of the eFexEMRoI class.
Definition eFexEMRoI.h:17