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

#include <eTauTOB.h>

Inheritance diagram for TCS::eTauTOB:
Collaboration diagram for TCS::eTauTOB:

Public Member Functions

 eTauTOB (uint32_t roiWord=0, const std::string &tobName="eTauTOB")
 
 eTauTOB (unsigned int et, int eta, unsigned int phi, inputTOBType_t tobType=NONE, uint32_t roiWord=0, const std::string &tobName="eTauTOB")
 
 eTauTOB (const eTauTOB &eem)
 
virtual ~eTauTOB ()
 
unsigned int Et () const
 
int eta () const
 
unsigned int phi () const
 
double EtDouble () const
 
double etaDouble () const
 
double phiDouble () const
 
unsigned int rCore () const
 
unsigned int rHad () const
 
void setEt (unsigned int et)
 
void setEta (int eta)
 
void setPhi (unsigned int phi)
 
void setEtDouble (double et)
 
void setEtaDouble (double eta)
 
void setPhiDouble (double phi)
 
void setRCore (unsigned int th)
 
void setRHad (unsigned int th)
 
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 unsigned int nBitsEt ()
 
static unsigned int nBitsEta ()
 
static unsigned int nBitsPhi ()
 
static eTauTOBcreateOnHeap (const eTauTOB &eem)
 
static void clearHeap ()
 
static const Heap< TCS::eTauTOB > & 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_Et {0}
 
int m_eta {0}
 
unsigned int m_phi {0}
 
double m_EtDouble {0}
 
double m_etaDouble {0}
 
double m_phiDouble {0}
 
unsigned int m_rCore {0}
 
unsigned int m_rHad {0}
 
inputTOBType_t m_tobType { NONE }
 
uint32_t m_roiWord
 
std::string m_tobName
 

Static Private Attributes

static const unsigned int g_nBitsEt = 13
 
static const unsigned int g_nBitsEta = 9
 
static const unsigned int g_nBitsPhi = 7
 
static thread_local Heap< TCS::eTauTOBfg_heap
 

Detailed Description

Definition at line 13 of file eTauTOB.h.

Constructor & Destructor Documentation

◆ eTauTOB() [1/3]

TCS::eTauTOB::eTauTOB ( uint32_t  roiWord = 0,
const std::string &  tobName = "eTauTOB" 
)

Definition at line 12 of file eTauTOB.cxx.

12  :
14 {}

◆ eTauTOB() [2/3]

TCS::eTauTOB::eTauTOB ( unsigned int  et,
int  eta,
unsigned int  phi,
inputTOBType_t  tobType = NONE,
uint32_t  roiWord = 0,
const std::string &  tobName = "eTauTOB" 
)

Definition at line 17 of file eTauTOB.cxx.

17  :
19  , m_Et( sizeCheck(et, nBitsEt()) )
20  , m_eta( sizeCheck(eta, nBitsEta()) )
21  , m_phi( sizeCheck(phi, nBitsPhi()) )
22  , m_tobType( tobType )
23 {}

◆ eTauTOB() [3/3]

TCS::eTauTOB::eTauTOB ( const eTauTOB eem)
default

◆ ~eTauTOB()

TCS::eTauTOB::~eTauTOB ( )
virtualdefault

Member Function Documentation

◆ clearHeap()

void TCS::eTauTOB::clearHeap ( )
static

Definition at line 38 of file eTauTOB.cxx.

38  {
39  return fg_heap.clear();
40 }

◆ createOnHeap()

TCS::eTauTOB * TCS::eTauTOB::createOnHeap ( const eTauTOB eem)
static

Definition at line 33 of file eTauTOB.cxx.

33  {
34  return fg_heap.create(eem);
35 }

◆ Et()

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

Definition at line 33 of file eTauTOB.h.

33 { return m_Et; } // Et in units of 100 MeV

◆ eta()

int TCS::eTauTOB::eta ( ) const
inline

Definition at line 34 of file eTauTOB.h.

34 { return m_eta; } // eta in units of 0.025

◆ etaDouble()

double TCS::eTauTOB::etaDouble ( ) const
inline

Definition at line 38 of file eTauTOB.h.

38 { return m_etaDouble; } // float eta with granularity 0.025

◆ EtDouble()

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

Definition at line 37 of file eTauTOB.h.

37 { return m_EtDouble; } // float Et in units of GeV

◆ heap()

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

Definition at line 59 of file eTauTOB.h.

59 { return fg_heap; }

◆ instances()

static size_t TCS::BaseTOB::instances ( )
inlinestaticinherited

Definition at line 25 of file BaseTOB.h.

25 { return 0; }

◆ nBitsEt()

static unsigned int TCS::eTauTOB::nBitsEt ( )
inlinestatic

Definition at line 16 of file eTauTOB.h.

16 { return g_nBitsEt; }

◆ nBitsEta()

static unsigned int TCS::eTauTOB::nBitsEta ( )
inlinestatic

Definition at line 17 of file eTauTOB.h.

17 { return g_nBitsEta; }

◆ nBitsPhi()

static unsigned int TCS::eTauTOB::nBitsPhi ( )
inlinestatic

Definition at line 18 of file eTauTOB.h.

18 { return g_nBitsPhi; }

◆ phi()

unsigned int TCS::eTauTOB::phi ( ) const
inline

Definition at line 35 of file eTauTOB.h.

35 { return m_phi; } // phi in units of 0.05

◆ phiDouble()

double TCS::eTauTOB::phiDouble ( ) const
inline

Definition at line 39 of file eTauTOB.h.

39 { return m_phiDouble; } // float phi with granularity 0.05

◆ print()

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

Implements TCS::BaseTOB.

Definition at line 42 of file eTauTOB.cxx.

42  {
43  o << "eTau energy: " << Et() << ", eta: " << eta() << ", phi: " << phi();
44 }

◆ rCore()

unsigned int TCS::eTauTOB::rCore ( ) const
inline

Definition at line 41 of file eTauTOB.h.

41 { return m_rCore; } // rCore isolation

◆ rHad()

unsigned int TCS::eTauTOB::rHad ( ) const
inline

Definition at line 42 of file eTauTOB.h.

42 { return m_rHad; } // rHad isolation

◆ roiWord()

uint32_t TCS::BaseTOB::roiWord ( ) const
inlineinherited

Definition at line 21 of file BaseTOB.h.

21 { return m_roiWord; }

◆ setEt()

void TCS::eTauTOB::setEt ( unsigned int  et)
inline

Definition at line 45 of file eTauTOB.h.

45 { m_Et = sizeCheck(et, nBitsEt()); }

◆ setEta()

void TCS::eTauTOB::setEta ( int  eta)
inline

Definition at line 46 of file eTauTOB.h.

46 { m_eta = sizeCheck(eta, nBitsEta()); }

◆ setEtaDouble()

void TCS::eTauTOB::setEtaDouble ( double  eta)
inline

Definition at line 50 of file eTauTOB.h.

50 { m_etaDouble = eta; }

◆ setEtDouble()

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

Definition at line 49 of file eTauTOB.h.

49 { m_EtDouble = et; }

◆ setPhi()

void TCS::eTauTOB::setPhi ( unsigned int  phi)
inline

Definition at line 47 of file eTauTOB.h.

47 { m_phi = sizeCheck(phi, nBitsPhi()); }

◆ setPhiDouble()

void TCS::eTauTOB::setPhiDouble ( double  phi)
inline

Definition at line 51 of file eTauTOB.h.

51 { m_phiDouble = phi; }

◆ setRCore()

void TCS::eTauTOB::setRCore ( unsigned int  th)
inline

Definition at line 53 of file eTauTOB.h.

53 { m_rCore = th; }

◆ setRHad()

void TCS::eTauTOB::setRHad ( unsigned int  th)
inline

Definition at line 54 of file eTauTOB.h.

54 { m_rHad = th; }

◆ setTobType()

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

Definition at line 63 of file eTauTOB.h.

63 { 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::eTauTOB::tobType ( ) const
inlinevirtual

Implements TCS::BaseTOB.

Definition at line 65 of file eTauTOB.h.

65 { return m_tobType; }

Member Data Documentation

◆ fg_heap

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

Definition at line 85 of file eTauTOB.h.

◆ g_nBitsEt

const unsigned int TCS::eTauTOB::g_nBitsEt = 13
staticprivate

Definition at line 68 of file eTauTOB.h.

◆ g_nBitsEta

const unsigned int TCS::eTauTOB::g_nBitsEta = 9
staticprivate

Definition at line 69 of file eTauTOB.h.

◆ g_nBitsPhi

const unsigned int TCS::eTauTOB::g_nBitsPhi = 7
staticprivate

Definition at line 70 of file eTauTOB.h.

◆ m_Et

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

Definition at line 72 of file eTauTOB.h.

◆ m_eta

int TCS::eTauTOB::m_eta {0}
private

Definition at line 73 of file eTauTOB.h.

◆ m_etaDouble

double TCS::eTauTOB::m_etaDouble {0}
private

Definition at line 77 of file eTauTOB.h.

◆ m_EtDouble

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

Definition at line 76 of file eTauTOB.h.

◆ m_phi

unsigned int TCS::eTauTOB::m_phi {0}
private

Definition at line 74 of file eTauTOB.h.

◆ m_phiDouble

double TCS::eTauTOB::m_phiDouble {0}
private

Definition at line 78 of file eTauTOB.h.

◆ m_rCore

unsigned int TCS::eTauTOB::m_rCore {0}
private

Definition at line 80 of file eTauTOB.h.

◆ m_rHad

unsigned int TCS::eTauTOB::m_rHad {0}
private

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

Definition at line 83 of file eTauTOB.h.


The documentation for this class was generated from the following files:
TCS::eTauTOB::m_etaDouble
double m_etaDouble
Definition: eTauTOB.h:77
TCS::BaseTOB::tobName
const std::string & tobName() const
Definition: BaseTOB.h:23
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
TCS::eTauTOB::g_nBitsEta
static const unsigned int g_nBitsEta
Definition: eTauTOB.h:69
et
Extra patterns decribing particle interation process.
TCS::Heap::clear
void clear()
Definition: Heap.h:32
TCS::eTauTOB::nBitsEta
static unsigned int nBitsEta()
Definition: eTauTOB.h:17
max
#define max(a, b)
Definition: cfImp.cxx:41
TCS::eTauTOB::eta
int eta() const
Definition: eTauTOB.h:34
xAOD::et
et
Definition: TrigEMCluster_v1.cxx:25
TCS::eTauTOB::nBitsPhi
static unsigned int nBitsPhi()
Definition: eTauTOB.h:18
athena.value
value
Definition: athena.py:124
TCS::BaseTOB::roiWord
uint32_t roiWord() const
Definition: BaseTOB.h:21
TCS::eTauTOB::g_nBitsPhi
static const unsigned int g_nBitsPhi
Definition: eTauTOB.h:70
TCS::eTauTOB::nBitsEt
static unsigned int nBitsEt()
Definition: eTauTOB.h:16
TCS::BaseTOB::sizeCheck
int sizeCheck(int value, unsigned int size) const
Definition: BaseTOB.cxx:32
TCS::eTauTOB::m_EtDouble
double m_EtDouble
Definition: eTauTOB.h:76
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TCS::BaseTOB::BaseTOB
BaseTOB(uint32_t roiWord, const std::string &tobType)
Definition: BaseTOB.cxx:11
python.TriggerHandler.th
th
Definition: TriggerHandler.py:296
TCS::eTauTOB::m_tobType
inputTOBType_t m_tobType
Definition: eTauTOB.h:83
TCS::BaseTOB::m_roiWord
uint32_t m_roiWord
Definition: BaseTOB.h:36
TCS_EXCEPTION
#define TCS_EXCEPTION(MSG)
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Exception.h:14
min
#define min(a, b)
Definition: cfImp.cxx:40
TCS::eTauTOB::phi
unsigned int phi() const
Definition: eTauTOB.h:35
TCS::Heap::create
T * create(const T &obj)
create an object on the heap
Definition: Heap.h:50
TCS::eTauTOB::fg_heap
static thread_local Heap< TCS::eTauTOB > fg_heap
Definition: eTauTOB.h:85
TCS::eTauTOB::m_phiDouble
double m_phiDouble
Definition: eTauTOB.h:78
TCS::eTauTOB::Et
unsigned int Et() const
Definition: eTauTOB.h:33
TCS::eTauTOB::m_phi
unsigned int m_phi
Definition: eTauTOB.h:74
TCS::eTauTOB::g_nBitsEt
static const unsigned int g_nBitsEt
Definition: eTauTOB.h:68
TCS::eTauTOB::m_rHad
unsigned int m_rHad
Definition: eTauTOB.h:81
TCS::eTauTOB::m_Et
unsigned int m_Et
Definition: eTauTOB.h:72
TCS::eTauTOB::m_rCore
unsigned int m_rCore
Definition: eTauTOB.h:80
TCS::eTauTOB::tobType
inputTOBType_t tobType() const
Definition: eTauTOB.h:65
TCS::eTauTOB::m_eta
int m_eta
Definition: eTauTOB.h:73
TCS::BaseTOB::m_tobName
std::string m_tobName
Definition: BaseTOB.h:37