#include <jXETOB.h>
|
| 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 |
Definition at line 13 of file jXETOB.h.
◆ jXETOB() [1/3]
Definition at line 8 of file jXETOB.cxx.
9{}
BaseTOB(uint32_t roiWord, const std::string &tobType)
◆ jXETOB() [2/3]
| TCS::jXETOB::jXETOB |
( |
int | ex, |
|
|
int | ey, |
|
|
unsigned long long | et, |
|
|
inputTOBType_t | tobType = NONE ) |
Definition at line 12 of file jXETOB.cxx.
17{}
float et(const xAOD::jFexSRJetRoI *j)
inputTOBType_t tobType() const
◆ jXETOB() [3/3]
| TCS::jXETOB::jXETOB |
( |
const jXETOB & | jxe | ) |
|
|
default |
◆ ~jXETOB()
◆ clearHeap()
| void TCS::jXETOB::clearHeap |
( |
| ) |
|
|
static |
Definition at line 33 of file jXETOB.cxx.
33 {
35}
static thread_local Heap< TCS::jXETOB > fg_heap
◆ createOnHeap()
◆ Et()
| unsigned long long TCS::jXETOB::Et |
( |
| ) |
const |
|
inline |
◆ Et2()
| unsigned long long TCS::jXETOB::Et2 |
( |
| ) |
const |
|
inline |
◆ EtDouble()
| double TCS::jXETOB::EtDouble |
( |
| ) |
const |
|
inline |
◆ Ex()
| int TCS::jXETOB::Ex |
( |
| ) |
const |
|
inline |
◆ ExDouble()
| double TCS::jXETOB::ExDouble |
( |
| ) |
const |
|
inline |
◆ Ey()
| int TCS::jXETOB::Ey |
( |
| ) |
const |
|
inline |
◆ EyDouble()
| double TCS::jXETOB::EyDouble |
( |
| ) |
const |
|
inline |
◆ heap()
◆ instances()
| size_t TCS::BaseTOB::instances |
( |
| ) |
|
|
inlinestaticinherited |
◆ 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}
unsigned long long Et() const
◆ roiWord()
| uint32_t TCS::BaseTOB::roiWord |
( |
| ) |
const |
|
inlineinherited |
◆ setEt()
| void TCS::jXETOB::setEt |
( |
unsigned long long | et | ) |
|
|
inline |
◆ setEt2()
| void TCS::jXETOB::setEt2 |
( |
unsigned long long | et2 | ) |
|
|
inline |
◆ setEtDouble()
| void TCS::jXETOB::setEtDouble |
( |
double | et | ) |
|
|
inline |
◆ setEx()
| void TCS::jXETOB::setEx |
( |
int | ex | ) |
|
|
inline |
◆ setExDouble()
| void TCS::jXETOB::setExDouble |
( |
double | ex | ) |
|
|
inline |
◆ setEy()
| void TCS::jXETOB::setEy |
( |
int | ey | ) |
|
|
inline |
◆ setEyDouble()
| void TCS::jXETOB::setEyDouble |
( |
double | ey | ) |
|
|
inline |
◆ setTobType()
◆ 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));
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 }
41}
#define TCS_EXCEPTION(MSG)
◆ 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 );
48 TCS_EXCEPTION(
"Unsigned integer value " << value <<
" outside firmware specifications. Maximum number of bits is " << size <<
" -> range [0"<<
" - "<<
max<<
"]" <<
", for " <<
m_tobName);
49 }
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));
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 }
28}
◆ tobName()
| const std::string & TCS::BaseTOB::tobName |
( |
| ) |
const |
|
inlineinherited |
◆ tobType()
◆ fg_heap
◆ m_Et
| unsigned long long TCS::jXETOB::m_Et {0} |
|
private |
◆ m_Et2
| unsigned long long TCS::jXETOB::m_Et2 {0} |
|
private |
◆ m_EtDouble
| double TCS::jXETOB::m_EtDouble {0} |
|
private |
◆ m_Ex
| int TCS::jXETOB::m_Ex {0} |
|
private |
◆ m_ExDouble
| double TCS::jXETOB::m_ExDouble {0} |
|
private |
◆ m_Ey
| int TCS::jXETOB::m_Ey {0} |
|
private |
◆ m_EyDouble
| double TCS::jXETOB::m_EyDouble {0} |
|
private |
◆ m_roiWord
| uint32_t TCS::BaseTOB::m_roiWord |
|
privateinherited |
◆ m_tobName
| std::string TCS::BaseTOB::m_tobName |
|
privateinherited |
◆ m_tobType
The documentation for this class was generated from the following files: