ATLAS Offline Software
Loading...
Searching...
No Matches
TCS::eTauTOB Class Reference

#include <eTauTOB.h>

Inheritance diagram for TCS::eTauTOB:
Collaboration diagram for TCS::eTauTOB:

Public Member Functions

 eTauTOB (uint32_t roiWord=0, const std::string &tobName="eTauTOB")
 eTauTOB (unsigned int et, int eta, unsigned int phi, inputTOBType_t tobType=NONE, uint32_t roiWord=0, const std::string &tobName="eTauTOB")
 eTauTOB (const eTauTOB &eem)
virtual ~eTauTOB ()
unsigned int Et () const
int eta () const
unsigned int phi () const
double EtDouble () const
double etaDouble () const
double phiDouble () const
unsigned int rCore () const
unsigned int rHad () const
void setEt (unsigned int et)
void setEta (int eta)
void setPhi (unsigned int phi)
void setEtDouble (double et)
void setEtaDouble (double eta)
void setPhiDouble (double phi)
void setRCore (unsigned int th)
void setRHad (unsigned int th)
virtual void print (std::ostream &o) const
void setTobType (inputTOBType_t tobType)
inputTOBType_t tobType () const
uint32_t roiWord () const
const std::string & tobName () const

Static Public Member Functions

static unsigned int nBitsEt ()
static unsigned int nBitsEta ()
static unsigned int nBitsPhi ()
static eTauTOBcreateOnHeap (const eTauTOB &eem)
static void clearHeap ()
static const Heap< TCS::eTauTOB > & heap ()
static size_t instances ()

Protected Member Functions

int sizeCheck (int value, unsigned int size) const
unsigned int sizeCheck (unsigned int value, unsigned int size) const
int sizeCheckM (int value, unsigned int size) const

Private Attributes

unsigned int m_Et {0}
int m_eta {0}
unsigned int m_phi {0}
double m_EtDouble {0}
double m_etaDouble {0}
double m_phiDouble {0}
unsigned int m_rCore {0}
unsigned int m_rHad {0}
inputTOBType_t m_tobType { NONE }
uint32_t m_roiWord
std::string m_tobName

Static Private Attributes

static const unsigned int g_nBitsEt = 13
static const unsigned int g_nBitsEta = 9
static const unsigned int g_nBitsPhi = 7
static thread_local Heap< TCS::eTauTOBfg_heap

Detailed Description

Definition at line 13 of file eTauTOB.h.

Constructor & Destructor Documentation

◆ eTauTOB() [1/3]

TCS::eTauTOB::eTauTOB ( uint32_t roiWord = 0,
const std::string & tobName = "eTauTOB" )

Definition at line 12 of file eTauTOB.cxx.

12 :
14{}
const std::string & tobName() const
Definition BaseTOB.h:23
uint32_t roiWord() const
Definition BaseTOB.h:21
BaseTOB(uint32_t roiWord, const std::string &tobType)
Definition BaseTOB.cxx:11

◆ eTauTOB() [2/3]

TCS::eTauTOB::eTauTOB ( unsigned int et,
int eta,
unsigned int phi,
inputTOBType_t tobType = NONE,
uint32_t roiWord = 0,
const std::string & tobName = "eTauTOB" )

Definition at line 17 of file eTauTOB.cxx.

17 :
19 , m_Et( sizeCheck(et, nBitsEt()) )
23{}
float et(const xAOD::jFexSRJetRoI *j)
int sizeCheck(int value, unsigned int size) const
Definition BaseTOB.cxx:32
inputTOBType_t tobType() const
Definition eTauTOB.h:65
unsigned int m_phi
Definition eTauTOB.h:74
static unsigned int nBitsEta()
Definition eTauTOB.h:17
static unsigned int nBitsPhi()
Definition eTauTOB.h:18
unsigned int m_Et
Definition eTauTOB.h:72
int eta() const
Definition eTauTOB.h:34
inputTOBType_t m_tobType
Definition eTauTOB.h:83
unsigned int phi() const
Definition eTauTOB.h:35
static unsigned int nBitsEt()
Definition eTauTOB.h:16

◆ eTauTOB() [3/3]

TCS::eTauTOB::eTauTOB ( const eTauTOB & eem)
default

◆ ~eTauTOB()

TCS::eTauTOB::~eTauTOB ( )
virtualdefault

Member Function Documentation

◆ clearHeap()

void TCS::eTauTOB::clearHeap ( )
static

Definition at line 38 of file eTauTOB.cxx.

38 {
39 return fg_heap.clear();
40}
static thread_local Heap< TCS::eTauTOB > fg_heap
Definition eTauTOB.h:85

◆ createOnHeap()

TCS::eTauTOB * TCS::eTauTOB::createOnHeap ( const eTauTOB & eem)
static

Definition at line 33 of file eTauTOB.cxx.

33 {
34 return fg_heap.create(eem);
35}

◆ Et()

unsigned int TCS::eTauTOB::Et ( ) const
inline

Definition at line 33 of file eTauTOB.h.

33{ return m_Et; } // Et in units of 100 MeV

◆ eta()

int TCS::eTauTOB::eta ( ) const
inline

Definition at line 34 of file eTauTOB.h.

34{ return m_eta; } // eta in units of 0.025

◆ etaDouble()

double TCS::eTauTOB::etaDouble ( ) const
inline

Definition at line 38 of file eTauTOB.h.

38{ return m_etaDouble; } // float eta with granularity 0.025
double m_etaDouble
Definition eTauTOB.h:77

◆ EtDouble()

double TCS::eTauTOB::EtDouble ( ) const
inline

Definition at line 37 of file eTauTOB.h.

37{ return m_EtDouble; } // float Et in units of GeV
double m_EtDouble
Definition eTauTOB.h:76

◆ heap()

const Heap< TCS::eTauTOB > & TCS::eTauTOB::heap ( )
inlinestatic

Definition at line 59 of file eTauTOB.h.

59{ return fg_heap; }

◆ instances()

size_t TCS::BaseTOB::instances ( )
inlinestaticinherited

Definition at line 25 of file BaseTOB.h.

25{ return 0; }

◆ nBitsEt()

unsigned int TCS::eTauTOB::nBitsEt ( )
inlinestatic

Definition at line 16 of file eTauTOB.h.

16{ return g_nBitsEt; }
static const unsigned int g_nBitsEt
Definition eTauTOB.h:68

◆ nBitsEta()

unsigned int TCS::eTauTOB::nBitsEta ( )
inlinestatic

Definition at line 17 of file eTauTOB.h.

17{ return g_nBitsEta; }
static const unsigned int g_nBitsEta
Definition eTauTOB.h:69

◆ nBitsPhi()

unsigned int TCS::eTauTOB::nBitsPhi ( )
inlinestatic

Definition at line 18 of file eTauTOB.h.

18{ return g_nBitsPhi; }
static const unsigned int g_nBitsPhi
Definition eTauTOB.h:70

◆ phi()

unsigned int TCS::eTauTOB::phi ( ) const
inline

Definition at line 35 of file eTauTOB.h.

35{ return m_phi; } // phi in units of 0.05

◆ phiDouble()

double TCS::eTauTOB::phiDouble ( ) const
inline

Definition at line 39 of file eTauTOB.h.

39{ return m_phiDouble; } // float phi with granularity 0.05
double m_phiDouble
Definition eTauTOB.h:78

◆ print()

void TCS::eTauTOB::print ( std::ostream & o) const
virtual

Implements TCS::BaseTOB.

Definition at line 42 of file eTauTOB.cxx.

42 {
43 o << "eTau energy: " << Et() << ", eta: " << eta() << ", phi: " << phi();
44}
unsigned int Et() const
Definition eTauTOB.h:33

◆ rCore()

unsigned int TCS::eTauTOB::rCore ( ) const
inline

Definition at line 41 of file eTauTOB.h.

41{ return m_rCore; } // rCore isolation
unsigned int m_rCore
Definition eTauTOB.h:80

◆ rHad()

unsigned int TCS::eTauTOB::rHad ( ) const
inline

Definition at line 42 of file eTauTOB.h.

42{ return m_rHad; } // rHad isolation
unsigned int m_rHad
Definition eTauTOB.h:81

◆ roiWord()

uint32_t TCS::BaseTOB::roiWord ( ) const
inlineinherited

Definition at line 21 of file BaseTOB.h.

21{ return m_roiWord; }
uint32_t m_roiWord
Definition BaseTOB.h:36

◆ setEt()

void TCS::eTauTOB::setEt ( unsigned int et)
inline

Definition at line 45 of file eTauTOB.h.

45{ m_Et = sizeCheck(et, nBitsEt()); }

◆ setEta()

void TCS::eTauTOB::setEta ( int eta)
inline

Definition at line 46 of file eTauTOB.h.

46{ m_eta = sizeCheck(eta, nBitsEta()); }

◆ setEtaDouble()

void TCS::eTauTOB::setEtaDouble ( double eta)
inline

Definition at line 50 of file eTauTOB.h.

50{ m_etaDouble = eta; }

◆ setEtDouble()

void TCS::eTauTOB::setEtDouble ( double et)
inline

Definition at line 49 of file eTauTOB.h.

49{ m_EtDouble = et; }

◆ setPhi()

void TCS::eTauTOB::setPhi ( unsigned int phi)
inline

Definition at line 47 of file eTauTOB.h.

47{ m_phi = sizeCheck(phi, nBitsPhi()); }

◆ setPhiDouble()

void TCS::eTauTOB::setPhiDouble ( double phi)
inline

Definition at line 51 of file eTauTOB.h.

51{ m_phiDouble = phi; }

◆ setRCore()

void TCS::eTauTOB::setRCore ( unsigned int th)
inline

Definition at line 53 of file eTauTOB.h.

◆ setRHad()

