#include <gTETOB.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 gTETOB.h.
◆ gTETOB() [1/3]
Definition at line 8 of file gTETOB.cxx.
9{}
BaseTOB(uint32_t roiWord, const std::string &tobType)
◆ gTETOB() [2/3]
Definition at line 12 of file gTETOB.cxx.
15{}
inputTOBType_t tobType() const
unsigned int sumEt() const
◆ gTETOB() [3/3]
| TCS::gTETOB::gTETOB |
( |
const gTETOB & | gte | ) |
|
|
default |
◆ ~gTETOB()
◆ clearHeap()
| void TCS::gTETOB::clearHeap |
( |
| ) |
|
|
static |
Definition at line 31 of file gTETOB.cxx.
31 {
33}
static thread_local Heap< TCS::gTETOB > fg_heap
◆ createOnHeap()
◆ heap()
◆ instances()
| size_t TCS::BaseTOB::instances |
( |
| ) |
|
|
inlinestaticinherited |
◆ print()
| void TCS::gTETOB::print |
( |
std::ostream & | o | ) |
const |
|
virtual |
◆ roiWord()
| uint32_t TCS::BaseTOB::roiWord |
( |
| ) |
const |
|
inlineinherited |
◆ setSumEt()
| void TCS::gTETOB::setSumEt |
( |
unsigned int | sumEt | ) |
|
|
inline |
◆ setSumEtDouble()
| void TCS::gTETOB::setSumEtDouble |
( |
double | sumEt | ) |
|
|
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}
◆ sumEt()
| unsigned int TCS::gTETOB::sumEt |
( |
| ) |
const |
|
inline |
◆ sumEtDouble()
| double TCS::gTETOB::sumEtDouble |
( |
| ) |
const |
|
inline |
◆ tobName()
| const std::string & TCS::BaseTOB::tobName |
( |
| ) |
const |
|
inlineinherited |
◆ tobType()
◆ fg_heap
◆ m_roiWord
| uint32_t TCS::BaseTOB::m_roiWord |
|
privateinherited |
◆ m_sumEt
| unsigned int TCS::gTETOB::m_sumEt {0} |
|
private |
◆ m_sumEtDouble
| double TCS::gTETOB::m_sumEtDouble {0} |
|
private |
◆ m_tobName
| std::string TCS::BaseTOB::m_tobName |
|
privateinherited |
◆ m_tobType
The documentation for this class was generated from the following files: