ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
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
 
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
 
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 }
 
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 }
 
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 {}

◆ 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 126 of file GenericTOB.h.

126 { return m_bw2or3; }

◆ charge()

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

Definition at line 129 of file GenericTOB.h.

129 { return m_charge; }

◆ clearHeap()

void TCS::CompositeTOB::clearHeap ( )
static

Definition at line 40 of file CompositeTOB.cxx.

40  {
41  return fg_heap.clear();
42 }

◆ 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 264 of file GenericTOB.cxx.

264  {
265  return fg_heap.create(tob);
266 }

◆ Et()

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

Definition at line 113 of file GenericTOB.h.

113 { return m_Et; }

◆ Et2()

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

Definition at line 119 of file GenericTOB.h.

119 { return m_Et2; }

◆ eta()

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

Definition at line 122 of file GenericTOB.h.

122 { return m_eta; }

◆ etaDouble()

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

Definition at line 133 of file GenericTOB.h.

133 { return m_etaDouble; }

◆ EtDouble()

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

Definition at line 132 of file GenericTOB.h.

132 { return m_EtDouble; }

◆ EtNarrow()

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

Definition at line 115 of file GenericTOB.h.

115 { return m_EtNarrow; }

◆ EtWide()

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

Definition at line 114 of file GenericTOB.h.

114 { return m_EtWide; }

◆ 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 136 of file GenericTOB.h.

136 { 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 137 of file GenericTOB.h.

137 { return m_EyDouble; }

◆ goodMF()

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

Definition at line 128 of file GenericTOB.h.

128 { return m_goodMF; }

◆ heap()

static 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 127 of file GenericTOB.h.

127 { return m_innerCoin; }

◆ instances()

static 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 130 of file GenericTOB.h.

130 { return m_is2cand; }

◆ phi()

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

Definition at line 123 of file GenericTOB.h.

123 { return m_phi; }

◆ phiDouble()

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

Definition at line 134 of file GenericTOB.h.

134 { 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): ";
46  for(const_iterator c = components().begin();
47  c != components().end(); ++c) {
48  o << endl << " " << **c;
49  }
50 }

◆ roiWord()

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

Definition at line 21 of file BaseTOB.h.

21 { return m_roiWord; }

◆ setTobType()

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

Definition at line 142 of file GenericTOB.h.

142 { 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 }

◆ sumEt()

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

Definition at line 120 of file GenericTOB.h.

120 { return m_sumEt; }

◆ sumEtDouble()

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

Definition at line 138 of file GenericTOB.h.

138 { return m_sumEtDouble; }

◆ 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 144 of file GenericTOB.h.

