ATLAS Offline Software
Loading...
Searching...
No Matches
TCS::CompositeTOB Class Reference

#include <CompositeTOB.h>

Inheritance diagram for TCS::CompositeTOB:
Collaboration diagram for TCS::CompositeTOB:

Public Types

typedef std::vector< TCS::GenericTOB * > data_t
typedef data_t::iterator iterator
typedef data_t::const_iterator const_iterator

Public Member Functions

 CompositeTOB ()
 CompositeTOB (const CompositeTOB &)
 CompositeTOB (const std::vector< GenericTOB * > &)
 CompositeTOB (GenericTOB *)
 CompositeTOB (GenericTOB *, GenericTOB *)
virtual ~CompositeTOB ()
data_tcomponents ()
const data_tcomponents () const
virtual void print (std::ostream &o) const
unsigned int Et () const
unsigned int EtWide () const
unsigned int EtNarrow () const
int Ex () const
int Ey () const
unsigned int Et2 () const
unsigned int sumEt () const
unsigned int sumEtSideA () const
unsigned int sumEtSideC () const
int eta () const
int phi () const
int bw2or3 () const
int innerCoin () const
int goodMF () const
int charge () const
int is2cand () const
double EtDouble () const
double etaDouble () const
double phiDouble () const
double ExDouble () const
double EyDouble () const
double sumEtDouble () const
double sumEtDoubleSideA () const
double sumEtDoubleSideC () const
void setTobType (inputTOBType_t tobType)
inputTOBType_t tobType () const
uint32_t roiWord () const
const std::string & tobName () const

Static Public Member Functions

static CompositeTOBcreateOnHeap (const CompositeTOB &tob)
static void clearHeap ()
static const Heap< TCS::CompositeTOB > & heap ()
static GenericTOBcreateOnHeap (const GenericTOB &)
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

data_t m_components
unsigned int m_Et { 0 }
unsigned int m_EtNarrow { 0 }
unsigned int m_EtWide { 0 }
int m_Ex { 0 }
int m_Ey { 0 }
unsigned int m_Et2 { 0 }
unsigned int m_sumEt { 0 }
unsigned int m_sumEtSideA { 0 }
unsigned int m_sumEtSideC { 0 }
int m_eta { 0 }
int m_phi { 0 }
int m_bw2or3 { 0 }
int m_innerCoin { 0 }
int m_goodMF { 0 }
int m_charge { 0 }
int m_is2cand { 0 }
double m_EtDouble { 0 }
double m_etaDouble { 0 }
double m_phiDouble { 0 }
double m_ExDouble { 0 }
double m_EyDouble { 0 }
double m_sumEtDouble { 0 }
double m_sumEtDoubleSideA { 0 }
double m_sumEtDoubleSideC { 0 }
inputTOBType_t m_tobType { NONE }
uint32_t m_roiWord
std::string m_tobName

Static Private Attributes

static thread_local Heap< TCS::CompositeTOBfg_heap

Detailed Description

Definition at line 16 of file CompositeTOB.h.

Member Typedef Documentation

◆ const_iterator

typedef data_t::const_iterator TCS::CompositeTOB::const_iterator

Definition at line 20 of file CompositeTOB.h.

◆ data_t

Definition at line 18 of file CompositeTOB.h.

◆ iterator

typedef data_t::iterator TCS::CompositeTOB::iterator

Definition at line 19 of file CompositeTOB.h.

Constructor & Destructor Documentation

◆ CompositeTOB() [1/5]

TCS::CompositeTOB::CompositeTOB ( )

Definition at line 9 of file CompositeTOB.cxx.

9 : GenericTOB()
10{}
GenericTOB(uint32_t roiWord=0)
Definition GenericTOB.cxx:8

◆ CompositeTOB() [2/5]

TCS::CompositeTOB::CompositeTOB ( const CompositeTOB & other)

Definition at line 12 of file CompositeTOB.cxx.

12 : GenericTOB(other)
13{
14 m_components.insert(m_components.end(), other.m_components.begin(), other.m_components.end());
15}

◆ CompositeTOB() [3/5]

TCS::CompositeTOB::CompositeTOB ( const std::vector< GenericTOB * > & candidates)

Definition at line 18 of file CompositeTOB.cxx.

19{
20 m_components.insert(m_components.end(), candidates.begin(), candidates.end());
21}

◆ CompositeTOB() [4/5]

TCS::CompositeTOB::CompositeTOB ( GenericTOB * candidate)

Definition at line 23 of file CompositeTOB.cxx.

23 {
24 m_components.push_back(candidate);
25}

◆ CompositeTOB() [5/5]

TCS::CompositeTOB::CompositeTOB ( GenericTOB * candidate1,
GenericTOB * candidate2 )

Definition at line 27 of file CompositeTOB.cxx.

27 {
28 m_components.push_back(candidate1);
29 m_components.push_back(candidate2);
30}

◆ ~CompositeTOB()

TCS::CompositeTOB::~CompositeTOB ( )
virtualdefault

Member Function Documentation

◆ bw2or3()

int TCS::GenericTOB::bw2or3 ( ) const
inlineinherited

Definition at line 128 of file GenericTOB.h.

128{ return m_bw2or3; }

◆ charge()

int TCS::GenericTOB::charge ( ) const
inlineinherited

Definition at line 131 of file GenericTOB.h.

131{ return m_charge; }

◆ clearHeap()

void TCS::CompositeTOB::clearHeap ( )
static

Definition at line 40 of file CompositeTOB.cxx.

40 {
41 return fg_heap.clear();
42}
static thread_local Heap< TCS::CompositeTOB > fg_heap

◆ components() [1/2]

data_t & TCS::CompositeTOB::components ( )
inline

Definition at line 41 of file CompositeTOB.h.

41{ return m_components; }

◆ components() [2/2]

const data_t & TCS::CompositeTOB::components ( ) const
inline

Definition at line 42 of file CompositeTOB.h.

42{ return m_components; }

◆ createOnHeap() [1/2]

TCS::CompositeTOB * TCS::CompositeTOB::createOnHeap ( const CompositeTOB & tob)
static

Definition at line 35 of file CompositeTOB.cxx.

35 {
36 return fg_heap.create(tob);
37}

◆ createOnHeap() [2/2]

TCS::GenericTOB * TCS::GenericTOB::createOnHeap ( const GenericTOB & tob)
staticinherited

Definition at line 271 of file GenericTOB.cxx.

271 {
272 return fg_heap.create(tob);
273}
static thread_local Heap< TCS::GenericTOB > fg_heap
Definition GenericTOB.h:183

◆ Et()

unsigned int TCS::GenericTOB::Et ( ) const
inlineinherited

Definition at line 113 of file GenericTOB.h.

113{ return m_Et; }
unsigned int m_Et
Definition GenericTOB.h:151

◆ Et2()

unsigned int TCS::GenericTOB::Et2 ( ) const
inlineinherited

Definition at line 119 of file GenericTOB.h.

119{ return m_Et2; }
unsigned int m_Et2
Definition GenericTOB.h:157

◆ eta()

int TCS::GenericTOB::eta ( ) const
inlineinherited

Definition at line 124 of file GenericTOB.h.

124{ return m_eta; }

◆ etaDouble()

double TCS::GenericTOB::etaDouble ( ) const
inlineinherited

Definition at line 135 of file GenericTOB.h.

135{ return m_etaDouble; }

◆ EtDouble()

double TCS::GenericTOB::EtDouble ( ) const
inlineinherited

Definition at line 134 of file GenericTOB.h.

134{ return m_EtDouble; }

◆ EtNarrow()

unsigned int TCS::GenericTOB::EtNarrow ( ) const
inlineinherited

Definition at line 115 of file GenericTOB.h.

115{ return m_EtNarrow; }
unsigned int m_EtNarrow
Definition GenericTOB.h:152

◆ EtWide()

unsigned int TCS::GenericTOB::EtWide ( ) const
inlineinherited

Definition at line 114 of file GenericTOB.h.

114{ return m_EtWide; }
unsigned int m_EtWide
Definition GenericTOB.h:153

◆ Ex()

int TCS::GenericTOB::Ex ( ) const
inlineinherited

Definition at line 117 of file GenericTOB.h.

117{ return m_Ex; }

◆ ExDouble()

double TCS::GenericTOB::ExDouble ( ) const
inlineinherited

Definition at line 138 of file GenericTOB.h.

138{ return m_ExDouble; }

◆ Ey()

int TCS::GenericTOB::Ey ( ) const
inlineinherited

Definition at line 118 of file GenericTOB.h.

118{ return m_Ey; }

◆ EyDouble()

double TCS::GenericTOB::EyDouble ( ) const
inlineinherited

Definition at line 139 of file GenericTOB.h.

139{ return m_EyDouble; }

◆ goodMF()

int TCS::GenericTOB::goodMF ( ) const
inlineinherited

Definition at line 130 of file GenericTOB.h.

130{ return m_goodMF; }

◆ heap()

const Heap< TCS::CompositeTOB > & TCS::CompositeTOB::heap ( )
inlinestatic

Definition at line 46 of file CompositeTOB.h.

46{ return fg_heap; }

◆ innerCoin()

int TCS::GenericTOB::innerCoin ( ) const
inlineinherited

Definition at line 129 of file GenericTOB.h.

129{ return m_innerCoin; }

◆ instances()

size_t TCS::BaseTOB::instances ( )
inlinestaticinherited

Definition at line 25 of file BaseTOB.h.

25{ return 0; }

◆ is2cand()

int TCS::GenericTOB::is2cand ( ) const
inlineinherited

Definition at line 132 of file GenericTOB.h.

132{ return m_is2cand; }

◆ phi()

int TCS::GenericTOB::phi ( ) const
inlineinherited

Definition at line 125 of file GenericTOB.h.

125{ return m_phi; }

◆ phiDouble()

double TCS::GenericTOB::phiDouble ( ) const
inlineinherited

Definition at line 136 of file GenericTOB.h.

136{ return m_phiDouble; }

◆ print()

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

Reimplemented from TCS::GenericTOB.

Definition at line 44 of file CompositeTOB.cxx.

44 {
45 o << "composite tob (" << components().size() << " candidates): ";
47 c != components().end(); ++c) {
48 o << endl << " " << **c;
49 }
50}
data_t & components()
data_t::const_iterator const_iterator

◆ roiWord()

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

Definition at line 21 of file BaseTOB.h.

21{ return m_roiWord; }
uint32_t m_roiWord
Definition BaseTOB.h:36

◆ setTobType()

void TCS::GenericTOB::setTobType ( inputTOBType_t tobType)
inlineinherited

Definition at line 146 of file GenericTOB.h.

146{ m_tobType = tobType; }
inputTOBType_t m_tobType
Definition GenericTOB.h:181
inputTOBType_t tobType() const
Definition GenericTOB.h:148

◆ 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}
#define min(a, b)
Definition cfImp.cxx:40
#define max(a, b)
Definition cfImp.cxx:41
std::string m_tobName
Definition BaseTOB.h:37

◆ 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}

◆ sumEt()

unsigned int TCS::GenericTOB::sumEt ( ) const
inlineinherited

Definition at line 120 of file GenericTOB.h.

120{ return m_sumEt; }
unsigned int m_sumEt
Definition GenericTOB.h:158

◆ sumEtDouble()

double TCS::GenericTOB::sumEtDouble ( ) const
inlineinherited

Definition at line 140 of file GenericTOB.h.

140{ return m_sumEtDouble; }
double m_sumEtDouble
Definition GenericTOB.h:177

◆ sumEtDoubleSideA()

double TCS::GenericTOB::sumEtDoubleSideA ( ) const
inlineinherited

Definition at line 141 of file GenericTOB.h.

141{ return m_sumEtDoubleSideA; }
double m_sumEtDoubleSideA
Definition GenericTOB.h:178

◆ sumEtDoubleSideC()

double TCS::GenericTOB::sumEtDoubleSideC ( ) const
inlineinherited

Definition at line 142 of file GenericTOB.h.

142{ return m_sumEtDoubleSideC; }
double m_sumEtDoubleSideC
Definition GenericTOB.h:179

◆ sumEtSideA()

unsigned int TCS::GenericTOB::sumEtSideA ( ) const
inlineinherited

Definition at line 121 of file GenericTOB.h.

121{ return m_sumEtSideA; }
unsigned int m_sumEtSideA
Definition GenericTOB.h:159

◆ sumEtSideC()

unsigned int TCS::GenericTOB::sumEtSideC ( ) const
inlineinherited

Definition at line 122 of file GenericTOB.h.

122{ return m_sumEtSideC; }
unsigned int m_sumEtSideC
Definition GenericTOB.h:160

◆ 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::GenericTOB::tobType ( ) const
inlinevirtualinherited

Implements TCS::BaseTOB.

Definition at line 148 of file GenericTOB.h.

148{ return m_tobType; }

Member Data Documentation

◆ fg_heap

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

Definition at line 51 of file CompositeTOB.h.

◆ m_bw2or3

int TCS::GenericTOB::m_bw2or3 { 0 }
privateinherited

Definition at line 165 of file GenericTOB.h.

165{ 0 };

◆ m_charge

int TCS::GenericTOB::m_charge { 0 }
privateinherited

Definition at line 168 of file GenericTOB.h.

168{ 0 };

◆ m_components

