ATLAS Offline Software
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //* *
6 //* *
7 //***************************************************************************/
8 
9  #ifndef CMXEtSums_H
10  #define CMXEtSums_H
11 
12  #include "AthenaKernel/CLASS_DEF.h"
13 
14 
15  #include <iostream>
16  #ifndef TRIGGERSPACE
18  #else
19  #include "Coordinate.h"
20  #endif
21  namespace LVL1 {
22 
27  class CMXEtSums {
28  public:
29 
36 
38  CMXEtSums();
39  CMXEtSums(int crate, int source);
40  CMXEtSums(int crate, int source,
41  const std::vector<unsigned int>& Et,
42  const std::vector<unsigned int>& Ex,
43  const std::vector<unsigned int>& Ey,
44  const std::vector<int>& EtError,
45  const std::vector<int>& ExError,
46  const std::vector<int>& EyError,
47  int peak);
48 
49  virtual ~CMXEtSums();
50 
52  void setPeak(int peak);
54  void addEt(const std::vector<unsigned int>& Et,
55  const std::vector<int>& EtError);
56  void addEx(const std::vector<unsigned int>& Ex,
57  const std::vector<int>& ExError);
58  void addEy(const std::vector<unsigned int>& Ey,
59  const std::vector<int>& EyError);
60 
62  int crate() const;
63  int source() const;
65  unsigned int Et() const;
66  unsigned int Ex() const;
67  unsigned int Ey() const;
68  int EtError() const;
69  int ExError() const;
70  int EyError() const;
72  const std::vector<unsigned int>& EtVec() const;
73  const std::vector<unsigned int>& ExVec() const;
74  const std::vector<unsigned int>& EyVec() const;
75  const std::vector<int>& EtErrorVec() const;
76  const std::vector<int>& ExErrorVec() const;
77  const std::vector<int>& EyErrorVec() const;
78  int peak() const;
79 
81  private:
82  int m_crate;
83  int m_source;
84  int m_peak;
85  std::vector <unsigned int> m_Et;
86  std::vector <unsigned int> m_Ex;
87  std::vector <unsigned int> m_Ey;
88  std::vector <int> m_EtError;
89  std::vector <int> m_ExError;
90  std::vector <int> m_EyError;
91 
92  };
93 
95  inline int CMXEtSums::crate() const{
96  return m_crate;
97  }
98 
100  inline int CMXEtSums::source() const{
101  return m_source;
102  }
103 
105  inline unsigned int CMXEtSums::Et() const{
106  return m_Et[m_peak];
107  }
108 
110  inline unsigned int CMXEtSums::Ex() const{
111  return m_Ex[m_peak];
112  }
113 
115  inline unsigned int CMXEtSums::Ey() const{
116  return m_Ey[m_peak];
117  }
118 
120  inline int CMXEtSums::EtError() const{
121  return m_EtError[m_peak];
122  }
123 
125  inline int CMXEtSums::ExError() const{
126  return m_ExError[m_peak];
127  }
128 
130  inline int CMXEtSums::EyError() const{
131  return m_EyError[m_peak];
132  }
133 
135  inline const std::vector<unsigned int>& CMXEtSums::EtVec() const{
136  return m_Et;
137  }
138 
140  inline const std::vector<unsigned int>& CMXEtSums::ExVec() const{
141  return m_Ex;
142  }
143 
145  inline const std::vector<unsigned int>& CMXEtSums::EyVec() const{
146  return m_Ey;
147  }
148 
150  inline const std::vector<int>& CMXEtSums::EtErrorVec() const{
151  return m_EtError;
152  }
153 
155  inline const std::vector<int>& CMXEtSums::ExErrorVec() const{
156  return m_ExError;
157  }
158 
160  inline const std::vector<int>& CMXEtSums::EyErrorVec() const{
161  return m_EyError;
162  }
163 
165  inline void CMXEtSums::addEt(const std::vector<unsigned int>& Et,
166  const std::vector<int>& EtError) {
167  m_Et = Et;
168  m_EtError = EtError;
169  }
170 
172  inline void CMXEtSums::addEx(const std::vector<unsigned int>& Ex,
173  const std::vector<int>& ExError) {
174  m_Ex = Ex;
175  m_ExError = ExError;
176  }
177 
179  inline void CMXEtSums::addEy(const std::vector<unsigned int>& Ey,
180  const std::vector<int>& EyError) {
181  m_Ey = Ey;
182  m_EyError = EyError;
183  }
184 
186  inline void CMXEtSums::setPeak(int peak) {
187  m_peak = peak;
188  }
189 
191  inline int CMXEtSums::peak() const{
192  return m_peak;
193  }
194 
195  } // end of namespace
196 
197 #ifndef CMXEtSums_ClassDEF_H
199 #endif
200 
201 #endif
202 
203 
LVL1::CMXEtSums::ExVec
const std::vector< unsigned int > & ExVec() const
returns module Ex sum
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:140
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::addEy
void addEy(const std::vector< unsigned int > &Ey, const std::vector< int > &EyError)
Update Ey sum.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:179
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
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
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::ExErrorVec
const std::vector< int > & ExErrorVec() const
returns module Ex errors
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:155
LVL1::CMXEtSums::EtErrorVec
const std::vector< int > & EtErrorVec() const
returns module ET errors
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:150
LVL1::CMXEtSums::EtVec
const std::vector< unsigned int > & EtVec() const
Access multi-slice data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:135
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
Coordinate.h
Coordinate policies.
LVL1::CMXEtSums::m_Et
std::vector< unsigned int > m_Et
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:85
LVL1::CMXEtSums::~CMXEtSums
virtual ~CMXEtSums()
Definition: CMXEtSums.cxx:29
Coordinate.h
LVL1::CMXEtSums::setPeak
void setPeak(int peak)
In multi-slice readout must specify which slice is triggered BC.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:186
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::EyErrorVec
const std::vector< int > & EyErrorVec() const
returns module Ey errors
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:160
LVL1::CMXEtSums::m_crate
int m_crate
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:82
LVL1::CMXEtSums
CMXEtSums object stores Et sums from the Energy CMXs.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:27
LVL1::CMXEtSums::EtError
int EtError() const
returns module ET sum error for peak sample
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:120
CMXEtSums_ClassDEF.h
LVL1::CMXEtSums::EyVec
const std::vector< unsigned int > & EyVec() const
returns module Ey sum
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:145
LVL1::CMXEtSums::addEt
void addEt(const std::vector< unsigned int > &Et, const std::vector< int > &EtError)
Add data to existing objects.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:165
LVL1::CMXEtSums::MISSING_ET_RESTRICTED
@ MISSING_ET_RESTRICTED
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:34
LVL1::CMXEtSums::addEx
void addEx(const std::vector< unsigned int > &Ex, const std::vector< int > &ExError)
Update Ex sum.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:172
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
CLASS_DEF.h
macros to associate a CLID to a type
LVL1::CMXEtSums::CMXEtSums
CMXEtSums()
Constructors.
Definition: CMXEtSums.cxx:16
LVL1::CMXEtSums::Sources
Sources
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CMXEtSums.h:30
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