ATLAS Offline Software
Loading...
Searching...
No Matches
gFexRhoTOB.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_GFEXRHOTOB_H
13#define GLOBALSIM_GFEXRHOTOB_H
14
17
19
20#include <bitset>
21
22namespace GlobalSim::IOBitwise{
23
24 class gFexRhoTOB {
25
27 static constexpr std::size_t s_rho_width{16};
28
30 static constexpr std::size_t s_rho_scale{10};
31
32 public:
33
43
51
58 gFexRhoTOB(const uint& rho_bits, const uint& rho_scale);
59
65 gFexRhoTOB(const std::bitset<s_rho_width>&);
66
68 virtual ~gFexRhoTOB(){};
69
71 virtual std::bitset<s_rho_width> rho_bits() const;
72
73 virtual std::bitset<s_rho_scale> rho_scale() const;
74
75 virtual std::string to_string() const;
76 private:
77
79 std::bitset<s_rho_width> m_rho_bits;
80
82 // The scale of the eT bits, in MeV
83 // I don't believe this will be stored in the final TOB.
84 std::bitset<s_rho_scale> m_rho_scale;
85};
86
87} //End of namespace
88
90
91namespace GlobalSim {
92 namespace IOBitwise {
94 }
95}
96
98
99#endif //GLOBALSIM_GFEXRHOTOB_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.
unsigned int uint
Derived DataVector<T>.
Definition DataVector.h:795
virtual std::bitset< s_rho_scale > rho_scale() const
virtual std::string to_string() const
static constexpr std::size_t s_rho_scale
Count: Size of Rho scale bitset.
Definition gFexRhoTOB.h:30
static constexpr std::size_t s_rho_width
Count: Size of Rho bitset.
Definition gFexRhoTOB.h:27
std::bitset< s_rho_scale > m_rho_scale
Property: Rho bitset eT scale within the gFexRhoTOB word.
Definition gFexRhoTOB.h:84
std::bitset< s_rho_width > m_rho_bits
Property: Rho bitset within the gFexRhoTOB word.
Definition gFexRhoTOB.h:79
virtual std::bitset< s_rho_width > rho_bits() const
gFexRhoTOB(const xAOD::gFexJetRoI &gFexRhoTOB)
Constructor taking an eFexROITOB to initialise bits.
gFexRhoTOB(const std::bitset< s_rho_width > &)
Constructor taking raw bitsets to initialise common bits.
DataVector< GlobalSim::IOBitwise::gFexRhoTOB > gFexRhoTOBContainer
Definition gFexRhoTOB.h:93
AlgTool to read in LArStripNeighborhoods, and run the eRatio Algorithm.
gFexJetRoI_v1 gFexJetRoI
Define the latest version of the gFexJetRoI class.
Definition gFexJetRoI.h:16