data_t TCS::CompositeTOB::m_components
private

Definition at line 49 of file CompositeTOB.h.

◆ m_Et

unsigned int TCS::GenericTOB::m_Et { 0 }
privateinherited

Definition at line 151 of file GenericTOB.h.

151{ 0 };

◆ m_Et2

unsigned int TCS::GenericTOB::m_Et2 { 0 }
privateinherited

Definition at line 157 of file GenericTOB.h.

157{ 0 };

◆ m_eta

int TCS::GenericTOB::m_eta { 0 }
privateinherited

Definition at line 162 of file GenericTOB.h.

162{ 0 };

◆ m_etaDouble

double TCS::GenericTOB::m_etaDouble { 0 }
privateinherited

Definition at line 172 of file GenericTOB.h.

172{ 0 };

◆ m_EtDouble

double TCS::GenericTOB::m_EtDouble { 0 }
privateinherited

Definition at line 171 of file GenericTOB.h.

171{ 0 };

◆ m_EtNarrow

unsigned int TCS::GenericTOB::m_EtNarrow { 0 }
privateinherited

Definition at line 152 of file GenericTOB.h.

152{ 0 };

◆ m_EtWide

unsigned int TCS::GenericTOB::m_EtWide { 0 }
privateinherited

Definition at line 153 of file GenericTOB.h.

153{ 0 };

◆ m_Ex

int TCS::GenericTOB::m_Ex { 0 }
privateinherited

Definition at line 155 of file GenericTOB.h.

155{ 0 };

◆ m_ExDouble

double TCS::GenericTOB::m_ExDouble { 0 }
privateinherited

Definition at line 175 of file GenericTOB.h.

175{ 0 };

◆ m_Ey

int TCS::GenericTOB::m_Ey { 0 }
privateinherited

Definition at line 156 of file GenericTOB.h.

156{ 0 };

◆ m_EyDouble

double TCS::GenericTOB::m_EyDouble { 0 }
privateinherited

Definition at line 176 of file GenericTOB.h.

176{ 0 };

◆ m_goodMF

int TCS::GenericTOB::m_goodMF { 0 }
privateinherited

Definition at line 167 of file GenericTOB.h.

167{ 0 };

◆ m_innerCoin

int TCS::GenericTOB::m_innerCoin { 0 }
privateinherited

Definition at line 166 of file GenericTOB.h.

166{ 0 };

◆ m_is2cand

int TCS::GenericTOB::m_is2cand { 0 }
privateinherited

Definition at line 169 of file GenericTOB.h.

169{ 0 };

◆ m_phi

int TCS::GenericTOB::m_phi { 0 }
privateinherited

Definition at line 163 of file GenericTOB.h.

163{ 0 };

◆ m_phiDouble

double TCS::GenericTOB::m_phiDouble { 0 }
privateinherited

Definition at line 173 of file GenericTOB.h.

173{ 0 };

◆ m_roiWord

uint32_t TCS::BaseTOB::m_roiWord
privateinherited

Definition at line 36 of file BaseTOB.h.

◆ m_sumEt

unsigned int TCS::GenericTOB::m_sumEt { 0 }
privateinherited

Definition at line 158 of file GenericTOB.h.

158{ 0 };

◆ m_sumEtDouble

double TCS::GenericTOB::m_sumEtDouble { 0 }
privateinherited

Definition at line 177 of file GenericTOB.h.

177{ 0 };

◆ m_sumEtDoubleSideA

double TCS::GenericTOB::m_sumEtDoubleSideA { 0 }
privateinherited

Definition at line 178 of file GenericTOB.h.

178{ 0 };

◆ m_sumEtDoubleSideC

double TCS::GenericTOB::m_sumEtDoubleSideC { 0 }
privateinherited

Definition at line 179 of file GenericTOB.h.

179{ 0 };

◆ m_sumEtSideA

unsigned int TCS::GenericTOB::m_sumEtSideA { 0 }
privateinherited

Definition at line 159 of file GenericTOB.h.

159{ 0 };

◆ m_sumEtSideC

unsigned int TCS::GenericTOB::m_sumEtSideC { 0 }
privateinherited

Definition at line 160 of file GenericTOB.h.

160{ 0 };

◆ m_tobName

std::string TCS::BaseTOB::m_tobName
privateinherited

Definition at line 37 of file BaseTOB.h.

◆ m_tobType

inputTOBType_t TCS::GenericTOB::m_tobType { NONE }
privateinherited

Definition at line 181 of file GenericTOB.h.


The documentation for this class was generated from the following files: