ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LVL1::CMXCPTob Class Reference

TOB data received by the merger modules. More...

#include <CMXCPTob.h>

Collaboration diagram for LVL1::CMXCPTob:

Public Member Functions

 CMXCPTob ()
 Constructors. More...
 
 CMXCPTob (int crate, int cmx, int cpm, int chip, int loc)
 constructs a CMXCPTob object, specifying crate, cmx, cpm etc. More...
 
 CMXCPTob (int crate, int cmx, int cpm, int chip, int loc, const std::vector< int > &energy, const std::vector< int > &isolation, const std::vector< int > &error, const std::vector< unsigned int > &presenceMap, int peak)
 constructs a CMXCPTob object and fill all data members More...
 
virtual ~CMXCPTob ()
 
void setPeak (int peak)
 For multi-slice readout, need to indicate position of triggered BC. More...
 
void addTob (const std::vector< int > &energy, const std::vector< int > &isolation, const std::vector< int > &error, const std::vector< unsigned int > &presenceMap)
 Add data to existing object. More...
 
int crate () const
 Data accessors. More...
 
int cmx () const
 returns CMX number (0/1)==(Left/Right)==(Tau/Em) More...
 
int cpm () const
 returns CPM number More...
 
int chip () const
 returns chip number (3 or 4 bits?) More...
 
int location () const
 returns location (3 or 2 bits?) More...
 
int energy () const
 For triggered time slice. More...
 
int isolation () const
 returns isolation for peak sample More...
 
int error () const
 returns error for peak sample More...
 
unsigned int presenceMap () const
 returns presence map for peak sample More...
 
const std::vector< int > & energyVec () const
 For multi-slice readout. More...
 
const std::vector< int > & isolationVec () const
 returns isolation More...
 
const std::vector< int > & errorVec () const
 returns error More...
 
const std::vector< unsigned int > & presenceMapVec () const
 returns presence maps More...
 
int peak () const
 returns peak slice number More...
 

Private Attributes

int m_crate
 Internal data. More...
 
int m_cmx
 
int m_cpm
 
int m_chip
 
int m_location
 
int m_peak
 
std::vector< int > m_energy
 
std::vector< int > m_isolation
 
std::vector< int > m_error
 
std::vector< unsigned int > m_presenceMap
 

Detailed Description

TOB data received by the merger modules.

Used in unpacking and analysis of CP CMX readout data.

Definition at line 24 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

Constructor & Destructor Documentation

◆ CMXCPTob() [1/3]

LVL1::CMXCPTob::CMXCPTob ( )

Constructors.

Definition at line 16 of file CMXCPTob.cxx.

16  :
17  m_crate(0),
18  m_cmx(0),
19  m_cpm(0),
20  m_chip(0),
21  m_location(0),
22  m_peak(0),
23  m_energy(1),
24  m_isolation(1),
25  m_error(1),
26  m_presenceMap(1)
27 {
28 }

◆ CMXCPTob() [2/3]

LVL1::CMXCPTob::CMXCPTob ( int  crate,
int  cmx,
int  cpm,
int  chip,
int  loc 
)

constructs a CMXCPTob object, specifying crate, cmx, cpm etc.

Definition at line 34 of file CMXCPTob.cxx.

34  :
35  m_crate(crate),
36  m_cmx(cmx),
37  m_cpm(cpm),
38  m_chip(chip),
39  m_location(loc),
40  m_peak(0),
41  m_energy(1),
42  m_isolation(1),
43  m_error(1),
44  m_presenceMap(1)
45 {
46 }

◆ CMXCPTob() [3/3]

LVL1::CMXCPTob::CMXCPTob ( int  crate,
int  cmx,
int  cpm,
int  chip,
int  loc,
const std::vector< int > &  energy,
const std::vector< int > &  isolation,
const std::vector< int > &  error,
const std::vector< unsigned int > &  presenceMap,
int  peak 
)

constructs a CMXCPTob object and fill all data members

Definition at line 49 of file CMXCPTob.cxx.

54  :
55  m_crate(crate),
56  m_cmx(cmx),
57  m_cpm(cpm),
58  m_chip(chip),
59  m_location(loc),
60  m_peak(peak),
63  m_error(error),
65 {
66 }

◆ ~CMXCPTob()

LVL1::CMXCPTob::~CMXCPTob ( )
virtual

Definition at line 30 of file CMXCPTob.cxx.

30  {
31 }

Member Function Documentation

◆ addTob()

void LVL1::CMXCPTob::addTob ( const std::vector< int > &  energy,
const std::vector< int > &  isolation,
const std::vector< int > &  error,
const std::vector< unsigned int > &  presenceMap 
)
inline

Add data to existing object.

Set TOB.

Definition at line 146 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

149  {
150  m_energy = energy;
152  m_error = error;
154  }

◆ chip()

int LVL1::CMXCPTob::chip ( ) const
inline

returns chip number (3 or 4 bits?)

Definition at line 96 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

96  {
97  return m_chip;
98  }

◆ cmx()

int LVL1::CMXCPTob::cmx ( ) const
inline

returns CMX number (0/1)==(Left/Right)==(Tau/Em)

Definition at line 86 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

86  {
87  return m_cmx;
88  }

◆ cpm()

int LVL1::CMXCPTob::cpm ( ) const
inline

returns CPM number

Definition at line 91 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

91  {
92  return m_cpm;
93  }

◆ crate()

int LVL1::CMXCPTob::crate ( ) const
inline

Data accessors.

returns crate number

Definition at line 81 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

81  {
82  return m_crate;
83  }

◆ energy()

int LVL1::CMXCPTob::energy ( ) const
inline

For triggered time slice.

returns energy for peak sample

Definition at line 106 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

106  {
107  return m_energy[m_peak];
108  }

◆ energyVec()

const std::vector< int > & LVL1::CMXCPTob::energyVec ( ) const
inline

For multi-slice readout.

returns energy

Definition at line 126 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

126  {
127  return m_energy;
128  }

◆ error()

int LVL1::CMXCPTob::error ( ) const
inline

returns error for peak sample

Definition at line 116 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

116  {
117  return m_error[m_peak];
118  }

◆ errorVec()

const std::vector< int > & LVL1::CMXCPTob::errorVec ( ) const
inline

returns error

Definition at line 136 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

136  {
137  return m_error;
138  }

◆ isolation()

int LVL1::CMXCPTob::isolation ( ) const
inline

returns isolation for peak sample

Definition at line 111 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

111  {
112  return m_isolation[m_peak];
113  }

◆ isolationVec()

const std::vector< int > & LVL1::CMXCPTob::isolationVec ( ) const
inline

returns isolation

Definition at line 131 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

131  {
132  return m_isolation;
133  }

◆ location()

int LVL1::CMXCPTob::location ( ) const
inline

returns location (3 or 2 bits?)

Definition at line 101 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

101  {
102  return m_location;
103  }

◆ peak()

int LVL1::CMXCPTob::peak ( ) const
inline

returns peak slice number

Definition at line 162 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

162  {
163  return m_peak;
164  }

◆ presenceMap()

unsigned int LVL1::CMXCPTob::presenceMap ( ) const
inline

returns presence map for peak sample

Definition at line 121 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

121  {
122  return m_presenceMap[m_peak];
123  }

◆ presenceMapVec()

const std::vector< unsigned int > & LVL1::CMXCPTob::presenceMapVec ( ) const
inline

returns presence maps

Definition at line 141 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

141  {
142  return m_presenceMap;
143  }

◆ setPeak()

void LVL1::CMXCPTob::setPeak ( int  peak)
inline

For multi-slice readout, need to indicate position of triggered BC.

Specify peak slice

Definition at line 157 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

157  {
158  m_peak = peak;
159  }

Member Data Documentation

◆ m_chip

int LVL1::CMXCPTob::m_chip
private

◆ m_cmx

int LVL1::CMXCPTob::m_cmx
private

◆ m_cpm

int LVL1::CMXCPTob::m_cpm
private

◆ m_crate

int LVL1::CMXCPTob::m_crate
private

Internal data.

Definition at line 67 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h.

◆ m_energy

std::vector<int> LVL1::CMXCPTob::m_energy
private

◆ m_error

std::vector<int> LVL1::CMXCPTob::m_error
private

◆ m_isolation

std::vector<int> LVL1::CMXCPTob::m_isolation
private

◆ m_location

int LVL1::CMXCPTob::m_location
private

◆ m_peak

int LVL1::CMXCPTob::m_peak
private

◆ m_presenceMap

std::vector<unsigned int> LVL1::CMXCPTob::m_presenceMap
private

The documentation for this class was generated from the following files:
LVL1::CMXCPTob::cmx
int cmx() const
returns CMX number (0/1)==(Left/Right)==(Tau/Em)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:86
LVL1::CMXCPTob::m_error
std::vector< int > m_error
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:75
LVL1::CMXCPTob::m_presenceMap
std::vector< unsigned int > m_presenceMap
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:76
LVL1::CMXCPTob::m_cmx
int m_cmx
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:68
LVL1::CMXCPTob::isolation
int isolation() const
returns isolation for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:111
LVL1::CMXCPTob::m_isolation
std::vector< int > m_isolation
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:74
LVL1::CMXCPTob::energy
int energy() const
For triggered time slice.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:106
LVL1::CMXCPTob::m_location
int m_location
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:71
LVL1::CMXCPTob::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:67
LVL1::CMXCPTob::error
int error() const
returns error for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:116
LVL1::CMXCPTob::m_energy
std::vector< int > m_energy
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:73
LVL1::CMXCPTob::m_cpm
int m_cpm
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:69
LVL1::CMXCPTob::chip
int chip() const
returns chip number (3 or 4 bits?)
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:96
LVL1::CMXCPTob::crate
int crate() const
Data accessors.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:81
LVL1::CMXCPTob::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:72
LVL1::CMXCPTob::peak
int peak() const
returns peak slice number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:162
LVL1::CMXCPTob::cpm
int cpm() const
returns CPM number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:91
LVL1::CMXCPTob::presenceMap
unsigned int presenceMap() const
returns presence map for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:121
LVL1::CMXCPTob::m_chip
int m_chip
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXCPTob.h:70
error
Definition: IImpactPoint3dEstimator.h:70