ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
TCS::jXETOB Class Reference

#include <jXETOB.h>

Inheritance diagram for TCS::jXETOB:
Collaboration diagram for TCS::jXETOB:

Public Member Functions

 jXETOB ()
 
 jXETOB (int ex, int ey, unsigned int et, inputTOBType_t tobType=NONE)
 
 jXETOB (const jXETOB &jxe)
 
virtual ~jXETOB ()
 
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 jXETOBcreateOnHeap (const jXETOB &jxe)
 
static void clearHeap ()
 
static const Heap< TCS::jXETOB > & 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::jXETOBfg_heap
 

Detailed Description

Definition at line 13 of file jXETOB.h.

Constructor & Destructor Documentation

◆ jXETOB() [1/3]

TCS::jXETOB::jXETOB ( )

Definition at line 8 of file jXETOB.cxx.

8  : BaseTOB(0,"jXETOB")
9 {}

◆ jXETOB() [2/3]

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

Definition at line 12 of file jXETOB.cxx.

12  : BaseTOB(0,"jXETOB")
13  , m_Ex( ex )
14  , m_Ey( ey )
15  , m_Et( et )
16  , m_tobType( tobType )
17 {}

◆ jXETOB() [3/3]

TCS::jXETOB::jXETOB ( const jXETOB jxe)
default

◆ ~jXETOB()

TCS::jXETOB::~jXETOB ( )
virtualdefault

Member Function Documentation

◆ clearHeap()

void TCS::jXETOB::clearHeap ( )
static

Definition at line 33 of file jXETOB.cxx.

33  {
34  return fg_heap.clear();
35 }

◆ createOnHeap()

TCS::jXETOB * TCS::jXETOB::createOnHeap ( const jXETOB jxe)
static

Definition at line 28 of file jXETOB.cxx.

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

◆ Et()

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

Definition at line 32 of file jXETOB.h.

32 { return m_Et; }

◆ Et2()

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

Definition at line 33 of file jXETOB.h.

33 {return m_Et2; }

◆ EtDouble()

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

Definition at line 37 of file jXETOB.h.

37 { return m_EtDouble; }

◆ Ex()

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

Definition at line 30 of file jXETOB.h.

30 { return m_Ex; }

◆ ExDouble()

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

Definition at line 35 of file jXETOB.h.

35 { return m_ExDouble; }

◆ Ey()

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

Definition at line 31 of file jXETOB.h.

31 { return m_Ey; }

◆ EyDouble()

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

Definition at line 36 of file jXETOB.h.

36 { return m_EyDouble; }

◆ heap()

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

Definition at line 52 of file jXETOB.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::jXETOB::print ( std::ostream &  o) const
virtual

Implements TCS::BaseTOB.

Definition at line 37 of file jXETOB.cxx.

37  {
38  o << "jXE 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::jXETOB::setEt ( unsigned int  et)
inline

Definition at line 42 of file jXETOB.h.

42 { m_Et = et; }

◆ setEt2()

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

Definition at line 43 of file jXETOB.h.

43 { m_Et2 = et2; }

◆ setEtDouble()

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

Definition at line 47 of file jXETOB.h.

47 { m_EtDouble = et; }

◆ setEx()

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

Definition at line 40 of file jXETOB.h.

40 { m_Ex = ex; }

◆ setExDouble()

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

Definition at line 45 of file jXETOB.h.

45 { m_ExDouble = ex; }

◆ setEy()

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

Definition at line 41 of file jXETOB.h.

41 { m_Ey = ey; }

◆ setEyDouble()

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

Definition at line 46 of file jXETOB.h.

46 { m_EyDouble = ey; }

◆ setTobType()

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

Definition at line 56 of file jXETOB.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::jXETOB::tobType ( ) const
inlinevirtual

Implements TCS::BaseTOB.

Definition at line 58 of file jXETOB.h.

58 { return m_tobType; }

Member Data Documentation

◆ fg_heap

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

Definition at line 74 of file jXETOB.h.

◆ m_Et

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

Definition at line 65 of file jXETOB.h.

◆ m_Et2

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

Definition at line 66 of file jXETOB.h.

◆ m_EtDouble

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

Definition at line 70 of file jXETOB.h.

◆ m_Ex

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

Definition at line 63 of file jXETOB.h.

◆ m_ExDouble

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

Definition at line 68 of file jXETOB.h.

◆ m_Ey

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

Definition at line 64 of file jXETOB.h.

◆ m_EyDouble

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

Definition at line 69 of file jXETOB.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::jXETOB::m_tobType { NONE }
private

Definition at line 72 of file jXETOB.h.


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