ATLAS Offline Software
Loading...
Searching...
No Matches
LVL1::CMXJetTob Class Reference

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

#include <CMXJetTob.h>

Collaboration diagram for LVL1::CMXJetTob:

Public Member Functions

 CMXJetTob ()=default
 Constructors.
 CMXJetTob (int crate, int jem, int frame, int loc)
 constructs a CMXJetTob object, specifying crate, jem etc.
 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
void setPeak (int peak)
 For multi-slice readout, need to indicate position of triggered BC.
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.
int crate () const
 Data accessors.
int jem () const
 returns JEM number
int frame () const
 returns frame number
int location () const
 returns location
int energyLarge () const
 For triggered time slice.
int energySmall () const
 returns energy small window for peak sample
int error () const
 returns error for peak sample
unsigned int presenceMap () const
 returns presence map for peak sample
const std::vector< int > & energyLgVec () const
 For multi-slice readout.
const std::vector< int > & energySmVec () const
 returns energy small window
const std::vector< int > & errorVec () const
 returns error
const std::vector< unsigned int > & presenceMapVec () const
 returns presence maps
int peak () const
 returns peak slice number

Private Attributes

int m_crate {}
 Internal data.
int m_jem {}
int m_frame {}
int m_location {}
int m_peak {}
std::vector< int > m_energyLarge {0}
std::vector< int > m_energySmall {0}
std::vector< int > m_error {0}
std::vector< unsigned int > m_presenceMap {0}

Detailed Description

TOB data received by the merger modules.

Used in unpacking and analysis of JEP CMX readout data.

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

Constructor & Destructor Documentation

◆ CMXJetTob() [1/3]

LVL1::CMXJetTob::CMXJetTob ( )
default

Constructors.

◆ CMXJetTob() [2/3]

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

◆ 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 27 of file CMXJetTob.cxx.

32 :
34 m_jem(jem),
36 m_location(loc),
37 m_peak(peak),
42{
43}
unsigned int presenceMap() const
returns presence map for peak sample
int error() const
returns error for peak sample
int energySmall() const
returns energy small window for peak sample

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 138 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

◆ crate()

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

Data accessors.

returns crate number

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

78 {
79 return m_crate;
80 }

◆ energyLarge()

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

For triggered time slice.

returns energy large window for peak sample

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

98 {
99 return m_energyLarge[m_peak];
100 }

◆ energyLgVec()

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

For multi-slice readout.

returns energy large window

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

118 {
119 return m_energyLarge;
120 }

◆ energySmall()

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

returns energy small window for peak sample

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

103 {
104 return m_energySmall[m_peak];
105 }

◆ energySmVec()

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

returns energy small window

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

123 {
124 return m_energySmall;
125 }

◆ error()

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

returns error for peak sample

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

108 {
109 return m_error[m_peak];
110 }

◆ errorVec()

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

returns error

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

128 {
129 return m_error;
130 }

◆ frame()

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

returns frame number

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

88 {
89 return m_frame;
90 }

◆ jem()

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

returns JEM number

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

83 {
84 return m_jem;
85 }

◆ location()

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

returns location

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

93 {
94 return m_location;
95 }

◆ peak()

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

returns peak slice number

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

154 {
155 return m_peak;
156 }

◆ presenceMap()

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

returns presence map for peak sample

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

113 {
114 return m_presenceMap[m_peak];
115 }

◆ presenceMapVec()

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

returns presence maps

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

133 {
134 return m_presenceMap;
135 }

◆ 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 149 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXJetTob.h.

149 {
150 m_peak = peak;
151 }

Member Data Documentation

◆ m_crate

int LVL1::CMXJetTob::m_crate {}
private

Internal data.

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

65{};

◆ m_energyLarge

std::vector<int> LVL1::CMXJetTob::m_energyLarge {0}
private

◆ m_energySmall

std::vector<int> LVL1::CMXJetTob::m_energySmall {0}
private

◆ m_error

std::vector<int> LVL1::CMXJetTob::m_error {0}
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 {0}
private

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