ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Types | Public Member Functions | Private Attributes | List of all members
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. More...
 
 CMXEtSums (int crate, int source)
 constructs a CMXEtSums object, specifying crate, and data ID. More...
 
 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 More...
 
void setPeak (int peak)
 In multi-slice readout must specify which slice is triggered BC. More...
 
void addEt (const std::vector< unsigned int > &Et, const std::vector< int > &EtError)
 Add data to existing objects. More...
 
void addEx (const std::vector< unsigned int > &Ex, const std::vector< int > &ExError)
 Update Ex sum. More...
 
void addEy (const std::vector< unsigned int > &Ey, const std::vector< int > &EyError)
 Update Ey sum. More...
 
int crate () const
 Data accessors. More...
 
int source () const
 returns data source More...
 
unsigned int Et () const
 For triggered time slice. More...
 
unsigned int Ex () const
 returns module Ex sum for peak sample More...
 
unsigned int Ey () const
 returns module Ey sum for peak sample More...
 
int EtError () const
 returns module ET sum error for peak sample More...
 
int ExError () const
 returns module Ex sum error for peak sample More...
 
int EyError () const
 returns module Ey sum error for peak sample More...
 
const std::vector< unsigned int > & EtVec () const
 Access multi-slice data. More...
 
const std::vector< unsigned int > & ExVec () const
 returns module Ex sum More...
 
const std::vector< unsigned int > & EyVec () const
 returns module Ey sum More...
 
const std::vector< int > & EtErrorVec () const
 returns module ET errors More...
 
const std::vector< int > & ExErrorVec () const
 returns module Ex errors More...
 
const std::vector< int > & EyErrorVec () const
 returns module Ey errors More...
 
int peak () const
 returns peak slice number More...
 

Private Attributes

int m_crate {}
 Internal data. More...
 
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.

19  :
20  m_crate(crate),
22 {
23 }

◆ 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  :
34  m_crate(crate),
36  m_peak(peak),
37  m_Et(Et),
38  m_Ex(Ex),
39  m_Ey(Ey),
43 {
44 }

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;
166  m_EtError = EtError;
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;
173  m_ExError = ExError;
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;
180  m_EyError = EyError;
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.

◆ 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:
LVL1::CMXEtSums::Ey
unsigned int Ey() const
returns module Ey sum for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:113
LVL1::CMXEtSums::m_source
int m_source
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:81
LVL1::CMXEtSums::source
int source() const
returns data source
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:98
LVL1::CMXEtSums::LOCAL_RESTRICTED
@ LOCAL_RESTRICTED
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:30
LVL1::CMXEtSums::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:82
LVL1::CMXEtSums::SUM_ET_RESTRICTED
@ SUM_ET_RESTRICTED
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:32
LVL1::CMXEtSums::m_EtError
std::vector< int > m_EtError
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:86
LVL1::CMXEtSums::peak
int peak() const
returns peak slice number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:189
LVL1::CMXEtSums::EyError
int EyError() const
returns module Ey sum error for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:128
LVL1::CMXEtSums::m_ExError
std::vector< int > m_ExError
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:87
LVL1::CMXEtSums::m_Ey
std::vector< unsigned int > m_Ey
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:85
LVL1::CMXEtSums::Et
unsigned int Et() const
For triggered time slice.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:103
LVL1::CMXEtSums::REMOTE_RESTRICTED
@ REMOTE_RESTRICTED
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:29
LVL1::CMXEtSums::m_EyError
std::vector< int > m_EyError
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:88
LVL1::CMXEtSums::m_Ex
std::vector< unsigned int > m_Ex
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:84
LVL1::CMXEtSums::TOTAL_RESTRICTED
@ TOTAL_RESTRICTED
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:31
LVL1::CMXEtSums::Ex
unsigned int Ex() const
returns module Ex sum for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:108
LVL1::CMXEtSums::SUM_ET_STANDARD
@ SUM_ET_STANDARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:32
LVL1::CMXEtSums::TOTAL_STANDARD
@ TOTAL_STANDARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:31
LVL1::CMXEtSums::ExError
int ExError() const
returns module Ex sum error for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:123
LVL1::CMXEtSums::m_Et
std::vector< unsigned int > m_Et
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:83
LVL1::CMXEtSums::MISSING_ET_SIG_STANDARD
@ MISSING_ET_SIG_STANDARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:34
LVL1::CMXEtSums::LOCAL_STANDARD
@ LOCAL_STANDARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:30
LVL1::CMXEtSums::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:80
LVL1::CMXEtSums::EtError
int EtError() const
returns module ET sum error for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:118
LVL1::CMXEtSums::MISSING_ET_RESTRICTED
@ MISSING_ET_RESTRICTED
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:33
LVL1::CMXEtSums::crate
int crate() const
Data accessors.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:93
LVL1::CMXEtSums::MAX_SOURCE
@ MAX_SOURCE
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:34
LVL1::CMXEtSums::MISSING_ET_STANDARD
@ MISSING_ET_STANDARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:33
LVL1::CMXEtSums::REMOTE_STANDARD
@ REMOTE_STANDARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:29