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-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
11
12#ifndef GLOBALSIM_EEMTOB_H
13#define GLOBALSIM_EEMTOB_H
14
15#include "IeEmTOB.h"
16#include "CommonTOB.h"
18
19#include <bitset>
20
21namespace GlobalSim::IOBitwise {
23 class eEmTOB : virtual public IeEmTOB, private CommonTOB {
24
25 public:
34 eEmTOB(const xAOD::eFexEMRoI& eFexTOB);
43
45
47 const std::bitset<s_RHad_width>&,
48 const std::bitset<s_REta_width>&,
49 const std::bitset<s_WsTot_width>&,
50 const std::bitset<s_Seed_width>&,
51 const std::bitset<s_UpNotDown_width>&,
52 const std::bitset<s_SeedIsMax_width>&
53 );
54
56 virtual ~eEmTOB(){};
57
59 virtual const std::bitset<s_RHad_width>& RHad_bits() const override;
61 virtual const std::bitset<s_WsTot_width>& WsTot_bits() const override;
63 virtual const std::bitset<s_REta_width>& REta_bits() const override;
65 virtual const std::bitset<s_Seed_width>& Seed_bits() const override;
67 virtual const std::bitset<s_UpNotDown_width>& UpNotDown_bit() const override;
69 virtual const std::bitset<s_SeedIsMax_width>& SeedIsMax_bit() const override;
70
71 virtual std::string to_string() const override;
72
73 private:
74
76 std::bitset<s_RHad_width> m_RHad_bits;
78 std::bitset<s_WsTot_width> m_WsTot_bits;
80 std::bitset<s_REta_width> m_REta_bits;
82 std::bitset<s_Seed_width> m_Seed_bits;
84 std::bitset<s_UpNotDown_width> m_UpNotDown_bit;
86 std::bitset<s_SeedIsMax_width> m_SeedIsMax_bit;
87 };
88} //End of namespace
89
91
92#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
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
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.
eEmTOB(const GlobalSim::IOBitwise::ICommonTOB &, 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_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