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

CMMEtSums object stores Et sums from the Energy CMMs. More...

#include <CMMEtSums.h>

Collaboration diagram for LVL1::CMMEtSums:

Public Types

enum  DataIDs {
  REMOTE = 16, LOCAL, TOTAL, MISSING_ET_MAP,
  SUM_ET_MAP, MISSING_ET_SIG_MAP, MAXID
}
 

Public Member Functions

 CMMEtSums ()
 Constructors. More...
 
 CMMEtSums (int crate, int dataID)
 constructs a CMMEtSums object, specifying crate, and data ID. More...
 
 CMMEtSums (int crate, int dataID, 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 CMMEtSums object and fill all data members More...
 
virtual ~CMMEtSums ()
 
void setPeak (int peak)
 In multi-slice readout must specify which slide 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 dataID () const
 returns data ID 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_dataID
 
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

CMMEtSums object stores Et sums from the Energy CMMs.

Used in unpacking and analysis of CMM readout data.

Definition at line 33 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h.

Member Enumeration Documentation

◆ DataIDs

Enumerator
REMOTE 
LOCAL 
TOTAL 
MISSING_ET_MAP 
SUM_ET_MAP 
MISSING_ET_SIG_MAP 
MAXID 

Definition at line 36 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h.

Constructor & Destructor Documentation

◆ CMMEtSums() [1/3]

LVL1::CMMEtSums::CMMEtSums ( )

Constructors.

Definition at line 27 of file CMMEtSums.cxx.

32 {
33 }
34 
36 }
37 

◆ CMMEtSums() [2/3]

LVL1::CMMEtSums::CMMEtSums ( int  crate,
int  dataID 
)

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

Definition at line 44 of file CMMEtSums.cxx.

49 {
50 }
51 
54  const std::vector<unsigned int>& Et,
55  const std::vector<unsigned int>& Ex,

◆ CMMEtSums() [3/3]

LVL1::CMMEtSums::CMMEtSums ( int  crate,
int  dataID,
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 CMMEtSums object and fill all data members

Definition at line 58 of file CMMEtSums.cxx.

60  :
61  m_crate(crate),
63  m_peak(peak),
64  m_Et(Et),
65  m_Ex(Ex),
66  m_Ey(Ey),
70 {
71 }
72 
73 
75 int CMMEtSums::crate() const{
76  return m_crate;

◆ ~CMMEtSums()

LVL1::CMMEtSums::~CMMEtSums ( )
virtual

Definition at line 40 of file CMMEtSums.cxx.

49 {

Member Function Documentation

◆ addEt()

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

Add data to existing objects.

Update ET sum.

Definition at line 150 of file CMMEtSums.cxx.

153  {
154  m_Ex = Ex;

◆ addEx()

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

Update Ex sum.

Definition at line 157 of file CMMEtSums.cxx.

160  {
161  m_Ey = Ey;

◆ addEy()

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

Update Ey sum.

Definition at line 164 of file CMMEtSums.cxx.

166  {
167  m_peak = peak;
168 }

◆ crate()

int LVL1::CMMEtSums::crate ( ) const

Data accessors.

returns crate number

Definition at line 80 of file CMMEtSums.cxx.

80  {
81  return m_dataID;
82 }

◆ dataID()

int LVL1::CMMEtSums::dataID ( ) const

returns data ID

Definition at line 85 of file CMMEtSums.cxx.

85  {
86  return m_Et[m_peak];
87 }

◆ Et()

unsigned int LVL1::CMMEtSums::Et ( ) const

For triggered time slice.

returns module ET sum for peak sample

Definition at line 90 of file CMMEtSums.cxx.

90  {
91  return m_Ex[m_peak];
92 }

◆ EtError()

int LVL1::CMMEtSums::EtError ( ) const

returns module ET sum error for peak sample

Definition at line 105 of file CMMEtSums.cxx.

105  {
106  return m_ExError[m_peak];
107 }

◆ EtErrorVec()

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

returns module ET errors

Definition at line 135 of file CMMEtSums.cxx.

135  {
136  return m_ExError;
137 }

◆ EtVec()

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

Access multi-slice data.

returns module ET sum

Definition at line 120 of file CMMEtSums.cxx.

120  {
121  return m_Ex;
122 }

◆ Ex()

unsigned int LVL1::CMMEtSums::Ex ( ) const

returns module Ex sum for peak sample

Definition at line 95 of file CMMEtSums.cxx.

95  {
96  return m_Ey[m_peak];
97 }

◆ ExError()

int LVL1::CMMEtSums::ExError ( ) const

returns module Ex sum error for peak sample

Definition at line 110 of file CMMEtSums.cxx.

110  {
111  return m_EyError[m_peak];
112 }

◆ ExErrorVec()

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

returns module Ex errors

Definition at line 140 of file CMMEtSums.cxx.

140  {
141  return m_EyError;
142 }

◆ ExVec()

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

returns module Ex sum

Definition at line 125 of file CMMEtSums.cxx.

125  {
126  return m_Ey;
127 }

◆ Ey()

unsigned int LVL1::CMMEtSums::Ey ( ) const

returns module Ey sum for peak sample

Definition at line 100 of file CMMEtSums.cxx.

100  {
101  return m_EtError[m_peak];
102 }

◆ EyError()

int LVL1::CMMEtSums::EyError ( ) const

returns module Ey sum error for peak sample

Definition at line 115 of file CMMEtSums.cxx.

115  {
116  return m_Et;
117 }

◆ EyErrorVec()

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

returns module Ey errors

Definition at line 145 of file CMMEtSums.cxx.

146  {
147  m_Et = Et;

◆ EyVec()

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

returns module Ey sum

Definition at line 130 of file CMMEtSums.cxx.

130  {
131  return m_EtError;
132 }

◆ peak()

int LVL1::CMMEtSums::peak ( ) const

returns peak slice number

Definition at line 176 of file CMMEtSums.cxx.

◆ setPeak()

void LVL1::CMMEtSums::setPeak ( int  peak)

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

Specify peak slice (Same for all vectors)

Definition at line 171 of file CMMEtSums.cxx.

171  {
172  return m_peak;
173 }

Member Data Documentation

◆ m_crate

int LVL1::CMMEtSums::m_crate
private

Internal data.

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

◆ m_dataID

int LVL1::CMMEtSums::m_dataID
private

◆ m_Et

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

◆ m_EtError

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

◆ m_Ex

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

◆ m_ExError

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

◆ m_Ey

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

◆ m_EyError

std::vector<int> LVL1::CMMEtSums::m_EyError
private

◆ m_peak

int LVL1::CMMEtSums::m_peak
private

The documentation for this class was generated from the following files:
LVL1::CMMEtSums::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:84
LVL1::CMMEtSums::m_EyError
std::vector< int > m_EyError
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:92
LVL1::CMMEtSums::CMMEtSums
CMMEtSums()
Constructors.
Definition: CMMEtSums.cxx:27
LVL1::CMMEtSums::SUM_ET_MAP
@ SUM_ET_MAP
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:37
LVL1::CMMEtSums::m_EtError
std::vector< int > m_EtError
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:90
LVL1::CMMEtSums::LOCAL
@ LOCAL
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:36
LVL1::CMMEtSums::m_Ex
std::vector< unsigned int > m_Ex
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:88
LVL1::CMMEtSums::Et
unsigned int Et() const
For triggered time slice.
Definition: CMMEtSums.cxx:90
LVL1::CMMEtSums::REMOTE
@ REMOTE
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:36
LVL1::CMMEtSums::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:86
LVL1::CMMEtSums::m_Ey
std::vector< unsigned int > m_Ey
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:89
LVL1::CMMEtSums::dataID
int dataID() const
returns data ID
Definition: CMMEtSums.cxx:85
LVL1::CMMEtSums::MAXID
@ MAXID
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:37
LVL1::CMMEtSums::Ex
unsigned int Ex() const
returns module Ex sum for peak sample
Definition: CMMEtSums.cxx:95
LVL1::CMMEtSums::EyError
int EyError() const
returns module Ey sum error for peak sample
Definition: CMMEtSums.cxx:115
LVL1::CMMEtSums::Ey
unsigned int Ey() const
returns module Ey sum for peak sample
Definition: CMMEtSums.cxx:100
LVL1::CMMEtSums::EtError
int EtError() const
returns module ET sum error for peak sample
Definition: CMMEtSums.cxx:105
LVL1::CMMEtSums::m_Et
std::vector< unsigned int > m_Et
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:87
LVL1::CMMEtSums::ExError
int ExError() const
returns module Ex sum error for peak sample
Definition: CMMEtSums.cxx:110
LVL1::CMMEtSums::m_dataID
int m_dataID
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:85
LVL1::CMMEtSums::~CMMEtSums
virtual ~CMMEtSums()
Definition: CMMEtSums.cxx:40
LVL1::CMMEtSums::crate
int crate() const
Data accessors.
Definition: CMMEtSums.cxx:80
LVL1::CMMEtSums::m_ExError
std::vector< int > m_ExError
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:91
LVL1::CMMEtSums::MISSING_ET_SIG_MAP
@ MISSING_ET_SIG_MAP
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:37
LVL1::CMMEtSums::MISSING_ET_MAP
@ MISSING_ET_MAP
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:37
LVL1::CMMEtSums::peak
int peak() const
returns peak slice number
Definition: CMMEtSums.cxx:176
LVL1::CMMEtSums::TOTAL
@ TOTAL
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:36