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

CMXEtSums object stores Et sums from the Energy CMXs. More...

#include <CMXEtSums.h>

Collaboration diagram for LVL1::CMXEtSums:

Public Types

enum  Sources {
  REMOTE_STANDARD = 16 , REMOTE_RESTRICTED , LOCAL_STANDARD , LOCAL_RESTRICTED ,
  TOTAL_STANDARD , TOTAL_RESTRICTED , SUM_ET_STANDARD , SUM_ET_RESTRICTED ,
  MISSING_ET_STANDARD , MISSING_ET_RESTRICTED , MISSING_ET_SIG_STANDARD , MAX_SOURCE
}

Public Member Functions

 CMXEtSums ()=default
 Constructors.
 CMXEtSums (int crate, int source)
 constructs a CMXEtSums object, specifying crate, and data ID.
 CMXEtSums (int crate, int source, const std::vector< unsigned int > &Et, const std::vector< unsigned int > &Ex, const std::vector< unsigned int > &Ey, const std::vector< int > &EtError, const std::vector< int > &ExError, const std::vector< int > &EyError, int peak)
 constructs a CMXEtSums object and fill all data members
void setPeak (int peak)
 In multi-slice readout must specify which slice is triggered BC.
void addEt (const std::vector< unsigned int > &Et, const std::vector< int > &EtError)
 Add data to existing objects.
void addEx (const std::vector< unsigned int > &Ex, const std::vector< int > &ExError)
 Update Ex sum.
void addEy (const std::vector< unsigned int > &Ey, const std::vector< int > &EyError)
 Update Ey sum.
int crate () const
 Data accessors.
int source () const
 returns data source
unsigned int Et () const
 For triggered time slice.
unsigned int Ex () const
 returns module Ex sum for peak sample
unsigned int Ey () const
 returns module Ey sum for peak sample
int EtError () const
 returns module ET sum error for peak sample
int ExError () const
 returns module Ex sum error for peak sample
int EyError () const
 returns module Ey sum error for peak sample
const std::vector< unsigned int > & EtVec () const
 Access multi-slice data.
const std::vector< unsigned int > & ExVec () const
 returns module Ex sum
const std::vector< unsigned int > & EyVec () const
 returns module Ey sum
const std::vector< int > & EtErrorVec () const
 returns module ET errors
const std::vector< int > & ExErrorVec () const
 returns module Ex errors
const std::vector< int > & EyErrorVec () const
 returns module Ey errors
int peak () const
 returns peak slice number

Private Attributes

int m_crate {}
 Internal data.
int m_source {}
int m_peak {}
std::vector< unsigned int > m_Et {0}
std::vector< unsigned int > m_Ex {0}
std::vector< unsigned int > m_Ey {0}
std::vector< int > m_EtError {0}
std::vector< int > m_ExError {0}
std::vector< int > m_EyError {0}

Detailed Description

CMXEtSums object stores Et sums from the Energy CMXs.

Used in unpacking and analysis of CMX readout data.

Definition at line 26 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h.

Member Enumeration Documentation

◆ Sources

Enumerator
REMOTE_STANDARD 
REMOTE_RESTRICTED 
LOCAL_STANDARD 
LOCAL_RESTRICTED 
TOTAL_STANDARD 
TOTAL_RESTRICTED 
SUM_ET_STANDARD 
SUM_ET_RESTRICTED 
MISSING_ET_STANDARD 
MISSING_ET_RESTRICTED 
MISSING_ET_SIG_STANDARD 
MAX_SOURCE 

Definition at line 29 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h.

Constructor & Destructor Documentation

◆ CMXEtSums() [1/3]

LVL1::CMXEtSums::CMXEtSums ( )
default

Constructors.

◆ CMXEtSums() [2/3]

LVL1::CMXEtSums::CMXEtSums ( int crate,
int source )

constructs a CMXEtSums object, specifying crate, and data ID.

Definition at line 19 of file CMXEtSums.cxx.

◆ CMXEtSums() [3/3]

LVL1::CMXEtSums::CMXEtSums ( int crate,
int source,
const std::vector< unsigned int > & Et,
const std::vector< unsigned int > & Ex,
const std::vector< unsigned int > & Ey,
const std::vector< int > & EtError,
const std::vector< int > & ExError,
const std::vector< int > & EyError,
int peak )

constructs a CMXEtSums object and fill all data members

Definition at line 26 of file CMXEtSums.cxx.

33 :
36 m_peak(peak),
37 m_Et(Et),
38 m_Ex(Ex),
39 m_Ey(Ey),
43{
44}
unsigned int Ey() const
returns module Ey sum for peak sample
unsigned int Ex() const
returns module Ex sum for peak sample
unsigned int Et() const
For triggered time slice.
int ExError() const
returns module Ex sum error for peak sample
int EyError() const
returns module Ey sum error for peak sample
int EtError() const
returns module ET sum error for peak sample

Member Function Documentation

◆ addEt()

void LVL1::CMXEtSums::addEt ( const std::vector< unsigned int > & Et,
const std::vector< int > & EtError )
inline

Add data to existing objects.

Update ET sum.

Definition at line 163 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h.

164 {
165 m_Et = Et;
167 }

◆ addEx()

void LVL1::CMXEtSums::addEx ( const std::vector< unsigned int > & Ex,
const std::vector< int > & ExError )
inline

Update Ex sum.

Definition at line 170 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h.

171 {
172 m_Ex = Ex;
174 }

◆ addEy()

void LVL1::CMXEtSums::addEy ( const std::vector< unsigned int > & Ey,
const std::vector< int > & EyError )
inline

Update Ey sum.

Definition at line 177 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h.

178 {
179 m_Ey = Ey;
181 }

◆ crate()

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

Data accessors.

returns crate number

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

93 {
94 return m_crate;
95 }

◆ Et()

unsigned int LVL1::CMXEtSums::Et ( ) const
inline

For triggered time slice.

returns module ET sum for peak sample

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

103 {
104 return m_Et[m_peak];
105 }

◆ EtError()

int LVL1::CMXEtSums::EtError ( ) const
inline

returns module ET sum error for peak sample

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

118 {
119 return m_EtError[m_peak];
120 }

◆ EtErrorVec()

const std::vector< int > & LVL1::CMXEtSums::EtErrorVec ( ) const
inline

returns module ET errors

Definition at line 148 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h.

148 {
149 return m_EtError;
150 }

◆ EtVec()

const std::vector< unsigned int > & LVL1::CMXEtSums::EtVec ( ) const
inline

Access multi-slice data.

returns module ET sum

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

133 {
134 return m_Et;
135 }

◆ Ex()

unsigned int LVL1::CMXEtSums::Ex ( ) const
inline

returns module Ex sum for peak sample

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

108 {
109 return m_Ex[m_peak];
110 }

◆ ExError()

int LVL1::CMXEtSums::ExError ( ) const
inline

returns module Ex sum error for peak sample

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

123 {
124 return m_ExError[m_peak];
125 }

◆ ExErrorVec()

const std::vector< int > & LVL1::CMXEtSums::ExErrorVec ( ) const
inline

returns module Ex errors

Definition at line 153 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h.

153 {
154 return m_ExError;
155 }

◆ ExVec()

const std::vector< unsigned int > & LVL1::CMXEtSums::ExVec ( ) const
inline

returns module Ex sum

Definition at line 138 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h.

138 {
139 return m_Ex;
140 }

◆ Ey()

unsigned int LVL1::CMXEtSums::Ey ( ) const
inline

returns module Ey sum for peak sample

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

113 {
114 return m_Ey[m_peak];
115 }

◆ EyError()

int LVL1::CMXEtSums::EyError ( ) const
inline

returns module Ey sum error for peak sample

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

128 {
129 return m_EyError[m_peak];
130 }

◆ EyErrorVec()

const std::vector< int > & LVL1::CMXEtSums::EyErrorVec ( ) const
inline

returns module Ey errors

Definition at line 158 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h.

158 {
159 return m_EyError;
160 }

◆ EyVec()

const std::vector< unsigned int > & LVL1::CMXEtSums::EyVec ( ) const
inline

returns module Ey sum

Definition at line 143 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h.

143 {
144 return m_Ey;
145 }

◆ peak()

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

returns peak slice number

Definition at line 189 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h.

189 {
190 return m_peak;
191 }

◆ setPeak()

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

In multi-slice readout must specify which slice is triggered BC.

Specify peak slice (Same for all vectors)

Definition at line 184 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h.

184 {
185 m_peak = peak;
186 }

◆ source()

int LVL1::CMXEtSums::source ( ) const
inline

returns data source

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

98 {
99 return m_source;
100 }

Member Data Documentation

◆ m_crate

int LVL1::CMXEtSums::m_crate {}
private

Internal data.

Definition at line 80 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h.

80{};

◆ m_Et

std::vector<unsigned int> LVL1::CMXEtSums::m_Et {0}
private

◆ m_EtError

std::vector<int> LVL1::CMXEtSums::m_EtError {0}
private

◆ m_Ex

std::vector<unsigned int> LVL1::CMXEtSums::m_Ex {0}
private

◆ m_ExError

std::vector<int> LVL1::CMXEtSums::m_ExError {0}
private

◆ m_Ey

std::vector<unsigned int> LVL1::CMXEtSums::m_Ey {0}
private

◆ m_EyError

std::vector<int> LVL1::CMXEtSums::m_EyError {0}
private

◆ m_peak

int LVL1::CMXEtSums::m_peak {}
private

◆ m_source

int LVL1::CMXEtSums::m_source {}
private

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