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

#include <gLJetTOB.h>

Inheritance diagram for TCS::gLJetTOB:
Collaboration diagram for TCS::gLJetTOB:

Public Member Functions

 gLJetTOB (uint32_t roiWord=0, const std::string &tobName="gLJetTOB")
 gLJetTOB (const gLJetTOB &jet)
 gLJetTOB (unsigned int Et, int eta, unsigned phi, uint32_t roiWord=0, const std::string &tobName="gLJetTOB")
virtual ~gLJetTOB ()
unsigned int energy () const
unsigned int Et () const
int eta () const
unsigned phi () const
double EtDouble () const
double etaDouble () const
double phiDouble () const
void setEt (int energy)
void setEta (int eta)
void setPhi (int phi)
void setEtDouble (double et)
void setEtaDouble (double eta)
void setPhiDouble (double phi)
inputTOBType_t tobType () const
uint32_t roiWord () const
const std::string & tobName () const

Static Public Member Functions

static gLJetTOBcreateOnHeap (const gLJetTOB &jet)
static void clearHeap ()
static const Heap< TCS::gLJetTOB > & 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 }
uint32_t m_roiWord
std::string m_tobName

Static Private Attributes

static const unsigned int g_nBitsEt
static const unsigned int g_nBitsIsolation
static const unsigned int g_nBitsEta
static const unsigned int g_nBitsPhi
static thread_local Heap< TCS::gLJetTOBfg_heap

Detailed Description

Definition at line 18 of file gLJetTOB.h.

Constructor & Destructor Documentation

◆ gLJetTOB() [1/3]

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

Definition at line 9 of file gLJetTOB.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

◆ gLJetTOB() [2/3]

TCS::gLJetTOB::gLJetTOB ( const gLJetTOB & jet)
default

◆ gLJetTOB() [3/3]

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

Definition at line 14 of file gLJetTOB.cxx.

14 :
16 , m_Et(Et)
17 , m_eta(eta)
18 , m_phi(phi)
19 , m_EtDouble(Et/10.)
20 , m_etaDouble(eta/40.)
21 , m_phiDouble(phi/20.)
22{}
double m_EtDouble
Definition gLJetTOB.h:72
unsigned phi() const
Definition gLJetTOB.h:39
unsigned int m_Et
Definition gLJetTOB.h:68
unsigned int Et() const
Definition gLJetTOB.h:35
int eta() const
Definition gLJetTOB.h:38
double m_phiDouble
Definition gLJetTOB.h:74
unsigned m_phi
Definition gLJetTOB.h:70
double m_etaDouble
Definition gLJetTOB.h:73

◆ ~gLJetTOB()

TCS::gLJetTOB::~gLJetTOB ( )
virtualdefault

Member Function Documentation

◆ clearHeap()

void TCS::gLJetTOB::clearHeap ( )
static

Definition at line 35 of file gLJetTOB.cxx.

35 {
36 return fg_heap.clear();
37}
static thread_local Heap< TCS::gLJetTOB > fg_heap
Definition gLJetTOB.h:78

◆ createOnHeap()

TCS::gLJetTOB * TCS::gLJetTOB::createOnHeap ( const gLJetTOB & jet)
static

Definition at line 30 of file gLJetTOB.cxx.

30 {
31 return fg_heap.create(jet);
32}

◆ energy()

unsigned int TCS::gLJetTOB::energy ( ) const
inline

Definition at line 34 of file gLJetTOB.h.

34{ return m_Et; }

◆ Et()

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

Definition at line 35 of file gLJetTOB.h.

35{ return m_Et; }

◆ eta()

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

Definition at line 38 of file gLJetTOB.h.

38{ return m_eta; }

◆ etaDouble()

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

Definition at line 42 of file gLJetTOB.h.

42{ return m_etaDouble; }

◆ EtDouble()

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

Definition at line 41 of file gLJetTOB.h.

41{ return m_EtDouble; }

◆ heap()

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

Definition at line 59 of file gLJetTOB.h.

59{ return fg_heap; }

◆ instances()

size_t TCS::BaseTOB::instances ( )
inlinestaticinherited

Definition at line 25 of file BaseTOB.h.

25{ return 0; }

◆ phi()

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

Definition at line 39 of file gLJetTOB.h.

39{ return m_phi; }

◆ phiDouble()

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

Definition at line 43 of file gLJetTOB.h.

43{ return m_phiDouble; }

◆ print()

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

Implements TCS::BaseTOB.

Definition at line 40 of file gLJetTOB.cxx.

40 {
41 o << "gLJet energy: " << Et() << ", eta: " << eta() << ", phi: " << phi();
42}

◆ 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::gLJetTOB::setEt ( int energy)
inline

Definition at line 46 of file gLJetTOB.h.

46{ m_Et = energy; }
unsigned int energy() const
Definition gLJetTOB.h:34

◆ setEta()

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

Definition at line 47 of file gLJetTOB.h.

47{ m_eta = eta; }

◆ setEtaDouble()

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

Definition at line 51 of file gLJetTOB.h.

51{ m_etaDouble = eta; }

◆ setEtDouble()

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

Definition at line 50 of file gLJetTOB.h.

50{ m_EtDouble = et; }
float et(const xAOD::jFexSRJetRoI *j)

◆ setPhi()

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

Definition at line 48 of file gLJetTOB.h.

48{ m_phi = phi; }

◆ setPhiDouble()

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

Definition at line 52 of file gLJetTOB.h.

52{ m_phiDouble = phi; }

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

Implements TCS::BaseTOB.

Definition at line 54 of file gLJetTOB.h.

Member Data Documentation

◆ fg_heap

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

Definition at line 78 of file gLJetTOB.h.

◆ g_nBitsEt

const unsigned int TCS::gLJetTOB::g_nBitsEt
staticprivate

Definition at line 63 of file gLJetTOB.h.

◆ g_nBitsEta

const unsigned int TCS::gLJetTOB::g_nBitsEta
staticprivate

Definition at line 65 of file gLJetTOB.h.

◆ g_nBitsIsolation

const unsigned int TCS::gLJetTOB::g_nBitsIsolation
staticprivate

Definition at line 64 of file gLJetTOB.h.

◆ g_nBitsPhi

const unsigned int TCS::gLJetTOB::g_nBitsPhi
staticprivate

Definition at line 66 of file gLJetTOB.h.

◆ m_Et

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

Definition at line 68 of file gLJetTOB.h.

68{ 0 };

◆ m_eta

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

Definition at line 69 of file gLJetTOB.h.

69{ 0 };

◆ m_etaDouble

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

Definition at line 73 of file gLJetTOB.h.

73{ 0 };

◆ m_EtDouble

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

Definition at line 72 of file gLJetTOB.h.

72{ 0 };

◆ m_phi

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

Definition at line 70 of file gLJetTOB.h.

70{ 0 };

◆ m_phiDouble

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

Definition at line 74 of file gLJetTOB.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.


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