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

Class to hold common (eta/eta/phi) TOB bits. More...

#include <ICommonTOB.h>

Inheritance diagram for GlobalSim::IOBitwise::ICommonTOB:
Collaboration diagram for GlobalSim::IOBitwise::ICommonTOB:

Public Member Functions

virtual ~ICommonTOB ()
 Destructor. 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...
 
virtual std::string to_string () const =0
 print out contents to string More...
 

Static Public Attributes

static constexpr std::size_t s_et_width {13}
 Size of the eT bitset. More...
 
static constexpr std::size_t s_eta_width {10}
 Size of the eta bitset. More...
 
static constexpr std::size_t s_phi_width {9}
 Size of the phi bitset. More...
 
static constexpr std::size_t s_eFex_granularity {100}
 
static constexpr ulong max_et {(1UL << s_et_width)-1}
 

Detailed Description

Class to hold common (eta/eta/phi) TOB bits.

This base class defines the bitsets to hold the common et, eta, phi bits in GlobalTOBs, and their retrieval functions.

Definition at line 27 of file ICommonTOB.h.

Constructor & Destructor Documentation

◆ ~ICommonTOB()

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

Destructor.

Definition at line 32 of file ICommonTOB.h.

32 {}

Member Function Documentation

◆ et_bits()

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

Returns the eT bits of this TOB.

Implemented in GlobalSim::IOBitwise::CommonTOB.

◆ eta_bits()

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

Returns the eta bits of this TOB.

Implemented in GlobalSim::IOBitwise::CommonTOB.

◆ phi_bits()

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

Returns the phi bits of this TOB.

Implemented in GlobalSim::IOBitwise::CommonTOB.

◆ to_string()

std::string GlobalSim::IOBitwise::ICommonTOB::to_string ( ) const
pure virtual

print out contents to string

Implemented in GlobalSim::IOBitwise::eEmTOB, GlobalSim::IOBitwise::CommonTOB, GlobalSim::IOBitwise::eEmNbhoodTOB, GlobalSim::IOBitwise::eEmEg1eRatioTOB, GlobalSim::IOBitwise::eEmEg1BDTTOB, GlobalSim::IOBitwise::IeEmTOB, GlobalSim::IOBitwise::IeEmEg1BDTTOB, GlobalSim::IOBitwise::IeEmEg1eRatioTOB, and GlobalSim::IOBitwise::IeEmNbhoodTOB.

Definition at line 11 of file ICommonTOB.cxx.

11  {
12  std::stringstream ss;
13 
14  auto et = et_bits();
15  auto eta = eta_bits();
16  auto phi = phi_bits();
17 
18  ss << "Et: " << et << " (" << et.to_ulong() << ") "
19  << "Eta: " << eta << " (" << eta.to_ulong() << ") "
20  << "Phi: " << phi << " (" << phi.to_ulong() << ") ";
21 
22  return ss.str();
23 
24  }

Member Data Documentation

◆ max_et

constexpr ulong GlobalSim::IOBitwise::ICommonTOB::max_et {(1UL << s_et_width)-1}
staticconstexpr

Definition at line 43 of file ICommonTOB.h.

◆ s_eFex_granularity

constexpr std::size_t GlobalSim::IOBitwise::ICommonTOB::s_eFex_granularity {100}
staticconstexpr

Definition at line 41 of file ICommonTOB.h.

◆ s_et_width

constexpr std::size_t GlobalSim::IOBitwise::ICommonTOB::s_et_width {13}
staticconstexpr

Size of the eT bitset.

Definition at line 35 of file ICommonTOB.h.

◆ s_eta_width

constexpr std::size_t GlobalSim::IOBitwise::ICommonTOB::s_eta_width {10}
staticconstexpr

Size of the eta bitset.

Definition at line 37 of file ICommonTOB.h.

◆ s_phi_width

constexpr std::size_t GlobalSim::IOBitwise::ICommonTOB::s_phi_width {9}
staticconstexpr

Size of the phi bitset.

Definition at line 39 of file ICommonTOB.h.


The documentation for this class was generated from the following files:
et
Extra patterns decribing particle interation process.
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
GlobalSim::IOBitwise::ICommonTOB::eta_bits
virtual std::bitset< s_eta_width > eta_bits() const =0
Returns the eta bits of this TOB.
GlobalSim::IOBitwise::ICommonTOB::et_bits
virtual std::bitset< s_et_width > et_bits() const =0
Returns the eT bits of this TOB.
GlobalSim::IOBitwise::ICommonTOB::phi_bits
virtual std::bitset< s_phi_width > phi_bits() const =0
Returns the phi bits of this TOB.