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

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

#include <CMXJetTob.h>

Collaboration diagram for LVL1::CMXJetTob:

Public Member Functions

 CMXJetTob ()
 Constructors. More...
 
 CMXJetTob (int crate, int jem, int frame, int loc)
 constructs a CMXJetTob object, specifying crate, jem etc. More...
 
 CMXJetTob (int crate, int jem, int frame, int loc, const std::vector< int > &energyLarge, const std::vector< int > &energySmall, const std::vector< int > &error, const std::vector< unsigned int > &presenceMap, int peak)
 constructs a CMXJetTob object and fill all data members More...
 
virtual ~CMXJetTob ()
 
void setPeak (int peak)
 For multi-slice readout, need to indicate position of triggered BC. More...
 
void addTob (const std::vector< int > &energyLarge, const std::vector< int > &energySmall, const std::vector< int > &error, const std::vector< unsigned int > &presenceMap)
 Add data to existing object. More...
 
int crate () const
 Data accessors. More...
 
int jem () const
 returns JEM number More...
 
int frame () const
 returns frame number More...
 
int location () const
 returns location More...
 
int energyLarge () const
 For triggered time slice. More...
 
int energySmall () const
 returns energy small window 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 > & energyLgVec () const
 For multi-slice readout. More...
 
const std::vector< int > & energySmVec () const
 returns energy small window 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_jem
 
int m_frame
 
int m_location
 
int m_peak
 
std::vector< int > m_energyLarge
 
std::vector< int > m_energySmall
 
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 JEP CMX readout data.

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

Constructor & Destructor Documentation

◆ CMXJetTob() [1/3]

LVL1::CMXJetTob::CMXJetTob ( )

Constructors.

Definition at line 16 of file CMXJetTob.cxx.

16  :
17  m_crate(0),
18  m_jem(0),
19  m_frame(0),
20  m_location(0),
21  m_peak(0),
22  m_energyLarge(1),
23  m_energySmall(1),
24  m_error(1),
25  m_presenceMap(1)
26 {
27 }

◆ CMXJetTob() [2/3]

LVL1::CMXJetTob::CMXJetTob ( int  crate,
int  jem,
int  frame,
int  loc 
)

constructs a CMXJetTob object, specifying crate, jem etc.

Definition at line 33 of file CMXJetTob.cxx.

33  :
34  m_crate(crate),
35  m_jem(jem),
36  m_frame(frame),
37  m_location(loc),
38  m_peak(0),
39  m_energyLarge(1),
40  m_energySmall(1),
41  m_error(1),
42  m_presenceMap(1)
43 {
44 }

◆ CMXJetTob() [3/3]

LVL1::CMXJetTob::CMXJetTob ( int  crate,
int  jem,
int  frame,
int  loc,
const std::vector< int > &  energyLarge,
const std::vector< int > &  energySmall,
const std::vector< int > &  error,
const std::vector< unsigned int > &  presenceMap,
int  peak 
)

constructs a CMXJetTob object and fill all data members

Definition at line 47 of file CMXJetTob.cxx.

52  :
53  m_crate(crate),
54  m_jem(jem),
55  m_frame(frame),
56  m_location(loc),
57  m_peak(peak),
60  m_error(error),
62 {
63 }

◆ ~CMXJetTob()

LVL1::CMXJetTob::~CMXJetTob ( )
virtual

Definition at line 29 of file CMXJetTob.cxx.

29  {
30 }

Member Function Documentation

◆ addTob()

void LVL1::CMXJetTob::addTob ( const std::vector< int > &  energyLarge,
const std::vector< int > &  energySmall,
const std::vector< int > &  error,
const std::vector< unsigned int > &  presenceMap 
)
inline

Add data to existing object.

Set TOB.

Definition at line 139 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

142  {
145  m_error = error;
147  }

◆ crate()

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

Data accessors.

returns crate number

Definition at line 79 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

79  {
80  return m_crate;
81  }

◆ energyLarge()

int LVL1::CMXJetTob::energyLarge ( ) const
inline

For triggered time slice.

returns energy large window for peak sample

Definition at line 99 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

99  {
100  return m_energyLarge[m_peak];
101  }

◆ energyLgVec()

const std::vector< int > & LVL1::CMXJetTob::energyLgVec ( ) const
inline

For multi-slice readout.

returns energy large window

Definition at line 119 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

119  {
120  return m_energyLarge;
121  }

◆ energySmall()

int LVL1::CMXJetTob::energySmall ( ) const
inline

returns energy small window for peak sample

Definition at line 104 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

104  {
105  return m_energySmall[m_peak];
106  }

◆ energySmVec()

const std::vector< int > & LVL1::CMXJetTob::energySmVec ( ) const
inline

returns energy small window

Definition at line 124 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

124  {
125  return m_energySmall;
126  }

◆ error()

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

returns error for peak sample

Definition at line 109 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

109  {
110  return m_error[m_peak];
111  }

◆ errorVec()

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

returns error

Definition at line 129 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

129  {
130  return m_error;
131  }

◆ frame()

int LVL1::CMXJetTob::frame ( ) const
inline

returns frame number

Definition at line 89 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

89  {
90  return m_frame;
91  }

◆ jem()

int LVL1::CMXJetTob::jem ( ) const
inline

returns JEM number

Definition at line 84 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

84  {
85  return m_jem;
86  }

◆ location()

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

returns location

Definition at line 94 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

94  {
95  return m_location;
96  }

◆ peak()

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

returns peak slice number

Definition at line 155 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

155  {
156  return m_peak;
157  }

◆ presenceMap()

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

returns presence map for peak sample

Definition at line 114 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

114  {
115  return m_presenceMap[m_peak];
116  }

◆ presenceMapVec()

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

returns presence maps

Definition at line 134 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

134  {
135  return m_presenceMap;
136  }

◆ setPeak()

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

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

Specify peak slice

Definition at line 150 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

150  {
151  m_peak = peak;
152  }

Member Data Documentation

◆ m_crate

int LVL1::CMXJetTob::m_crate
private

Internal data.

Definition at line 66 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

◆ m_energyLarge

std::vector<int> LVL1::CMXJetTob::m_energyLarge
private

◆ m_energySmall

std::vector<int> LVL1::CMXJetTob::m_energySmall
private

◆ m_error

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

◆ m_frame

int LVL1::CMXJetTob::m_frame
private

◆ m_jem

int LVL1::CMXJetTob::m_jem
private

◆ m_location

int LVL1::CMXJetTob::m_location
private

◆ m_peak

int LVL1::CMXJetTob::m_peak
private

◆ m_presenceMap

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

The documentation for this class was generated from the following files:
LVL1::CMXJetTob::peak
int peak() const
returns peak slice number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:155
LVL1::CMXJetTob::m_energyLarge
std::vector< int > m_energyLarge
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:71
LVL1::CMXJetTob::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:70
LVL1::CMXJetTob::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:66
LVL1::CMXJetTob::m_presenceMap
std::vector< unsigned int > m_presenceMap
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:74
LVL1::CMXJetTob::m_energySmall
std::vector< int > m_energySmall
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:72
LVL1::CMXJetTob::m_frame
int m_frame
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:68
LVL1::CMXJetTob::m_error
std::vector< int > m_error
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:73
LVL1::CMXJetTob::frame
int frame() const
returns frame number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:89
LVL1::CMXJetTob::energySmall
int energySmall() const
returns energy small window for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:104
LVL1::CMXJetTob::jem
int jem() const
returns JEM number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:84
LVL1::CMXJetTob::crate
int crate() const
Data accessors.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:79
LVL1::CMXJetTob::energyLarge
int energyLarge() const
For triggered time slice.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:99
LVL1::CMXJetTob::error
int error() const
returns error for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:109
LVL1::CMXJetTob::m_location
int m_location
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:69
error
Definition: IImpactPoint3dEstimator.h:70
LVL1::CMXJetTob::m_jem
int m_jem
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:67
LVL1::CMXJetTob::presenceMap
unsigned int presenceMap() const
returns presence map for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h:114