144 { 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 159 of file GenericTOB.h.

◆ m_charge

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

Definition at line 162 of file GenericTOB.h.

◆ 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 147 of file GenericTOB.h.

◆ m_Et2

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

Definition at line 153 of file GenericTOB.h.

◆ m_eta

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

Definition at line 156 of file GenericTOB.h.

◆ m_etaDouble

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

Definition at line 166 of file GenericTOB.h.

◆ m_EtDouble

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

Definition at line 165 of file GenericTOB.h.

◆ m_EtNarrow

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

Definition at line 148 of file GenericTOB.h.

◆ m_EtWide

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

Definition at line 149 of file GenericTOB.h.

◆ m_Ex

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

Definition at line 151 of file GenericTOB.h.

◆ m_ExDouble

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

Definition at line 169 of file GenericTOB.h.

◆ m_Ey

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

Definition at line 152 of file GenericTOB.h.

◆ m_EyDouble

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

Definition at line 170 of file GenericTOB.h.

◆ m_goodMF

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

Definition at line 161 of file GenericTOB.h.

◆ m_innerCoin

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

Definition at line 160 of file GenericTOB.h.

◆ m_is2cand

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

Definition at line 163 of file GenericTOB.h.

◆ m_phi

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

Definition at line 157 of file GenericTOB.h.

◆ m_phiDouble

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

Definition at line 167 of file GenericTOB.h.

◆ 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 154 of file GenericTOB.h.

◆ m_sumEtDouble

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

Definition at line 171 of file GenericTOB.h.

◆ 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 173 of file GenericTOB.h.


The documentation for this class was generated from the following files:
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
TCS::GenericTOB::m_Ex
int m_Ex
Definition: GenericTOB.h:151
TCS::CompositeTOB::m_components
data_t m_components
Definition: CompositeTOB.h:49
TCS::Heap::clear
void clear()
Definition: Heap.h:32
max
#define max(a, b)
Definition: cfImp.cxx:41
TCS::CompositeTOB::components
data_t & components()
Definition: CompositeTOB.h:41
drawFromPickle.candidates
candidates
Definition: drawFromPickle.py:271
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
TCS::GenericTOB::m_sumEt
unsigned int m_sumEt
Definition: GenericTOB.h:154
TCS::GenericTOB::tobType
inputTOBType_t tobType() const
Definition: GenericTOB.h:144
athena.value
value
Definition: athena.py:124
TCS::GenericTOB::m_innerCoin
int m_innerCoin
Definition: GenericTOB.h:160
TCS::GenericTOB::m_is2cand
int m_is2cand
Definition: GenericTOB.h:163
TCS::GenericTOB::m_EtNarrow
unsigned int m_EtNarrow
Definition: GenericTOB.h:148
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
TCS::GenericTOB::m_phiDouble
double m_phiDouble
Definition: GenericTOB.h:167
TCS::CompositeTOB::fg_heap
static thread_local Heap< TCS::CompositeTOB > fg_heap
Definition: CompositeTOB.h:51
TCS::GenericTOB::m_tobType
inputTOBType_t m_tobType
Definition: GenericTOB.h:173
TCS::GenericTOB::m_goodMF
int m_goodMF
Definition: GenericTOB.h:161
TCS::CompositeTOB::const_iterator
data_t::const_iterator const_iterator
Definition: CompositeTOB.h:20
TCS::GenericTOB::m_EyDouble
double m_EyDouble
Definition: GenericTOB.h:170
TCS::BaseTOB::m_roiWord
uint32_t m_roiWord
Definition: BaseTOB.h:36
TCS::GenericTOB::m_bw2or3
int m_bw2or3
Definition: GenericTOB.h:159
TCS::GenericTOB::m_sumEtDouble
double m_sumEtDouble
Definition: GenericTOB.h:171
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::GenericTOB::m_eta
int m_eta
Definition: GenericTOB.h:156
TCS::GenericTOB::m_EtWide
unsigned int m_EtWide
Definition: GenericTOB.h:149
TCS::Heap::create
T * create(const T &obj)
create an object on the heap
Definition: Heap.h:50
TCS::GenericTOB::GenericTOB
GenericTOB(uint32_t roiWord=0)
Definition: GenericTOB.cxx:8
TCS::GenericTOB::m_Ey
int m_Ey
Definition: GenericTOB.h:152
TCS::GenericTOB::m_Et2
unsigned int m_Et2
Definition: GenericTOB.h:153
TCS::GenericTOB::m_etaDouble
double m_etaDouble
Definition: GenericTOB.h:166
TCS::GenericTOB::fg_heap
static thread_local Heap< TCS::GenericTOB > fg_heap
Definition: GenericTOB.h:175
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
TCS::GenericTOB::m_phi
int m_phi
Definition: GenericTOB.h:157
TCS::GenericTOB::m_ExDouble
double m_ExDouble
Definition: GenericTOB.h:169
TCS::GenericTOB::m_Et
unsigned int m_Et
Definition: GenericTOB.h:147
TCS::GenericTOB::m_charge
int m_charge
Definition: GenericTOB.h:162
TCS::GenericTOB::m_EtDouble
double m_EtDouble
Definition: GenericTOB.h:165
python.compressB64.c
def c
Definition: compressB64.py:93
TCS::BaseTOB::m_tobName
std::string m_tobName
Definition: BaseTOB.h:37