void TCS::eTauTOB::setRHad ( unsigned int th)
inline

Definition at line 54 of file eTauTOB.h.

54{ m_rHad = th; }

◆ setTobType()

void TCS::eTauTOB::setTobType ( inputTOBType_t tobType)
inline

Definition at line 63 of file eTauTOB.h.

63{ m_tobType = tobType; }

◆ sizeCheck() [1/2]

int TCS::BaseTOB::sizeCheck ( int value,
unsigned int size ) const
protectedinherited

Definition at line 32 of file BaseTOB.cxx.

33{
34 int max(0x1 << (size-1));
35 int min(~max + 1);
36 --max;
37 if(value>max || value<min) {
38 TCS_EXCEPTION("Integer value " << value << " outside firmware specifications. Maximum number of bits is " << size << " -> range ["<<min<<" - "<<max<<"]" << ", for " << m_tobName);
39 }
40 return value;
41}
#define min(a, b)
Definition cfImp.cxx:40
#define max(a, b)
Definition cfImp.cxx:41
std::string m_tobName
Definition BaseTOB.h:37

◆ sizeCheck() [2/2]

unsigned int TCS::BaseTOB::sizeCheck ( unsigned int value,
unsigned int size ) const
protectedinherited

Definition at line 44 of file BaseTOB.cxx.

45{
46 unsigned int max( (0x1 << size)-1 );
47 if(value>max) {
48 TCS_EXCEPTION("Unsigned integer value " << value << " outside firmware specifications. Maximum number of bits is " << size << " -> range [0"<<" - "<<max<<"]" << ", for " << m_tobName);
49 }
50 return value;
51}

◆ sizeCheckM()

int TCS::BaseTOB::sizeCheckM ( int value,
unsigned int size ) const
protectedinherited

Definition at line 19 of file BaseTOB.cxx.

20{
21 int max(0x1 << (size-1));
22 int min(~max + 1);
23 --max;
24 if( (-value)>max || (-value)<min) {
25 TCS_EXCEPTION("Integer value " << -value << " outside firmware specifications. Maximum number of bits is " << size << " -> range ["<<min<<" - "<<max<<"]" << ", for " << m_tobName);
26 }
27 return value;
28}

◆ tobName()

const std::string & TCS::BaseTOB::tobName ( ) const
inlineinherited

Definition at line 23 of file BaseTOB.h.

23{ return m_tobName; }

◆ tobType()

inputTOBType_t TCS::eTauTOB::tobType ( ) const
inlinevirtual

Implements TCS::BaseTOB.

Definition at line 65 of file eTauTOB.h.

65{ return m_tobType; }

Member Data Documentation

◆ fg_heap

thread_local TCS::Heap< TCS::eTauTOB > TCS::eTauTOB::fg_heap
staticprivate

Definition at line 85 of file eTauTOB.h.

◆ g_nBitsEt

const unsigned int TCS::eTauTOB::g_nBitsEt = 13
staticprivate

Definition at line 68 of file eTauTOB.h.

◆ g_nBitsEta

const unsigned int TCS::eTauTOB::g_nBitsEta = 9
staticprivate

Definition at line 69 of file eTauTOB.h.

◆ g_nBitsPhi

const unsigned int TCS::eTauTOB::g_nBitsPhi = 7
staticprivate

Definition at line 70 of file eTauTOB.h.

◆ m_Et

unsigned int TCS::eTauTOB::m_Et {0}
private

Definition at line 72 of file eTauTOB.h.

72{0};

◆ m_eta

int TCS::eTauTOB::m_eta {0}
private

Definition at line 73 of file eTauTOB.h.

73{0};

◆ m_etaDouble

double TCS::eTauTOB::m_etaDouble {0}
private

Definition at line 77 of file eTauTOB.h.

77{0};

◆ m_EtDouble

double TCS::eTauTOB::m_EtDouble {0}
private

Definition at line 76 of file eTauTOB.h.

76{0};

◆ m_phi

unsigned int TCS::eTauTOB::m_phi {0}
private

Definition at line 74 of file eTauTOB.h.

74{0};

◆ m_phiDouble

double TCS::eTauTOB::m_phiDouble {0}
private

Definition at line 78 of file eTauTOB.h.

78{0};

◆ m_rCore

unsigned int TCS::eTauTOB::m_rCore {0}
private

Definition at line 80 of file eTauTOB.h.

80{0};

◆ m_rHad

unsigned int TCS::eTauTOB::m_rHad {0}
private

Definition at line 81 of file eTauTOB.h.

81{0};

◆ m_roiWord

uint32_t TCS::BaseTOB::m_roiWord
privateinherited

Definition at line 36 of file BaseTOB.h.

◆ m_tobName

std::string TCS::BaseTOB::m_tobName
privateinherited

Definition at line 37 of file BaseTOB.h.

◆ m_tobType

inputTOBType_t TCS::eTauTOB::m_tobType { NONE }
private

Definition at line 83 of file eTauTOB.h.


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