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

#include <jEmTOB.h>

Inheritance diagram for TCS::jEmTOB:
Collaboration diagram for TCS::jEmTOB:

Public Member Functions

 jEmTOB (uint32_t roiWord=0, const std::string &tobName="jEm")
 jEmTOB (const jEmTOB &cluster)
 jEmTOB (unsigned int Et, int eta, unsigned phi, uint32_t roiWord=0, const std::string &tobName="jEmTOB")
virtual ~jEmTOB ()
unsigned int Et () const
int eta () const
unsigned phi () const
double EtDouble () const
double etaDouble () const
double phiDouble () const
unsigned int isolation () const
unsigned int frac1 () const
unsigned int frac2 () const
void setEt (int et)
void setEta (int eta)
void setPhi (int phi)
void setEtDouble (double et)
void setEtaDouble (double eta)
void setPhiDouble (double phi)
void setIsolation (unsigned int isolation)
void setFrac1 (unsigned int frac1)
void setFrac2 (unsigned int frac2)
void setTobType (inputTOBType_t tobType)
inputTOBType_t tobType () const
uint32_t roiWord () const
const std::string & tobName () const

Static Public Member Functions

static jEmTOBcreateOnHeap (const jEmTOB &cluster)
static void clearHeap ()
static const Heap< TCS::jEmTOB > & 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 Member Functions

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

Private Attributes

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

Static Private Attributes

static thread_local Heap< TCS::jEmTOBfg_heap

Detailed Description

Definition at line 16 of file jEmTOB.h.

Constructor & Destructor Documentation

◆ jEmTOB() [1/3]

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

Definition at line 9 of file jEmTOB.cxx.

9 :
11{}
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

◆ jEmTOB() [2/3]

TCS::jEmTOB::jEmTOB ( const jEmTOB & cluster)
default

◆ jEmTOB() [3/3]

TCS::jEmTOB::jEmTOB ( unsigned int Et,
int eta,
unsigned phi,
uint32_t roiWord = 0,
const std::string & tobName = "jEmTOB" )

Definition at line 14 of file jEmTOB.cxx.

14 :
16 , m_Et(Et)
17 , m_eta(eta)
18 , m_phi(phi)
19{}
unsigned int Et() const
Definition jEmTOB.h:32
unsigned phi() const
Definition jEmTOB.h:34
unsigned m_phi
Definition jEmTOB.h:70
int m_eta
Definition jEmTOB.h:69
int eta() const
Definition jEmTOB.h:33
unsigned int m_Et
Definition jEmTOB.h:68

◆ ~jEmTOB()

TCS::jEmTOB::~jEmTOB ( )
virtualdefault

Member Function Documentation

◆ clearHeap()

void TCS::jEmTOB::clearHeap ( )
static

Definition at line 32 of file jEmTOB.cxx.

32 {
33 return fg_heap.clear();
34}
static thread_local Heap< TCS::jEmTOB > fg_heap
Definition jEmTOB.h:84

◆ createOnHeap()

TCS::jEmTOB * TCS::jEmTOB::createOnHeap ( const jEmTOB & cluster)
static

Definition at line 27 of file jEmTOB.cxx.

27 {
28 return fg_heap.create(jet);
29}

◆ Et()

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

Definition at line 32 of file jEmTOB.h.

32{ return m_Et; }

◆ eta()

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

Definition at line 33 of file jEmTOB.h.

33{ return m_eta; }

◆ etaDouble()

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

Definition at line 37 of file jEmTOB.h.

37{ return m_etaDouble; }
double m_etaDouble
Definition jEmTOB.h:73

◆ EtDouble()

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

Definition at line 36 of file jEmTOB.h.

36{ return m_EtDouble; }
double m_EtDouble
Definition jEmTOB.h:72

◆ frac1()

unsigned int TCS::jEmTOB::frac1 ( ) const
inline

Definition at line 41 of file jEmTOB.h.

41{ return m_frac1; }
unsigned int m_frac1
Definition jEmTOB.h:77

◆ frac2()

unsigned int TCS::jEmTOB::frac2 ( ) const
inline

Definition at line 42 of file jEmTOB.h.

42{ return m_frac2; }
unsigned int m_frac2
Definition jEmTOB.h:78

◆ heap()

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

Definition at line 60 of file jEmTOB.h.

60{ return fg_heap; }

◆ instances()

size_t TCS::BaseTOB::instances ( )
inlinestaticinherited

Definition at line 25 of file BaseTOB.h.

25{ return 0; }

◆ isolation()

unsigned int TCS::jEmTOB::isolation ( ) const
inline

Definition at line 40 of file jEmTOB.h.

40{ return m_isolation; }
unsigned int m_isolation
Definition jEmTOB.h:76

◆ phi()

unsigned TCS::jEmTOB::phi ( ) const
inline

Definition at line 34 of file jEmTOB.h.

34{ return m_phi; }

◆ phiDouble()

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

Definition at line 38 of file jEmTOB.h.

38{ return m_phiDouble; }
double m_phiDouble
Definition jEmTOB.h:74

◆ print()

void TCS::jEmTOB::print ( std::ostream & o) const
privatevirtual

Implements TCS::BaseTOB.

Definition at line 37 of file jEmTOB.cxx.

37 {
38 o << "jEm jet energy: " << Et() << ", eta: " << eta() << ", phi: " << phi();
39}

◆ 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::jEmTOB::setEt ( int et)
inline

Definition at line 45 of file jEmTOB.h.

45{ m_Et = et; }
float et(const xAOD::jFexSRJetRoI *j)

◆ setEta()

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

Definition at line 46 of file jEmTOB.h.

46{ m_eta = eta; }

◆ setEtaDouble()

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

Definition at line 50 of file jEmTOB.h.

50{ m_etaDouble = eta; }

◆ setEtDouble()

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

Definition at line 49 of file jEmTOB.h.

49{ m_EtDouble = et; }

◆ setFrac1()

void TCS::jEmTOB::setFrac1 ( unsigned int frac1)
inline

Definition at line 54 of file jEmTOB.h.

54{ m_frac1 = frac1; }
unsigned int frac1() const
Definition jEmTOB.h:41

◆ setFrac2()

void TCS::jEmTOB::setFrac2 ( unsigned int frac2)
inline

Definition at line 55 of file jEmTOB.h.

55{ m_frac2 = frac2; }
unsigned int frac2() const
Definition jEmTOB.h:42

◆ setIsolation()

void TCS::jEmTOB::setIsolation ( unsigned int isolation)
inline

Definition at line 53 of file jEmTOB.h.

unsigned int isolation() const
Definition jEmTOB.h:40

◆ setPhi()

void TCS::jEmTOB::setPhi ( int phi)
inline

Definition at line 47 of file jEmTOB.h.

47{ m_phi = phi; }

◆ setPhiDouble()

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

Definition at line 51 of file jEmTOB.h.

51{ m_phiDouble = phi; }

◆ setTobType()

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

Definition at line 62 of file jEmTOB.h.

62{ m_tobType = tobType; }
inputTOBType_t tobType() const
Definition jEmTOB.h:64
inputTOBType_t m_tobType
Definition jEmTOB.h:82

◆ 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::jEmTOB::tobType ( ) const
inlinevirtual

Implements TCS::BaseTOB.

Definition at line 64 of file jEmTOB.h.

64{ return m_tobType; }

Member Data Documentation

◆ fg_heap

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

Definition at line 84 of file jEmTOB.h.

◆ m_Et

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

Definition at line 68 of file jEmTOB.h.

68{ 0 };

◆ m_eta

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

Definition at line 69 of file jEmTOB.h.

69{ 0 };

◆ m_etaDouble

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

Definition at line 73 of file jEmTOB.h.

73{ 0 };

◆ m_EtDouble

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

Definition at line 72 of file jEmTOB.h.

72{ 0 };

◆ m_frac1

unsigned int TCS::jEmTOB::m_frac1 { 0 }
private

Definition at line 77 of file jEmTOB.h.

77{ 0 };

◆ m_frac2

unsigned int TCS::jEmTOB::m_frac2 { 0 }
private

Definition at line 78 of file jEmTOB.h.

78{ 0 };

◆ m_isolation

unsigned int TCS::jEmTOB::m_isolation { 0 }
private

Definition at line 76 of file jEmTOB.h.

76{ 0 };

◆ m_phi

unsigned TCS::jEmTOB::m_phi { 0 }
private

Definition at line 70 of file jEmTOB.h.

70{ 0 };

◆ m_phiDouble

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

Definition at line 74 of file jEmTOB.h.

74{ 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::jEmTOB::m_tobType { NONE }
private

Definition at line 82 of file jEmTOB.h.


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