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

#include <jTETOB.h>

Inheritance diagram for TCS::jTETOB:
Collaboration diagram for TCS::jTETOB:

Public Member Functions

 jTETOB ()
 jTETOB (unsigned int sumEt, inputTOBType_t tobType=NONE)
 jTETOB (const jTETOB &jte)
virtual ~jTETOB ()
unsigned int sumEt () const
unsigned int sumEtSideA () const
unsigned int sumEtSideC () const
double sumEtDouble () const
double sumEtDoubleSideA () const
double sumEtDoubleSideC () const
bool saturationFlag () const
void setSumEt (unsigned int sumEt)
void setSumEtSideA (unsigned int sumEt)
void setSumEtSideC (unsigned int sumEt)
void setSumEtDouble (double sumEt)
void setSumEtDoubleSideA (double sumEt)
void setSumEtDoubleSideC (double sumEt)
void setSaturationFlag (bool saturationFlag)
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 jTETOBcreateOnHeap (const jTETOB &jte)
static void clearHeap ()
static const Heap< TCS::jTETOB > & 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

unsigned int m_sumEt {0}
unsigned int m_sumEtSideA {0}
unsigned int m_sumEtSideC {0}
double m_sumEtDouble {0}
double m_sumEtDoubleSideA {0}
double m_sumEtDoubleSideC {0}
bool m_saturationFlag {false}
inputTOBType_t m_tobType { NONE }
uint32_t m_roiWord
std::string m_tobName

Static Private Attributes

static thread_local Heap< TCS::jTETOBfg_heap

Detailed Description

Definition at line 13 of file jTETOB.h.

Constructor & Destructor Documentation

◆ jTETOB() [1/3]

TCS::jTETOB::jTETOB ( )

Definition at line 8 of file jTETOB.cxx.

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

◆ jTETOB() [2/3]

TCS::jTETOB::jTETOB ( unsigned int sumEt,
inputTOBType_t tobType = NONE )

Definition at line 12 of file jTETOB.cxx.

12 : BaseTOB(0,"jTETOB")
13 , m_sumEt( sumEt )
15{}
unsigned int sumEt() const
Definition jTETOB.h:30
inputTOBType_t tobType() const
Definition jTETOB.h:62
inputTOBType_t m_tobType
Definition jTETOB.h:76
unsigned int m_sumEt
Definition jTETOB.h:66

◆ jTETOB() [3/3]

TCS::jTETOB::jTETOB ( const jTETOB & jte)
default

◆ ~jTETOB()

TCS::jTETOB::~jTETOB ( )
virtualdefault

Member Function Documentation

◆ clearHeap()

void TCS::jTETOB::clearHeap ( )
static

Definition at line 31 of file jTETOB.cxx.

31 {
32 return fg_heap.clear();
33}
static thread_local Heap< TCS::jTETOB > fg_heap
Definition jTETOB.h:78

◆ createOnHeap()

TCS::jTETOB * TCS::jTETOB::createOnHeap ( const jTETOB & jte)
static

Definition at line 26 of file jTETOB.cxx.

26 {
27 return fg_heap.create(jte);
28}

◆ heap()

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

Definition at line 56 of file jTETOB.h.

56{ return fg_heap; }

◆ instances()

size_t TCS::BaseTOB::instances ( )
inlinestaticinherited

Definition at line 25 of file BaseTOB.h.

25{ return 0; }

◆ print()

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

Implements TCS::BaseTOB.

Definition at line 35 of file jTETOB.cxx.

35 {
36 o << "jTE type: " << tobType() << ", sumEt: " << sumEt();
37}

◆ 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

◆ saturationFlag()

bool TCS::jTETOB::saturationFlag ( ) const
inline

Definition at line 38 of file jTETOB.h.

38{ return m_saturationFlag; }
bool m_saturationFlag
Definition jTETOB.h:74

◆ setSaturationFlag()

void TCS::jTETOB::setSaturationFlag ( bool saturationFlag)
inline

Definition at line 51 of file jTETOB.h.

bool saturationFlag() const
Definition jTETOB.h:38

◆ setSumEt()

void TCS::jTETOB::setSumEt ( unsigned int sumEt)
inline

Definition at line 43 of file jTETOB.h.

43{ m_sumEt = sumEt; }

◆ setSumEtDouble()

void TCS::jTETOB::setSumEtDouble ( double sumEt)
inline

Definition at line 47 of file jTETOB.h.

double m_sumEtDouble
Definition jTETOB.h:70

◆ setSumEtDoubleSideA()

void TCS::jTETOB::setSumEtDoubleSideA ( double sumEt)
inline

Definition at line 48 of file jTETOB.h.

double m_sumEtDoubleSideA
Definition jTETOB.h:71

◆ setSumEtDoubleSideC()

void TCS::jTETOB::setSumEtDoubleSideC ( double sumEt)
inline

Definition at line 49 of file jTETOB.h.

double m_sumEtDoubleSideC
Definition jTETOB.h:72

◆ setSumEtSideA()

void TCS::jTETOB::setSumEtSideA ( unsigned int sumEt)
inline

Definition at line 44 of file jTETOB.h.

unsigned int m_sumEtSideA
Definition jTETOB.h:67

◆ setSumEtSideC()

void TCS::jTETOB::setSumEtSideC ( unsigned int sumEt)
inline

Definition at line 45 of file jTETOB.h.

unsigned int m_sumEtSideC
Definition jTETOB.h:68

◆ setTobType()

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

Definition at line 60 of file jTETOB.h.

60{ 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}

◆ sumEt()

unsigned int TCS::jTETOB::sumEt ( ) const
inline

Definition at line 30 of file jTETOB.h.

30{ return m_sumEt; }

◆ sumEtDouble()

double TCS::jTETOB::sumEtDouble ( ) const
inline

Definition at line 34 of file jTETOB.h.

34{ return m_sumEtDouble; }

◆ sumEtDoubleSideA()

double TCS::jTETOB::sumEtDoubleSideA ( ) const
inline

Definition at line 35 of file jTETOB.h.

35{ return m_sumEtDoubleSideA; }

◆ sumEtDoubleSideC()

double TCS::jTETOB::sumEtDoubleSideC ( ) const
inline

Definition at line 36 of file jTETOB.h.

36{ return m_sumEtDoubleSideC; }

◆ sumEtSideA()

unsigned int TCS::jTETOB::sumEtSideA ( ) const
inline

Definition at line 31 of file jTETOB.h.

31{ return m_sumEtSideA; }

◆ sumEtSideC()

unsigned int TCS::jTETOB::sumEtSideC ( ) const
inline

Definition at line 32 of file jTETOB.h.

32{ return m_sumEtSideC; }

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

Implements TCS::BaseTOB.

Definition at line 62 of file jTETOB.h.

62{ return m_tobType; }

Member Data Documentation

◆ fg_heap

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

Definition at line 78 of file jTETOB.h.

◆ m_roiWord

uint32_t TCS::BaseTOB::m_roiWord
privateinherited

Definition at line 36 of file BaseTOB.h.

◆ m_saturationFlag

bool TCS::jTETOB::m_saturationFlag {false}
private

Definition at line 74 of file jTETOB.h.

74{false};

◆ m_sumEt

unsigned int TCS::jTETOB::m_sumEt {0}
private

Definition at line 66 of file jTETOB.h.

66{0};

◆ m_sumEtDouble

double TCS::jTETOB::m_sumEtDouble {0}
private

Definition at line 70 of file jTETOB.h.

70{0};

◆ m_sumEtDoubleSideA

double TCS::jTETOB::m_sumEtDoubleSideA {0}
private

Definition at line 71 of file jTETOB.h.

71{0};

◆ m_sumEtDoubleSideC

double TCS::jTETOB::m_sumEtDoubleSideC {0}
private

Definition at line 72 of file jTETOB.h.

72{0};

◆ m_sumEtSideA

unsigned int TCS::jTETOB::m_sumEtSideA {0}
private

Definition at line 67 of file jTETOB.h.

67{0};

◆ m_sumEtSideC

unsigned int TCS::jTETOB::m_sumEtSideC {0}
private

Definition at line 68 of file jTETOB.h.

68{0};

◆ m_tobName

std::string TCS::BaseTOB::m_tobName
privateinherited

Definition at line 37 of file BaseTOB.h.

◆ m_tobType

inputTOBType_t TCS::jTETOB::m_tobType { NONE }
private

Definition at line 76 of file jTETOB.h.


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