#include <MetTOB.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 MetTOB.h.
◆ MetTOB() [1/3]
Definition at line 12 of file MetTOB.cxx.
13{}
BaseTOB(uint32_t roiWord, const std::string &tobType)
◆ MetTOB() [2/3]
| TCS::MetTOB::MetTOB |
( |
int | ex, |
|
|
int | ey, |
|
|
unsigned int | et ) |
Definition at line 16 of file MetTOB.cxx.
20{}
float et(const xAOD::jFexSRJetRoI *j)
◆ MetTOB() [3/3]
| TCS::MetTOB::MetTOB |
( |
const MetTOB & | met | ) |
|
◆ ~MetTOB()
◆ clearHeap()
| void TCS::MetTOB::clearHeap |
( |
| ) |
|
|
static |
Definition at line 38 of file MetTOB.cxx.
38 {
40}
static thread_local Heap< TCS::MetTOB > fg_heap
◆ createOnHeap()
◆ Et()
| unsigned int TCS::MetTOB::Et |
( |
| ) |
const |
|
inline |
◆ EtDouble()
| double TCS::MetTOB::EtDouble |
( |
| ) |
const |
|
inline |
◆ Ex()
| int TCS::MetTOB::Ex |
( |
| ) |
const |
|
inline |
◆ ExDouble()
| double TCS::MetTOB::ExDouble |
( |
| ) |
const |
|
inline |
◆ Ey()
| int TCS::MetTOB::Ey |
( |
| ) |
const |
|
inline |
◆ EyDouble()
| double TCS::MetTOB::EyDouble |
( |
| ) |
const |
|
inline |
◆ heap()
◆ instances()
| size_t TCS::BaseTOB::instances |
( |
| ) |
|
|
inlinestaticinherited |
◆ nBitsEt()
| unsigned int TCS::MetTOB::nBitsEt |
( |
| ) |
|
|
inlinestatic |
Definition at line 18 of file MetTOB.h.
static const unsigned int g_nBitsEt
◆ nBitsEx()
| unsigned int TCS::MetTOB::nBitsEx |
( |
| ) |
|
|
inlinestatic |
Definition at line 16 of file MetTOB.h.
static const unsigned int g_nBitsEx
◆ nBitsEy()
| unsigned int TCS::MetTOB::nBitsEy |
( |
| ) |
|
|
inlinestatic |
Definition at line 17 of file MetTOB.h.
static const unsigned int g_nBitsEy
◆ print()
| void TCS::MetTOB::print |
( |
std::ostream & | o | ) |
const |
|
virtual |
Implements TCS::BaseTOB.
Definition at line 42 of file MetTOB.cxx.
42 {
43 o <<
"MET signed Ex: " <<
Ex() <<
", signed Ey: " <<
Ey() <<
", sum Et: " <<
Et();
44}
◆ roiWord()
| uint32_t TCS::BaseTOB::roiWord |
( |
| ) |
const |
|
inlineinherited |
◆ setEt()
| void TCS::MetTOB::setEt |
( |
unsigned int | et | ) |
|
|
inline |
Definition at line 45 of file MetTOB.h.
int sizeCheck(int value, unsigned int size) const
static unsigned int nBitsEt()
◆ setEtDouble()
| void TCS::MetTOB::setEtDouble |
( |
double | et | ) |
|
|
inline |
◆ setEx()
| void TCS::MetTOB::setEx |
( |
int | ex | ) |
|
|
inline |
Definition at line 43 of file MetTOB.h.
int sizeCheckM(int value, unsigned int size) const
static unsigned int nBitsEx()
◆ setExDouble()
| void TCS::MetTOB::setExDouble |
( |
double | ex | ) |
|
|
inline |
◆ setEy()
| void TCS::MetTOB::setEy |
( |
int | ey | ) |
|
|
inline |
Definition at line 44 of file MetTOB.h.
static unsigned int nBitsEy()
◆ setEyDouble()
| void TCS::MetTOB::setEyDouble |
( |
double | ey | ) |
|
|
inline |
◆ 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
◆ g_nBitsEt
| const unsigned int TCS::MetTOB::g_nBitsEt = 15 |
|
staticprivate |
◆ g_nBitsEx
| const unsigned int TCS::MetTOB::g_nBitsEx = 15 |
|
staticprivate |
◆ g_nBitsEy
| const unsigned int TCS::MetTOB::g_nBitsEy = 15 |
|
staticprivate |
◆ m_Et
| unsigned int TCS::MetTOB::m_Et {0} |
|
private |
◆ m_EtDouble
| double TCS::MetTOB::m_EtDouble {0} |
|
private |
◆ m_Ex
| int TCS::MetTOB::m_Ex {0} |
|
private |
◆ m_ExDouble
| double TCS::MetTOB::m_ExDouble {0} |
|
private |
◆ m_Ey
| int TCS::MetTOB::m_Ey {0} |
|
private |
◆ m_EyDouble
| double TCS::MetTOB::m_EyDouble {0} |
|
private |
◆ m_roiWord
| uint32_t TCS::BaseTOB::m_roiWord |
|
privateinherited |
◆ m_tobName
| std::string TCS::BaseTOB::m_tobName |
|
privateinherited |
The documentation for this class was generated from the following files: