Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
TCS::jTauTOB Class Reference

#include <jTauTOB.h>

Inheritance diagram for TCS::jTauTOB:
Collaboration diagram for TCS::jTauTOB:

Public Member Functions

 jTauTOB (uint32_t roiWord=0, const std::string &tobName="jTauTOB")
 
 jTauTOB (const jTauTOB &jtau)
 
 jTauTOB (unsigned int Et, int eta, unsigned phi, uint32_t roiWord=0, const std::string &tobName="jTauTOB")
 
virtual ~jTauTOB ()
 
unsigned int Et () const
 
int eta () const
 
unsigned phi () const
 
double EtDouble () const
 
double etaDouble () const
 
double phiDouble () const
 
unsigned int EtIso () const
 
void setEt (int et)
 
void setEta (int eta)
 
void setPhi (int phi)
 
void setEtDouble (double et)
 
void setEtaDouble (double eta)
 
void setPhiDouble (double phi)
 
void setEtIso (unsigned int etIso)
 
inputTOBType_t tobType () const
 
uint32_t roiWord () const
 
const std::string & tobName () const
 

Static Public Member Functions

static jTauTOBcreateOnHeap (const jTauTOB &jtau)
 
static void clearHeap ()
 
static const Heap< TCS::jTauTOB > & 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 Member Functions

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

Private Attributes

unsigned int m_Et { 0 }
 
int m_eta { 0 }
 
unsigned m_phi { 0 }
 
double m_EtDouble { 0 }
 
double m_etaDouble { 0 }
 
double m_phiDouble { 0 }
 
unsigned int m_EtIso { 0 }
 
uint32_t m_roiWord
 
std::string m_tobName
 

Static Private Attributes

static const unsigned int g_nBitsEt
 
static const unsigned int g_nBitsEta
 
static const unsigned int g_nBitsPhi
 
static thread_local Heap< TCS::jTauTOBfg_heap
 

Detailed Description

Definition at line 16 of file jTauTOB.h.

Constructor & Destructor Documentation

◆ jTauTOB() [1/3]

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

Definition at line 9 of file jTauTOB.cxx.

9  :
11 {}

◆ jTauTOB() [2/3]

TCS::jTauTOB::jTauTOB ( const jTauTOB jtau)
default

◆ jTauTOB() [3/3]

TCS::jTauTOB::jTauTOB ( unsigned int  Et,
int  eta,
unsigned  phi,
uint32_t  roiWord = 0,
const std::string &  tobName = "jTauTOB" 
)

Definition at line 14 of file jTauTOB.cxx.

14  :
16  , m_Et(Et)
17  , m_eta(eta)
18  , m_phi(phi)
19 {}

◆ ~jTauTOB()

TCS::jTauTOB::~jTauTOB ( )
virtualdefault

Member Function Documentation

◆ clearHeap()

void TCS::jTauTOB::clearHeap ( )
static

Definition at line 32 of file jTauTOB.cxx.

32  {
33  return fg_heap.clear();
34 }

◆ createOnHeap()

TCS::jTauTOB * TCS::jTauTOB::createOnHeap ( const jTauTOB jtau)
static

Definition at line 27 of file jTauTOB.cxx.

27  {
28  return fg_heap.create(jtau);
29 }

◆ Et()

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

Definition at line 32 of file jTauTOB.h.

32 { return m_Et; }

◆ eta()

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

Definition at line 33 of file jTauTOB.h.

33 { return m_eta; }

◆ etaDouble()

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

Definition at line 37 of file jTauTOB.h.

37 { return m_etaDouble; }

◆ EtDouble()

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

Definition at line 36 of file jTauTOB.h.

36 { return m_EtDouble; }

◆ EtIso()

unsigned int TCS::jTauTOB::EtIso ( ) const
inline

Definition at line 40 of file jTauTOB.h.

40 { return m_EtIso; } // jTau isolation energy

◆ heap()

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

Definition at line 58 of file jTauTOB.h.

58 { return fg_heap; }

◆ instances()

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

Definition at line 25 of file BaseTOB.h.

25 { return 0; }

◆ phi()

unsigned TCS::jTauTOB::phi ( ) const
inline

Definition at line 34 of file jTauTOB.h.

34 { return m_phi; }

◆ phiDouble()

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

Definition at line 38 of file jTauTOB.h.

38 { return m_phiDouble; }

◆ print()

void TCS::jTauTOB::print ( std::ostream &  o) const
privatevirtual

Implements TCS::BaseTOB.

Definition at line 37 of file jTauTOB.cxx.

37  {
38  o << "jTau energy: " << Et() << ", eta: " << eta() << ", phi: " << phi();
39 }

◆ roiWord()

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

Definition at line 21 of file BaseTOB.h.

21 { return m_roiWord; }

◆ setEt()

void TCS::jTauTOB::setEt ( int  et)
inline

Definition at line 43 of file jTauTOB.h.

43 { m_Et = et; }

◆ setEta()

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

Definition at line 44 of file jTauTOB.h.

44 { m_eta = eta; }

◆ setEtaDouble()

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

Definition at line 48 of file jTauTOB.h.

48 { m_etaDouble = eta; }

◆ setEtDouble()

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

Definition at line 47 of file jTauTOB.h.

47 { m_EtDouble = et; }

◆ setEtIso()

void TCS::jTauTOB::setEtIso ( unsigned int  etIso)
inline

Definition at line 51 of file jTauTOB.h.

51 { m_EtIso = etIso; }

◆ setPhi()

void TCS::jTauTOB::setPhi ( int  phi)
inline

Definition at line 45 of file jTauTOB.h.

45 { m_phi = phi; }

◆ setPhiDouble()

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

Definition at line 49 of file jTauTOB.h.

49 { m_phiDouble = phi; }

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

Implements TCS::BaseTOB.

Definition at line 53 of file jTauTOB.h.

53 { return TCS::JTAU; }

Member Data Documentation

◆ fg_heap

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

Definition at line 78 of file jTauTOB.h.

◆ g_nBitsEt

const unsigned int TCS::jTauTOB::g_nBitsEt
staticprivate

Definition at line 62 of file jTauTOB.h.

◆ g_nBitsEta

const unsigned int TCS::jTauTOB::g_nBitsEta
staticprivate

Definition at line 63 of file jTauTOB.h.

◆ g_nBitsPhi

const unsigned int TCS::jTauTOB::g_nBitsPhi
staticprivate

Definition at line 64 of file jTauTOB.h.

◆ m_Et

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

Definition at line 66 of file jTauTOB.h.

◆ m_eta

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

Definition at line 67 of file jTauTOB.h.

◆ m_etaDouble

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

Definition at line 71 of file jTauTOB.h.

◆ m_EtDouble

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

Definition at line 70 of file jTauTOB.h.

◆ m_EtIso

unsigned int TCS::jTauTOB::m_EtIso { 0 }
private

Definition at line 74 of file jTauTOB.h.

◆ m_phi

unsigned TCS::jTauTOB::m_phi { 0 }
private

Definition at line 68 of file jTauTOB.h.

◆ m_phiDouble

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

Definition at line 72 of file jTauTOB.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.


The documentation for this class was generated from the following files:
TCS::BaseTOB::tobName
const std::string & tobName() const
Definition: BaseTOB.h:23
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
TCS::Heap::clear
void clear()
Definition: Heap.h:32
TCS::jTauTOB::m_Et
unsigned int m_Et
Definition: jTauTOB.h:66
xAOD::et
et
Definition: TrigEMCluster_v1.cxx:25
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
min
constexpr double min()
Definition: ap_fixedTest.cxx:26
athena.value
value
Definition: athena.py:124
TCS::BaseTOB::roiWord
uint32_t roiWord() const
Definition: BaseTOB.h:21
TCS::jTauTOB::m_EtIso
unsigned int m_EtIso
Definition: jTauTOB.h:74
TCS::jTauTOB::Et
unsigned int Et() const
Definition: jTauTOB.h:32
TCS::jTauTOB::m_phi
unsigned m_phi
Definition: jTauTOB.h:68
TCS::jTauTOB::m_EtDouble
double m_EtDouble
Definition: jTauTOB.h:70
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TCS::jTauTOB::m_etaDouble
double m_etaDouble
Definition: jTauTOB.h:71
TCS::BaseTOB::BaseTOB
BaseTOB(uint32_t roiWord, const std::string &tobType)
Definition: BaseTOB.cxx:11
TCS::jTauTOB::eta
int eta() const
Definition: jTauTOB.h:33
TCS::jTauTOB::m_eta
int m_eta
Definition: jTauTOB.h:67
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
TCS::jTauTOB::phi
unsigned phi() const
Definition: jTauTOB.h:34
TCS::Heap::create
T * create(const T &obj)
create an object on the heap
Definition: Heap.h:50
TCS::jTauTOB::m_phiDouble
double m_phiDouble
Definition: jTauTOB.h:72
TCS::JTAU
@ JTAU
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/L1TopoCommon/Types.h:13
TCS::BaseTOB::m_tobName
std::string m_tobName
Definition: BaseTOB.h:37
TCS::jTauTOB::fg_heap
static thread_local Heap< TCS::jTauTOB > fg_heap
Definition: jTauTOB.h:78