ATLAS Offline Software
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 ()
 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...
 
virtual ~CMXEtSums ()
 
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
 
std::vector< unsigned int > m_Ex
 
std::vector< unsigned int > m_Ey
 
std::vector< int > m_EtError
 
std::vector< int > m_ExError
 
std::vector< int > m_EyError
 

Detailed Description

CMXEtSums object stores Et sums from the Energy CMXs.

Used in unpacking and analysis of CMX readout data.

Definition at line 27 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 30 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h.

Constructor & Destructor Documentation

◆ CMXEtSums() [1/3]

LVL1::CMXEtSums::CMXEtSums ( )

Constructors.

Definition at line 16 of file CMXEtSums.cxx.

16  :
17  m_crate(0),
18  m_source(0),
19  m_peak(0),
20  m_Et(1),
21  m_Ex(1),
22  m_Ey(1),
23  m_EtError(1),
24  m_ExError(1),
25  m_EyError(1)
26 {
27 }

◆ CMXEtSums() [2/3]

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

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

Definition at line 33 of file CMXEtSums.cxx.

33  :
34  m_crate(crate),
36  m_peak(0),
37  m_Et(1),
38  m_Ex(1),
39  m_Ey(1),
40  m_EtError(1),
41  m_ExError(1),
42  m_EyError(1)
43 {
44 }

◆ 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 47 of file CMXEtSums.cxx.

54  :
55  m_crate(crate),
57  m_peak(peak),
58  m_Et(Et),
59  m_Ex(Ex),
60  m_Ey(Ey),
64 {
65 }

◆ ~CMXEtSums()

LVL1::CMXEtSums::~CMXEtSums ( )
virtual

Definition at line 29 of file CMXEtSums.cxx.

29  {
30 }

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

166  {
167  m_Et = Et;
168  m_EtError = EtError;
169  }

◆ addEx()

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

Update Ex sum.

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

173  {
174  m_Ex = Ex;
175  m_ExError = ExError;
176  }

◆ addEy()

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

Update Ey sum.

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

180  {
181  m_Ey = Ey;
182  m_EyError = EyError;
183  }

◆ crate()

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

Data accessors.

returns crate number

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

95  {
96  return m_crate;
97  }

◆ Et()

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

For triggered time slice.

returns module ET sum for peak sample

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

105  {
106  return m_Et[m_peak];
107  }

◆ EtError()

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

returns module ET sum error for peak sample

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

120  {
121  return m_EtError[m_peak];
122  }

◆ EtErrorVec()

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

returns module ET errors

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

150  {
151  return m_EtError;
152  }

◆ EtVec()

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

Access multi-slice data.

returns module ET sum

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

135  {
136  return m_Et;
137  }

◆ Ex()

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

returns module Ex sum for peak sample

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

110  {
111  return m_Ex[m_peak];
112  }

◆ ExError()

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

returns module Ex sum error for peak sample

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

125  {
126  return m_ExError[m_peak];
127  }

◆ ExErrorVec()

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

returns module Ex errors

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

155  {
156  return m_ExError;
157  }

◆ ExVec()

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

returns module Ex sum

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

140  {
141  return m_Ex;
142  }

◆ Ey()

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

returns module Ey sum for peak sample

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

115  {
116  return m_Ey[m_peak];
117  }

◆ EyError()

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

returns module Ey sum error for peak sample

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

130  {
131  return m_EyError[m_peak];
132  }

◆ EyErrorVec()

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

returns module Ey errors

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

160  {
161  return m_EyError;
162  }

◆ EyVec()

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

returns module Ey sum

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

145  {
146  return m_Ey;
147  }

◆ peak()

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

returns peak slice number

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

191  {
192  return m_peak;
193  }

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

186  {
187  m_peak = peak;
188  }

◆ source()

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

returns data source

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

100  {
101  return m_source;
102  }

Member Data Documentation

◆ m_crate

int LVL1::CMXEtSums::m_crate
private

Internal data.

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

◆ m_Et

std::vector<unsigned int> LVL1::CMXEtSums::m_Et
private

◆ m_EtError

std::vector<int> LVL1::CMXEtSums::m_EtError
private

◆ m_Ex

std::vector<unsigned int> LVL1::CMXEtSums::m_Ex
private

◆ m_ExError

std::vector<int> LVL1::CMXEtSums::m_ExError
private

◆ m_Ey

std::vector<unsigned int> LVL1::CMXEtSums::m_Ey
private

◆ m_EyError

std::vector<int> LVL1::CMXEtSums::m_EyError
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:115
LVL1::CMXEtSums::m_source
int m_source
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:83
LVL1::CMXEtSums::source
int source() const
returns data source
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:100
LVL1::CMXEtSums::LOCAL_RESTRICTED
@ LOCAL_RESTRICTED
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:31
LVL1::CMXEtSums::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:84
LVL1::CMXEtSums::SUM_ET_RESTRICTED
@ SUM_ET_RESTRICTED
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:33
LVL1::CMXEtSums::m_EtError
std::vector< int > m_EtError
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:88
LVL1::CMXEtSums::peak
int peak() const
returns peak slice number
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:191
LVL1::CMXEtSums::EyError
int EyError() const
returns module Ey sum error for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:130
LVL1::CMXEtSums::m_ExError
std::vector< int > m_ExError
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:89
LVL1::CMXEtSums::m_Ey
std::vector< unsigned int > m_Ey
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:87
LVL1::CMXEtSums::Et
unsigned int Et() const
For triggered time slice.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:105
LVL1::CMXEtSums::REMOTE_RESTRICTED
@ REMOTE_RESTRICTED
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:30
LVL1::CMXEtSums::m_EyError
std::vector< int > m_EyError
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:90
LVL1::CMXEtSums::m_Ex
std::vector< unsigned int > m_Ex
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:86
LVL1::CMXEtSums::TOTAL_RESTRICTED
@ TOTAL_RESTRICTED
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:32
LVL1::CMXEtSums::Ex
unsigned int Ex() const
returns module Ex sum for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:110
LVL1::CMXEtSums::SUM_ET_STANDARD
@ SUM_ET_STANDARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:33
LVL1::CMXEtSums::TOTAL_STANDARD
@ TOTAL_STANDARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:32
LVL1::CMXEtSums::ExError
int ExError() const
returns module Ex sum error for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:125
LVL1::CMXEtSums::m_Et
std::vector< unsigned int > m_Et
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:85
LVL1::CMXEtSums::MISSING_ET_SIG_STANDARD
@ MISSING_ET_SIG_STANDARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:35
LVL1::CMXEtSums::LOCAL_STANDARD
@ LOCAL_STANDARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:31
LVL1::CMXEtSums::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:82
LVL1::CMXEtSums::EtError
int EtError() const
returns module ET sum error for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:120
LVL1::CMXEtSums::MISSING_ET_RESTRICTED
@ MISSING_ET_RESTRICTED
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:34
LVL1::CMXEtSums::crate
int crate() const
Data accessors.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:95
LVL1::CMXEtSums::MAX_SOURCE
@ MAX_SOURCE
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:35
LVL1::CMXEtSums::MISSING_ET_STANDARD
@ MISSING_ET_STANDARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:34
LVL1::CMXEtSums::REMOTE_STANDARD
@ REMOTE_STANDARD
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:30