ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
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 {}

◆ 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 )
16  , m_tobType( tobType )
17 {}

◆ 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 }

◆ 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; }

◆ EtDouble()

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

Definition at line 37 of file gXETOB.h.

37 { return m_EtDouble; }

◆ 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; }

◆ 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; }

◆ heap()

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

Definition at line 52 of file gXETOB.h.

52 { return fg_heap; }

◆ instances()

static 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 }

◆ roiWord()

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

Definition at line 21 of file BaseTOB.h.

21 { return m_roiWord; }

◆ 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 }

◆ 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.

◆ m_Et2

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

Definition at line 66 of file gXETOB.h.

◆ m_EtDouble

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

Definition at line 70 of file gXETOB.h.

◆ m_Ex

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

Definition at line 63 of file gXETOB.h.

◆ m_ExDouble

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

Definition at line 68 of file gXETOB.h.

◆ m_Ey

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

Definition at line 64 of file gXETOB.h.

◆ m_EyDouble

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

Definition at line 69 of file gXETOB.h.

◆ 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:
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
TCS::gXETOB::m_Ex
int m_Ex
Definition: gXETOB.h:63
et
Extra patterns decribing particle interation process.
TCS::Heap::clear
void clear()
Definition: Heap.h:32
TCS::gXETOB::m_Et2
unsigned long long m_Et2
Definition: gXETOB.h:66
max
#define max(a, b)
Definition: cfImp.cxx:41
xAOD::et
et
Definition: TrigEMCluster_v1.cxx:25
TCS::gXETOB::Et
unsigned int Et() const
Definition: gXETOB.h:32
athena.value
value
Definition: athena.py:124
TCS::gXETOB::Ex
int Ex() const
Definition: gXETOB.h:30
TCS::gXETOB::fg_heap
static thread_local Heap< TCS::gXETOB > fg_heap
Definition: gXETOB.h:74
TCS::gXETOB::m_Et
unsigned int m_Et
Definition: gXETOB.h:65
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TCS::BaseTOB::BaseTOB
BaseTOB(uint32_t roiWord, const std::string &tobType)
Definition: BaseTOB.cxx:11
TCS::gXETOB::Ey
int Ey() const
Definition: gXETOB.h:31
TCS::gXETOB::m_EtDouble
double m_EtDouble
Definition: gXETOB.h:70
TCS::BaseTOB::m_roiWord
uint32_t m_roiWord
Definition: BaseTOB.h:36
TCS::gXETOB::m_tobType
inputTOBType_t m_tobType
Definition: gXETOB.h:72
TCS_EXCEPTION
#define TCS_EXCEPTION(MSG)
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Exception.h:14
min
#define min(a, b)
Definition: cfImp.cxx:40
TCS::gXETOB::m_Ey
int m_Ey
Definition: gXETOB.h:64
TCS::Heap::create
T * create(const T &obj)
create an object on the heap
Definition: Heap.h:50
TCS::gXETOB::m_EyDouble
double m_EyDouble
Definition: gXETOB.h:69
TCS::gXETOB::tobType
inputTOBType_t tobType() const
Definition: gXETOB.h:58
TCS::BaseTOB::m_tobName
std::string m_tobName
Definition: BaseTOB.h:37
TCS::gXETOB::m_ExDouble
double m_ExDouble
Definition: gXETOB.h:68