ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSim::eEmTOB Class Reference

More...

#include <eEmTOB.h>

Inheritance diagram for GlobalSim::eEmTOB:
Collaboration diagram for GlobalSim::eEmTOB:

Public Member Functions

 eEmTOB (const xAOD::eFexEMRoI &eFexTOB)
 Constructor taking an eFexROITOB to initialise bits.
 eEmTOB (const eEmTOB &)
 Constructor taking an existing eEmTOB to inisialise bits.
 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 ~eEmTOB ()
virtual const std::bitset< s_RHad_width > & RHad_bits () const
virtual const std::bitset< s_WsTot_width > & WsTot_bits () const
virtual const std::bitset< s_REta_width > & REta_bits () const
virtual const std::bitset< s_Seed_width > & Seed_bits () const
virtual const std::bitset< s_UpNotDown_width > & UpNotDown_bit () const
virtual const std::bitset< s_SeedIsMax_width > & SeedIsMax_bit () const
virtual std::string to_string () const

Static Public Attributes

static constexpr std::size_t s_RHad_width {2}
 Count: Size of hadronic thresholds satisfied bitset.
static constexpr std::size_t s_WsTot_width {2}
 Count: Size of WsTot algorithm thresholds satisfied bitset.
static constexpr std::size_t s_REta_width {2}
 Count: Size of R0 thresholds satisfied bitset.
static constexpr std::size_t s_Seed_width {2}
 Count: Size of Seed eta position in the TOB bitset.
static constexpr std::size_t s_UpNotDown_width {1}
 Count: Size of UpnotDown bit.
static constexpr std::size_t s_SeedIsMax_width {1}
 Count: Size of Seed supercell is a local maxima bit.

Private Attributes

std::bitset< s_RHad_widthm_RHad_bits
 Property: RHad threshold bitset within the eEmTOB word.
std::bitset< s_WsTot_widthm_WsTot_bits
 Property: Wstot threshold bitset within the eEmTOB word.
std::bitset< s_REta_widthm_REta_bits
 Property: REta threshold bitset within the eEmTOB word.
std::bitset< s_Seed_widthm_Seed_bits
 Property: Seed eta position bitset within the eEmTOB word.
std::bitset< s_UpNotDown_widthm_UpNotDown_bit
 Property: Up not down bitset within the eEmTOB word.
std::bitset< s_SeedIsMax_widthm_SeedIsMax_bit
 Property: Seed is a maximum bitset within the eEmTOB word.

Detailed Description

Implementaton of IeEmSelector.

Selects eEmTOBs following hypo block VHDL code using window cuts on et, eta and phi.

Definition at line 22 of file Global/GlobalSimulation/src/IO/eEmTOB.h.

Constructor & Destructor Documentation

◆ eEmTOB() [1/3]

GlobalSim::IOBitwise::eEmTOB::eEmTOB ( const xAOD::eFexEMRoI & eFexTOB)

Constructor taking an eFexROITOB to initialise bits.

Parameters
[in]eFexTOBThe input eFexRoI TOB defining the common/eFex bits.

To be used to create, and initilise a global eEmTOB from an existing eFexTOB eFexRoI threshold bits are set here, the CommonTOB constructor is used to initialise the common bits.

Definition at line 10 of file Global/GlobalSimulation/src/IO/eEmTOB.cxx.

10 :
11 CommonTOB(eFexTOB),
12 m_RHad_bits(eFexTOB.RhadThresholds()),
14 m_REta_bits(eFexTOB.RetaThresholds()),
15 m_Seed_bits(eFexTOB.seed()),
16 m_UpNotDown_bit(eFexTOB.UpNotDown()),
17 m_SeedIsMax_bit(eFexTOB.seedMax()){}
CommonTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise common bits.
Definition CommonTOB.cxx:10
std::bitset< s_SeedIsMax_width > m_SeedIsMax_bit
Property: Seed is a maximum bitset within the eEmTOB word.
std::bitset< s_WsTot_width > m_WsTot_bits
Property: Wstot threshold bitset within the eEmTOB word.
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.
std::bitset< s_REta_width > m_REta_bits
Property: REta threshold bitset within the eEmTOB word.
std::bitset< s_UpNotDown_width > m_UpNotDown_bit
Property: Up not down bitset within the eEmTOB word.
unsigned int RetaThresholds() const
Jet Discriminant 1 (R_eta) results.
unsigned int WstotThresholds() const
Jet Discriminant 3 (W_stot) results.
unsigned int RhadThresholds() const
Jet Discriminant 2 (R_had) results.
unsigned int seedMax() const
Seed = max flag. Is this really useful?
unsigned int UpNotDown() const
Cluster up/down flag (1 = up, 0 = down)
unsigned int seed() const
getter for integer eta index (-25->+24)

◆ eEmTOB() [2/3]

GlobalSim::IOBitwise::eEmTOB::eEmTOB ( const eEmTOB & tob)

Constructor taking an existing eEmTOB to inisialise bits.

Parameters
[in]eEmTOBThe input eEmTOB.

To be used to create, and initilise a global eEmTOB from an existing eEmTOB eFexRoI threshold bits are set here, the CommonTOB constructor is used to initialise the common bits.

Definition at line 19 of file Global/GlobalSimulation/src/IO/eEmTOB.cxx.

19 :
20 CommonTOB(tob),
21 m_RHad_bits(tob.RHad_bits()),
22 m_WsTot_bits(tob.WsTot_bits()),
23 m_REta_bits(tob.REta_bits()),
24 m_Seed_bits(tob.Seed_bits()),
25 m_UpNotDown_bit(tob.UpNotDown_bit()),
26 m_SeedIsMax_bit(tob.SeedIsMax_bit()){}

◆ eEmTOB() [3/3]

GlobalSim::IOBitwise::eEmTOB::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 > &  )

◆ ~eEmTOB()

virtual GlobalSim::IOBitwise::eEmTOB::~eEmTOB ( )
inlinevirtual


Definition at line 72 of file Global/GlobalSimulation/src/IO/eEmTOB.h.

72{};

Member Function Documentation

◆ REta_bits()

const std::bitset< eEmTOB::s_REta_width > & GlobalSim::IOBitwise::eEmTOB::REta_bits ( ) const
virtual

Definition at line 56 of file Global/GlobalSimulation/src/IO/eEmTOB.cxx.

56 {
57 return m_REta_bits;
58 }
std::bitset< s_REta_width > m_REta_bits
Property: REta threshold bitset within the eEmTOB word.

◆ RHad_bits()

const std::bitset< eEmTOB::s_RHad_width > & GlobalSim::IOBitwise::eEmTOB::RHad_bits ( ) const
virtual

Definition at line 48 of file Global/GlobalSimulation/src/IO/eEmTOB.cxx.

48 {
49 return m_RHad_bits;
50 }
std::bitset< s_RHad_width > m_RHad_bits
Property: RHad threshold bitset within the eEmTOB word.

◆ Seed_bits()

const std::bitset< eEmTOB::s_Seed_width > & GlobalSim::IOBitwise::eEmTOB::Seed_bits ( ) const
virtual

Definition at line 60 of file Global/GlobalSimulation/src/IO/eEmTOB.cxx.

60 {
61 return m_Seed_bits;
62 }
std::bitset< s_Seed_width > m_Seed_bits
Property: Seed eta position bitset within the eEmTOB word.

◆ SeedIsMax_bit()

const std::bitset< eEmTOB::s_SeedIsMax_width > & GlobalSim::IOBitwise::eEmTOB::SeedIsMax_bit ( ) const
virtual

Definition at line 68 of file Global/GlobalSimulation/src/IO/eEmTOB.cxx.

68 {
69 return m_SeedIsMax_bit;
70 }
std::bitset< s_SeedIsMax_width > m_SeedIsMax_bit
Property: Seed is a maximum bitset within the eEmTOB word.

◆ to_string()

std::string GlobalSim::IOBitwise::eEmTOB::to_string ( ) const
virtual

Reimplemented from GlobalSim::IOBitwise::CommonTOB.

Definition at line 72 of file Global/GlobalSimulation/src/IO/eEmTOB.cxx.

72 {
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 }
static Double_t ss
virtual std::string to_string() const
Definition CommonTOB.cxx:40
virtual const std::bitset< s_REta_width > & REta_bits() const
virtual const std::bitset< s_RHad_width > & RHad_bits() const
virtual const std::bitset< s_WsTot_width > & WsTot_bits() const

◆ UpNotDown_bit()

const std::bitset< eEmTOB::s_UpNotDown_width > & GlobalSim::IOBitwise::eEmTOB::UpNotDown_bit ( ) const
virtual

Definition at line 64 of file Global/GlobalSimulation/src/IO/eEmTOB.cxx.

64 {
65 return m_UpNotDown_bit;
66 }
std::bitset< s_UpNotDown_width > m_UpNotDown_bit
Property: Up not down bitset within the eEmTOB word.

◆ WsTot_bits()

const std::bitset< eEmTOB::s_WsTot_width > & GlobalSim::IOBitwise::eEmTOB::WsTot_bits ( ) const
virtual

Definition at line 52 of file Global/GlobalSimulation/src/IO/eEmTOB.cxx.

52 {
53 return m_WsTot_bits;
54 }
std::bitset< s_WsTot_width > m_WsTot_bits
Property: Wstot threshold bitset within the eEmTOB word.

Member Data Documentation

◆ m_REta_bits

std::bitset<s_REta_width> GlobalSim::IOBitwise::eEmTOB::m_REta_bits
private

Property: REta threshold bitset within the eEmTOB word.

Definition at line 96 of file Global/GlobalSimulation/src/IO/eEmTOB.h.

◆ m_RHad_bits

std::bitset<s_RHad_width> GlobalSim::IOBitwise::eEmTOB::m_RHad_bits
private

Property: RHad threshold bitset within the eEmTOB word.

Definition at line 92 of file Global/GlobalSimulation/src/IO/eEmTOB.h.

◆ m_Seed_bits

std::bitset<s_Seed_width> GlobalSim::IOBitwise::eEmTOB::m_Seed_bits
private

Property: Seed eta position bitset within the eEmTOB word.

Definition at line 98 of file Global/GlobalSimulation/src/IO/eEmTOB.h.

◆ m_SeedIsMax_bit

std::bitset<s_SeedIsMax_width> GlobalSim::IOBitwise::eEmTOB::m_SeedIsMax_bit
private

Property: Seed is a maximum bitset within the eEmTOB word.

Definition at line 102 of file Global/GlobalSimulation/src/IO/eEmTOB.h.

◆ m_UpNotDown_bit

std::bitset<s_UpNotDown_width> GlobalSim::IOBitwise::eEmTOB::m_UpNotDown_bit
private

Property: Up not down bitset within the eEmTOB word.

Definition at line 100 of file Global/GlobalSimulation/src/IO/eEmTOB.h.

◆ m_WsTot_bits

std::bitset<s_WsTot_width> GlobalSim::IOBitwise::eEmTOB::m_WsTot_bits
private

Property: Wstot threshold bitset within the eEmTOB word.

Definition at line 94 of file Global/GlobalSimulation/src/IO/eEmTOB.h.

◆ s_REta_width

std::size_t GlobalSim::IOBitwise::eEmTOB::s_REta_width {2}
staticconstexpr

Count: Size of R0 thresholds satisfied bitset.

Definition at line 32 of file Global/GlobalSimulation/src/IO/eEmTOB.h.

32{2};

◆ s_RHad_width

std::size_t GlobalSim::IOBitwise::eEmTOB::s_RHad_width {2}
staticconstexpr

Count: Size of hadronic thresholds satisfied bitset.

Definition at line 28 of file Global/GlobalSimulation/src/IO/eEmTOB.h.

28{2};

◆ s_Seed_width

std::size_t GlobalSim::IOBitwise::eEmTOB::s_Seed_width {2}
staticconstexpr

Count: Size of Seed eta position in the TOB bitset.

Definition at line 34 of file Global/GlobalSimulation/src/IO/eEmTOB.h.

34{2};

◆ s_SeedIsMax_width

std::size_t GlobalSim::IOBitwise::eEmTOB::s_SeedIsMax_width {1}
staticconstexpr

Count: Size of Seed supercell is a local maxima bit.

Definition at line 38 of file Global/GlobalSimulation/src/IO/eEmTOB.h.

38{1};

◆ s_UpNotDown_width

std::size_t GlobalSim::IOBitwise::eEmTOB::s_UpNotDown_width {1}
staticconstexpr

Count: Size of UpnotDown bit.

Definition at line 36 of file Global/GlobalSimulation/src/IO/eEmTOB.h.

36{1};

◆ s_WsTot_width

std::size_t GlobalSim::IOBitwise::eEmTOB::s_WsTot_width {2}
staticconstexpr

Count: Size of WsTot algorithm thresholds satisfied bitset.

Definition at line 30 of file Global/GlobalSimulation/src/IO/eEmTOB.h.

30{2};

The documentation for this class was generated from the following files: