ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSim::ICommonTOB Class Referenceabstract

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

#include <ICommonTOB.h>

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

Public Member Functions

virtual ~ICommonTOB ()
 Destructor.
virtual std::bitset< s_et_widthet_bits () const=0
 Returns the eT bits of this TOB.
virtual std::bitset< s_eta_widtheta_bits () const=0
 Returns the eta bits of this TOB.
virtual std::bitset< s_phi_widthphi_bits () const=0
 Returns the phi bits of this TOB.
virtual std::string to_string () const=0
 print out contents to string

Static Public Attributes

static constexpr std::size_t s_et_width {13}
 Size of the eT bitset.
static constexpr std::size_t s_eta_width {10}
 Size of the eta bitset.
static constexpr std::size_t s_phi_width {9}
 Size of the phi bitset.
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.

Implementaton of ICommonSelector.

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

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

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.

◆ eta_bits()

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

Returns the eta bits of this TOB.

◆ phi_bits()

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

Returns the phi bits of this TOB.

◆ to_string()

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

print out contents to string

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 }
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
float et(const xAOD::jFexSRJetRoI *j)
static Double_t ss
virtual std::bitset< s_et_width > et_bits() const =0
Returns the eT bits of this TOB.
virtual std::bitset< s_eta_width > eta_bits() const =0
Returns the eta bits of this TOB.
virtual std::bitset< s_phi_width > phi_bits() const =0
Returns the phi bits of this TOB.

Member Data Documentation

◆ max_et

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

Definition at line 43 of file ICommonTOB.h.

43{(1UL << s_et_width)-1};
static constexpr std::size_t s_et_width
Size of the eT bitset.
Definition ICommonTOB.h:35

◆ s_eFex_granularity

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

Definition at line 41 of file ICommonTOB.h.

41{100}; // MeV

◆ s_et_width

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

Size of the eT bitset.

Definition at line 35 of file ICommonTOB.h.

35{13};

◆ s_eta_width

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

Size of the eta bitset.

Definition at line 37 of file ICommonTOB.h.

37{10};

◆ s_phi_width

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

Size of the phi bitset.

Definition at line 39 of file ICommonTOB.h.

39{9};

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