ATLAS Offline Software
CMMEtSums.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 /***************************************************************************
5  CMMEtSums.cpp - description
6  -------------------
7  begin : 25 05 2006
8  email : Alan.Watson@cern.ch
9  ***************************************************************************/
10 
11 
12 
13 
14 #ifndef TRIGGERSPACE
16 #else
17 #include "CMMEtSums.h"
18 #endif
19 
20 namespace LVL1 {
21 
23  m_crate(0),
24  m_dataID(0),
25  m_peak(0),
26  m_Et(1),
27  m_Ex(1),
28  m_Ey(1),
29  m_EtError(1),
30  m_ExError(1),
31  m_EyError(1)
32 {
33 }
34 
36 }
37 
39 CMMEtSums::CMMEtSums(int crate, int dataID):
40  m_crate(crate),
41  m_dataID(dataID),
42  m_peak(0),
43  m_Et(1),
44  m_Ex(1),
45  m_Ey(1),
46  m_EtError(1),
47  m_ExError(1),
48  m_EyError(1)
49 {
50 }
51 
53 CMMEtSums::CMMEtSums(int crate, int dataID,
54  const std::vector<unsigned int>& Et,
55  const std::vector<unsigned int>& Ex,
56  const std::vector<unsigned int>& Ey,
57  const std::vector<int>& EtError,
58  const std::vector<int>& ExError,
59  const std::vector<int>& EyError,
60  int peak):
61  m_crate(crate),
62  m_dataID(dataID),
63  m_peak(peak),
64  m_Et(Et),
65  m_Ex(Ex),
66  m_Ey(Ey),
67  m_EtError(EtError),
68  m_ExError(ExError),
69  m_EyError(EyError)
70 {
71 }
72 
73 
75 int CMMEtSums::crate() const{
76  return m_crate;
77 }
78 
80 int CMMEtSums::dataID() const{
81  return m_dataID;
82 }
83 
85 unsigned int CMMEtSums::Et() const{
86  return m_Et[m_peak];
87 }
88 
90 unsigned int CMMEtSums::Ex() const{
91  return m_Ex[m_peak];
92 }
93 
95 unsigned int CMMEtSums::Ey() const{
96  return m_Ey[m_peak];
97 }
98 
100 int CMMEtSums::EtError() const{
101  return m_EtError[m_peak];
102 }
103 
105 int CMMEtSums::ExError() const{
106  return m_ExError[m_peak];
107 }
108 
110 int CMMEtSums::EyError() const{
111  return m_EyError[m_peak];
112 }
113 
115 const std::vector<unsigned int>& CMMEtSums::EtVec() const{
116  return m_Et;
117 }
118 
120 const std::vector<unsigned int>& CMMEtSums::ExVec() const{
121  return m_Ex;
122 }
123 
125 const std::vector<unsigned int>& CMMEtSums::EyVec() const{
126  return m_Ey;
127 }
128 
130 const std::vector<int>& CMMEtSums::EtErrorVec() const{
131  return m_EtError;
132 }
133 
135 const std::vector<int>& CMMEtSums::ExErrorVec() const{
136  return m_ExError;
137 }
138 
140 const std::vector<int>& CMMEtSums::EyErrorVec() const{
141  return m_EyError;
142 }
143 
145 void CMMEtSums::addEt(const std::vector<unsigned int>& Et,
146  const std::vector<int>& EtError) {
147  m_Et = Et;
148  m_EtError = EtError;
149 }
150 
152 void CMMEtSums::addEx(const std::vector<unsigned int>& Ex,
153  const std::vector<int>& ExError) {
154  m_Ex = Ex;
155  m_ExError = ExError;
156 }
157 
159 void CMMEtSums::addEy(const std::vector<unsigned int>& Ey,
160  const std::vector<int>& EyError) {
161  m_Ey = Ey;
162  m_EyError = EyError;
163 }
164 
166 void CMMEtSums::setPeak(int peak) {
167  m_peak = peak;
168 }
169 
171 int CMMEtSums::peak() const{
172  return m_peak;
173 }
174 
175 } // end of namespace bracket
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::m_EtError
std::vector< int > m_EtError
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:90
LVL1::CMMEtSums::m_Ex
std::vector< unsigned int > m_Ex
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMMEtSums.h:88
LVL1::CMMEtSums::ExErrorVec
const std::vector< int > & ExErrorVec() const
returns module Ex errors
Definition: CMMEtSums.cxx:140
LVL1::CMMEtSums::Et
unsigned int Et() const
For triggered time slice.
Definition: CMMEtSums.cxx:90
LVL1::CMMEtSums::EyErrorVec
const std::vector< int > & EyErrorVec() const
returns module Ey errors
Definition: CMMEtSums.cxx:145
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
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::setPeak
void setPeak(int peak)
In multi-slice readout must specify which slide is triggered BC.
Definition: CMMEtSums.cxx:171
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::addEt
void addEt(const std::vector< unsigned int > &Et, const std::vector< int > &EtError)
Add data to existing objects.
Definition: CMMEtSums.cxx:150
LVL1::CMMEtSums::EtError
int EtError() const
returns module ET sum error for peak sample
Definition: CMMEtSums.cxx:105
LVL1::CMMEtSums::EyVec
const std::vector< unsigned int > & EyVec() const
returns module Ey sum
Definition: CMMEtSums.cxx:130
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::EtVec
const std::vector< unsigned int > & EtVec() const
Access multi-slice data.
Definition: CMMEtSums.cxx:120
LVL1::CMMEtSums::addEy
void addEy(const std::vector< unsigned int > &Ey, const std::vector< int > &EyError)
Update Ey sum.
Definition: CMMEtSums.cxx:164
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
CMMEtSums.h
LVL1::CMMEtSums::addEx
void addEx(const std::vector< unsigned int > &Ex, const std::vector< int > &ExError)
Update Ex sum.
Definition: CMMEtSums.cxx:157
LVL1::CMMEtSums::peak
int peak() const
returns peak slice number
Definition: CMMEtSums.cxx:176
LVL1::CMMEtSums::EtErrorVec
const std::vector< int > & EtErrorVec() const
returns module ET errors
Definition: CMMEtSums.cxx:135
LVL1::CMMEtSums::ExVec
const std::vector< unsigned int > & ExVec() const
returns module Ex sum
Definition: CMMEtSums.cxx:125