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

#include <gXETOB.h>

Inheritance diagram for TCS::gXETOB:
Collaboration diagram for TCS::gXETOB:

Public Member Functions

 gXETOB ()
 gXETOB (int ex, int ey, unsigned int et, inputTOBType_t tobType=NONE)
 gXETOB (const gXETOB &gxe)
virtual ~gXETOB ()
int Ex () const
int Ey () const
unsigned int Et () const
unsigned int Et2 () const
double ExDouble () const
double EyDouble () const
double EtDouble () const
void setEx (int ex)
void setEy (int ey)
void setEt (unsigned int et)
void setEt2 (unsigned long long et2)
void setExDouble (double ex)
void setEyDouble (double ey)
void setEtDouble (double et)
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 gXETOBcreateOnHeap (const gXETOB &gxe)
static void clearHeap ()
static const Heap< TCS::gXETOB > & 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

int m_Ex {0}
int m_Ey {0}
unsigned int m_Et {0}
unsigned long long m_Et2 {0}
double m_ExDouble {0}
double m_EyDouble {0}
double m_EtDouble {0}
inputTOBType_t m_tobType { NONE }
uint32_t m_roiWord
std::string m_tobName

Static Private Attributes

static thread_local Heap< TCS::gXETOBfg_heap

Detailed Description

Definition at line 13 of file gXETOB.h.

Constructor & Destructor Documentation

◆ gXETOB() [1/3]

TCS::gXETOB::gXETOB ( )

Definition at line 8 of file gXETOB.cxx.

8 : BaseTOB(0,"gXETOB")
9{}
BaseTOB(uint32_t roiWord, const std::string &tobType)
Definition BaseTOB.cxx:11

◆ gXETOB() [2/3]

TCS::gXETOB::gXETOB ( int ex,
int ey,
unsigned int et,
inputTOBType_t tobType = NONE )

Definition at line 12 of file gXETOB.cxx.

12 : BaseTOB(0,"gXETOB")
13 , m_Ex( ex )
14 , m_Ey( ey )
15 , m_Et( et )
17{}
float et(const xAOD::jFexSRJetRoI *j)
inputTOBType_t tobType() const
Definition gXETOB.h:58
int m_Ex
Definition gXETOB.h:63
unsigned int m_Et
Definition gXETOB.h:65
int m_Ey
Definition gXETOB.h:64
inputTOBType_t m_tobType
Definition gXETOB.h:72

◆ gXETOB() [3/3]

TCS::gXETOB::gXETOB ( const gXETOB & gxe)
default

◆ ~gXETOB()

TCS::gXETOB::~gXETOB ( )
virtualdefault

Member Function Documentation

◆ clearHeap()

void TCS::gXETOB::clearHeap ( )
static

Definition at line 33 of file gXETOB.cxx.

33 {
34 return fg_heap.clear();
35}
static thread_local Heap< TCS::gXETOB > fg_heap
Definition gXETOB.h:74

◆ createOnHeap()

TCS::gXETOB * TCS::gXETOB::createOnHeap ( const gXETOB & gxe)
static

Definition at line 28 of file gXETOB.cxx.

28 {
29 return fg_heap.create(gxe);
30}

◆ Et()

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

Definition at line 32 of file gXETOB.h.

32{ return m_Et; }

◆ Et2()

unsigned int TCS::gXETOB::Et2 ( ) const
inline

Definition at line 33 of file gXETOB.h.

33{return m_Et2; }
unsigned long long m_Et2
Definition gXETOB.h:66

◆ EtDouble()

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

Definition at line 37 of file gXETOB.h.

37{ return m_EtDouble; }
double m_EtDouble
Definition gXETOB.h:70

◆ Ex()

int TCS::gXETOB::Ex ( ) const
inline

Definition at line 30 of file gXETOB.h.

30{ return m_Ex; }

◆ ExDouble()

double TCS::gXETOB::ExDouble ( ) const
inline

Definition at line 35 of file gXETOB.h.

35{ return m_ExDouble; }
double m_ExDouble
Definition gXETOB.h:68

◆ Ey()

int TCS::gXETOB::Ey ( ) const
inline

Definition at line 31 of file gXETOB.h.

31{ return m_Ey; }

◆ EyDouble()

double TCS::gXETOB::EyDouble ( ) const
inline

Definition at line 36 of file gXETOB.h.

36{ return m_EyDouble; }
double m_EyDouble
Definition gXETOB.h:69

◆ heap()

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

Definition at line 52 of file gXETOB.h.

52{ return fg_heap; }

◆ instances()

size_t TCS::BaseTOB::instances ( )
inlinestaticinherited

Definition at line 25 of file BaseTOB.h.

25{ return 0; }

◆ print()

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

Implements TCS::BaseTOB.

Definition at line 37 of file gXETOB.cxx.

37 {
38 o << "gXE type: " << tobType() << ", signed Ex: " << Ex() << ", signed Ey: " << Ey() << ", Et: " << Et();
39}
int Ey() const
Definition gXETOB.h:31
unsigned int Et() const
Definition gXETOB.h:32
int Ex() const
Definition gXETOB.h:30

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

Definition at line 42 of file gXETOB.h.

42{ m_Et = et; }

◆ setEt2()

void TCS::gXETOB::setEt2 ( unsigned long long et2)
inline

Definition at line 43 of file gXETOB.h.

43{ m_Et2 = et2; }

◆ setEtDouble()

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

Definition at line 47 of file gXETOB.h.

47{ m_EtDouble = et; }

◆ setEx()

void TCS::gXETOB::setEx ( int ex)
inline

Definition at line 40 of file gXETOB.h.

40{ m_Ex = ex; }

◆ setExDouble()

void TCS::gXETOB::setExDouble ( double ex)
inline

Definition at line 45 of file gXETOB.h.

45{ m_ExDouble = ex; }

◆ setEy()

void TCS::gXETOB::setEy ( int ey)
inline

Definition at line 41 of file gXETOB.h.

41{ m_Ey = ey; }

◆ setEyDouble()

void TCS::gXETOB::setEyDouble ( double ey)
inline

Definition at line 46 of file gXETOB.h.

46{ m_EyDouble = ey; }

◆ setTobType()

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

Definition at line 56 of file gXETOB.h.

56{ 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::gXETOB::tobType ( ) const
inlinevirtual

Implements TCS::BaseTOB.

Definition at line 58 of file gXETOB.h.

58{ return m_tobType; }

Member Data Documentation

◆ fg_heap

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

Definition at line 74 of file gXETOB.h.

◆ m_Et

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

Definition at line 65 of file gXETOB.h.

65{0};

◆ m_Et2

unsigned long long TCS::gXETOB::m_Et2 {0}
private

Definition at line 66 of file gXETOB.h.

66{0};

◆ m_EtDouble

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

Definition at line 70 of file gXETOB.h.

70{0};

◆ m_Ex

int TCS::gXETOB::m_Ex {0}
private

Definition at line 63 of file gXETOB.h.

63{0};

◆ m_ExDouble

double TCS::gXETOB::m_ExDouble {0}
private

Definition at line 68 of file gXETOB.h.

68{0};

◆ m_Ey

int TCS::gXETOB::m_Ey {0}
private

Definition at line 64 of file gXETOB.h.

64{0};

◆ m_EyDouble

double TCS::gXETOB::m_EyDouble {0}
private

Definition at line 69 of file gXETOB.h.

69{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::gXETOB::m_tobType { NONE }
private

Definition at line 72 of file gXETOB.h.


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