ATLAS Offline Software
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
GlobalSim::IOBitwise::eEmTOB Class Referenceabstract

Class to hold eFexROI TOB bits. More...

#include <eEmTOB.h>

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

Public Member Functions

 eEmTOB (const xAOD::eFexEMRoI &eFexTOB)
 Constructor taking an eFexROITOB to inisialise bits. More...
 
 eEmTOB (const GlobalSim::IOBitwise::IeEmTOB &eEmTOB)
 Constructor taking an existing eEmTOB to inisialise bits. More...
 
virtual ~eEmTOB ()
 Destructor. More...
 
virtual const std::bitset< s_RHad_width > & RHad_bits () const override
 Returns the eFexRoI Rhad threshold bits. More...
 
virtual const std::bitset< s_WsTot_width > & WsTot_bits () const override
 Returns the eFexRoI Wstot threshold bits. More...
 
virtual const std::bitset< s_REta_width > & REta_bits () const override
 Returns the eFexRoI REta threshold bits. More...
 
virtual const std::bitset< s_Seed_width > & Seed_bits () const override
 Returns the eFexRoI seed eta position bits. More...
 
virtual const std::bitset< s_UpNotDown_width > & UpNotDown_bit () const override
 Returns the eFexRoI up not down bit. More...
 
virtual const std::bitset< s_SeedIsMax_width > & SeedIsMax_bit () const override
 Returns the eFexRoI seed is a local maxima bit. More...
 
virtual std::bitset< s_et_widthet_bits () const =0
 Returns the eT bits of this TOB. More...
 
virtual std::bitset< s_eta_widtheta_bits () const =0
 Returns the eta bits of this TOB. More...
 
virtual std::bitset< s_phi_widthphi_bits () const =0
 Returns the phi bits of this TOB. More...
 

Static Public Attributes

static const std::size_t s_RHad_width {2}
 Count: Size of hadronic thresholds satisfied bitset. More...
 
static const std::size_t s_WsTot_width {2}
 Count: Size of WsTot algorithm thresholds satisfied bitset. More...
 
static const std::size_t s_REta_width {2}
 Count: Size of R0 thresholds satisfied bitset. More...
 
static const std::size_t s_Seed_width {2}
 Count: Size of Seed eta position in the TOB bitset. More...
 
static const std::size_t s_UpNotDown_width {1}
 Count: Size of UpnotDown bit. More...
 
static const std::size_t s_SeedIsMax_width {1}
 Count: Size of Seed supercell is a local maxima bit. More...
 
static const std::size_t s_et_width {13}
 Size of the eT bitset. More...
 
static const std::size_t s_eta_width {10}
 Size of the eta bitset. More...
 
static const std::size_t s_phi_width {9}
 Size of the phi bitset. More...
 

Private Member Functions

virtual std::bitset< s_et_widthet_bits () const override
 Returns the eT bits of this TOB. More...
 
virtual std::bitset< s_eta_widtheta_bits () const override
 Returns the eta bits of this TOB. More...
 
virtual std::bitset< s_phi_widthphi_bits () const override
 Returns the phi bits of this TOB. More...
 

Private Attributes

std::bitset< s_RHad_widthm_RHad_bits
 Property: RHad threshold bitset within the eEmTOB word. More...
 
std::bitset< s_WsTot_widthm_WsTot_bits
 Property: Wstot threshold bitset within the eEmTOB word. More...
 
std::bitset< s_REta_widthm_REta_bits
 Property: REta threshold bitset within the eEmTOB word. More...
 
std::bitset< s_Seed_widthm_Seed_bits
 Property: Seed eta position bitset within the eEmTOB word. More...
 
std::bitset< s_UpNotDown_widthm_UpNotDown_bit
 Property: Up not down bitset within the eEmTOB word. More...
 
std::bitset< s_SeedIsMax_widthm_SeedIsMax_bit
 Property: Seed is a maximum bitset within the eEmTOB word. More...
 
std::bitset< ICommonTOB::s_et_widthm_et_bits
 Property: eT bitset within the common TOB word. More...
 
std::bitset< ICommonTOB::s_eta_widthm_eta_bits
 Property: eta bitset within the common TOB word. More...
 
std::bitset< ICommonTOB::s_phi_widthm_phi_bits
 Property: phi bitset within the common TOB word. More...
 

Detailed Description

Class to hold eFexROI TOB bits.

This class stores the threshold, seed and boolean bits which describe the output of an eFexROI, and defines functions to retrieve this information. It has access to the CommonTOB class information and can be used as a CommonTOB.

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

Constructor & Destructor Documentation

◆ eEmTOB() [1/2]

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

Constructor taking an eFexROITOB to inisialise 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 9 of file Global/GlobalSimulation/src/IO/eEmTOB.cxx.

9  : CommonTOB(eFexTOB),
10  m_RHad_bits(eFexTOB.RhadThresholds()),
11  m_WsTot_bits(eFexTOB.WstotThresholds()),
12  m_REta_bits(eFexTOB.RetaThresholds()),
13  m_Seed_bits(eFexTOB.seed()),
14  m_UpNotDown_bit(eFexTOB.UpNotDown()),
15  m_SeedIsMax_bit(eFexTOB.seedMax()){}

◆ eEmTOB() [2/2]

GlobalSim::IOBitwise::eEmTOB::eEmTOB ( const GlobalSim::IOBitwise::IeEmTOB eEmTOB)

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 17 of file Global/GlobalSimulation/src/IO/eEmTOB.cxx.

17  : CommonTOB(eEmTOB),
18  m_RHad_bits(eEmTOB.RHad_bits()),
19  m_WsTot_bits(eEmTOB.WsTot_bits()),
20  m_REta_bits(eEmTOB.REta_bits()),
21  m_Seed_bits(eEmTOB.Seed_bits()),
22  m_UpNotDown_bit(eEmTOB.UpNotDown_bit()),
23  m_SeedIsMax_bit(eEmTOB.SeedIsMax_bit()){}

◆ ~eEmTOB()

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

Destructor.


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

47 {};

Member Function Documentation

◆ et_bits() [1/2]

virtual std::bitset<s_et_width> GlobalSim::IOBitwise::ICommonTOB::et_bits ( ) const
pure virtualinherited

Returns the eT bits of this TOB.

Implemented in GlobalSim::IOBitwise::CommonTOB.

◆ et_bits() [2/2]

std::bitset< CommonTOB::s_et_width > GlobalSim::IOBitwise::CommonTOB::et_bits ( ) const
overridevirtualinherited

Returns the eT bits of this TOB.

Implements GlobalSim::IOBitwise::ICommonTOB.

Definition at line 19 of file CommonTOB.cxx.

19  {
20  return m_et_bits;
21  }

◆ eta_bits() [1/2]

virtual std::bitset<s_eta_width> GlobalSim::IOBitwise::ICommonTOB::eta_bits ( ) const
pure virtualinherited

Returns the eta bits of this TOB.

Implemented in GlobalSim::IOBitwise::CommonTOB.

◆ eta_bits() [2/2]

std::bitset< CommonTOB::s_eta_width > GlobalSim::IOBitwise::CommonTOB::eta_bits ( ) const
overridevirtualinherited

Returns the eta bits of this TOB.

Implements GlobalSim::IOBitwise::ICommonTOB.

Definition at line 23 of file CommonTOB.cxx.

23  {
24  return m_eta_bits;
25  }

◆ phi_bits() [1/2]

virtual std::bitset<s_phi_width> GlobalSim::IOBitwise::ICommonTOB::phi_bits ( ) const
pure virtualinherited

Returns the phi bits of this TOB.

Implemented in GlobalSim::IOBitwise::CommonTOB.

◆ phi_bits() [2/2]

std::bitset< CommonTOB::s_phi_width > GlobalSim::IOBitwise::CommonTOB::phi_bits ( ) const
overridevirtualinherited

Returns the phi bits of this TOB.

Implements GlobalSim::IOBitwise::ICommonTOB.

Definition at line 27 of file CommonTOB.cxx.

27  {
28  return m_phi_bits;
29  }

◆ REta_bits()

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

Returns the eFexRoI REta threshold bits.

Implements GlobalSim::IOBitwise::IeEmTOB.

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

33  {
34  return m_REta_bits;
35  }

◆ RHad_bits()

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

Returns the eFexRoI Rhad threshold bits.

Implements GlobalSim::IOBitwise::IeEmTOB.

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

25  {
26  return m_RHad_bits;
27  }

◆ Seed_bits()

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

Returns the eFexRoI seed eta position bits.

Implements GlobalSim::IOBitwise::IeEmTOB.

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

37  {
38  return m_Seed_bits;
39  }

◆ SeedIsMax_bit()

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

Returns the eFexRoI seed is a local maxima bit.

True if the seed supercell is a local maxima

Implements GlobalSim::IOBitwise::IeEmTOB.

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

45  {
46  return m_SeedIsMax_bit;
47  }

◆ UpNotDown_bit()

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

Returns the eFexRoI up not down bit.

True, if the seed includes the supercell above in phi.

Implements GlobalSim::IOBitwise::IeEmTOB.

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

41  {
42  return m_UpNotDown_bit;
43  }

◆ WsTot_bits()

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

Returns the eFexRoI Wstot threshold bits.

Implements GlobalSim::IOBitwise::IeEmTOB.

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

29  {
30  return m_WsTot_bits;
31  }

Member Data Documentation

◆ m_et_bits

std::bitset<ICommonTOB::s_et_width> GlobalSim::IOBitwise::CommonTOB::m_et_bits
privateinherited

Property: eT bitset within the common TOB word.

Definition at line 53 of file CommonTOB.h.

◆ m_eta_bits

std::bitset<ICommonTOB::s_eta_width> GlobalSim::IOBitwise::CommonTOB::m_eta_bits
privateinherited

Property: eta bitset within the common TOB word.

Definition at line 55 of file CommonTOB.h.

◆ m_phi_bits

std::bitset<ICommonTOB::s_phi_width> GlobalSim::IOBitwise::CommonTOB::m_phi_bits
privateinherited

Property: phi bitset within the common TOB word.

Definition at line 57 of file CommonTOB.h.

◆ 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 69 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 65 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 71 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 75 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 73 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 67 of file Global/GlobalSimulation/src/IO/eEmTOB.h.

◆ s_et_width

const std::size_t GlobalSim::IOBitwise::ICommonTOB::s_et_width {13}
staticinherited

Size of the eT bitset.

Definition at line 34 of file ICommonTOB.h.

◆ s_eta_width

const std::size_t GlobalSim::IOBitwise::ICommonTOB::s_eta_width {10}
staticinherited

Size of the eta bitset.

Definition at line 36 of file ICommonTOB.h.

◆ s_phi_width

const std::size_t GlobalSim::IOBitwise::ICommonTOB::s_phi_width {9}
staticinherited

Size of the phi bitset.

Definition at line 38 of file ICommonTOB.h.

◆ s_REta_width

const std::size_t GlobalSim::IOBitwise::IeEmTOB::s_REta_width {2}
staticinherited

Count: Size of R0 thresholds satisfied bitset.

Definition at line 40 of file IeEmTOB.h.

◆ s_RHad_width

const std::size_t GlobalSim::IOBitwise::IeEmTOB::s_RHad_width {2}
staticinherited

Count: Size of hadronic thresholds satisfied bitset.

Definition at line 36 of file IeEmTOB.h.

◆ s_Seed_width

const std::size_t GlobalSim::IOBitwise::IeEmTOB::s_Seed_width {2}
staticinherited

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

Definition at line 42 of file IeEmTOB.h.

◆ s_SeedIsMax_width

const std::size_t GlobalSim::IOBitwise::IeEmTOB::s_SeedIsMax_width {1}
staticinherited

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

Definition at line 46 of file IeEmTOB.h.

◆ s_UpNotDown_width

const std::size_t GlobalSim::IOBitwise::IeEmTOB::s_UpNotDown_width {1}
staticinherited

Count: Size of UpnotDown bit.

Definition at line 44 of file IeEmTOB.h.

◆ s_WsTot_width

const std::size_t GlobalSim::IOBitwise::IeEmTOB::s_WsTot_width {2}
staticinherited

Count: Size of WsTot algorithm thresholds satisfied bitset.

Definition at line 38 of file IeEmTOB.h.


The documentation for this class was generated from the following files:
GlobalSim::IOBitwise::eEmTOB::eEmTOB
eEmTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to inisialise bits.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.cxx:9
GlobalSim::IOBitwise::CommonTOB::m_et_bits
std::bitset< ICommonTOB::s_et_width > m_et_bits
Property: eT bitset within the common TOB word.
Definition: CommonTOB.h:53
GlobalSim::IOBitwise::eEmTOB::m_WsTot_bits
std::bitset< s_WsTot_width > m_WsTot_bits
Property: Wstot threshold bitset within the eEmTOB word.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.h:67
GlobalSim::IOBitwise::eEmTOB::m_Seed_bits
std::bitset< s_Seed_width > m_Seed_bits
Property: Seed eta position bitset within the eEmTOB word.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.h:71
GlobalSim::IOBitwise::eEmTOB::m_UpNotDown_bit
std::bitset< s_UpNotDown_width > m_UpNotDown_bit
Property: Up not down bitset within the eEmTOB word.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.h:73
GlobalSim::IOBitwise::CommonTOB::m_phi_bits
std::bitset< ICommonTOB::s_phi_width > m_phi_bits
Property: phi bitset within the common TOB word.
Definition: CommonTOB.h:57
xAOD::eFexEMRoI_v1::RetaThresholds
unsigned int RetaThresholds() const
Jet Discriminant 1 (R_eta) results.
Definition: eFexEMRoI_v1.cxx:182
GlobalSim::IOBitwise::eEmTOB::m_REta_bits
std::bitset< s_REta_width > m_REta_bits
Property: REta threshold bitset within the eEmTOB word.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.h:69
xAOD::eFexEMRoI_v1::WstotThresholds
unsigned int WstotThresholds() const
Jet Discriminant 3 (W_stot) results.
Definition: eFexEMRoI_v1.cxx:190
xAOD::eFexEMRoI_v1::seedMax
unsigned int seedMax() const
Seed = max flag. Is this really useful?
Definition: eFexEMRoI_v1.cxx:157
GlobalSim::IOBitwise::eEmTOB::m_SeedIsMax_bit
std::bitset< s_SeedIsMax_width > m_SeedIsMax_bit
Property: Seed is a maximum bitset within the eEmTOB word.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.h:75
GlobalSim::IOBitwise::eEmTOB::m_RHad_bits
std::bitset< s_RHad_width > m_RHad_bits
Property: RHad threshold bitset within the eEmTOB word.
Definition: Global/GlobalSimulation/src/IO/eEmTOB.h:65
xAOD::eFexEMRoI_v1::seed
unsigned int seed() const
getter for integer eta index (-25->+24)
Definition: eFexEMRoI_v1.cxx:153
xAOD::eFexEMRoI_v1::UpNotDown
unsigned int UpNotDown() const
Cluster up/down flag (1 = up, 0 = down)
Definition: eFexEMRoI_v1.cxx:149
GlobalSim::IOBitwise::CommonTOB::m_eta_bits
std::bitset< ICommonTOB::s_eta_width > m_eta_bits
Property: eta bitset within the common TOB word.
Definition: CommonTOB.h:55
xAOD::eFexEMRoI_v1::RhadThresholds
unsigned int RhadThresholds() const
Jet Discriminant 2 (R_had) results.
Definition: eFexEMRoI_v1.cxx:186
GlobalSim::IOBitwise::CommonTOB::CommonTOB
CommonTOB(const xAOD::eFexEMRoI &eFexTOB)
Constructor taking an eFexROITOB to initialise common bits.
Definition: CommonTOB.cxx:11