ATLAS Offline Software
NSWTPRDO_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // Local include(s):
7 namespace {
8  static const std::string preFixStr {"NSWTP_"};
9 }
10 #define IMPLEMENT_VECTOR(DATA_TYPE, VAR_NAME) \
11  const std::vector<DATA_TYPE>& NSWTPRDO_v1::VAR_NAME() const { \
12  static const SG::AuxElement::Accessor<std::vector<DATA_TYPE>> dec{preFixStr+#VAR_NAME};\
13  return dec (*this); \
14  } \
15  std::vector<DATA_TYPE>& NSWTPRDO_v1::VAR_NAME() { \
16  static const SG::AuxElement::Accessor<std::vector<DATA_TYPE>> dec{preFixStr+#VAR_NAME};\
17  return dec(*this); \
18  }
19 
20 #define IMPLEMENT_SCALAR(DATA_TYPE, VAR_NAME) \
21  DATA_TYPE NSWTPRDO_v1::VAR_NAME() const { \
22  static const SG::AuxElement::Accessor<DATA_TYPE> dec{preFixStr+#VAR_NAME};\
23  return dec (*this); \
24  } \
25  void NSWTPRDO_v1::set_##VAR_NAME(const DATA_TYPE val) { \
26  static const SG::AuxElement::Accessor<DATA_TYPE> dec{preFixStr+#VAR_NAME}; \
27  dec (*this) = val; \
28  }
29 namespace xAOD{
30  IMPLEMENT_VECTOR(uint16_t, pad_coincidence_wedge)
31  IMPLEMENT_VECTOR(uint8_t , pad_candidateNumber)
32  IMPLEMENT_VECTOR(uint8_t , pad_phiID)
33  IMPLEMENT_VECTOR(uint8_t , pad_bandID)
34  IMPLEMENT_VECTOR(uint16_t, pad_BCID)
35  IMPLEMENT_VECTOR(uint8_t , pad_idleFlag)
36  IMPLEMENT_VECTOR(uint32_t, merge_LUT_choiceSelection)
37  IMPLEMENT_VECTOR(uint16_t, merge_nsw_segmentSelector)
38  IMPLEMENT_VECTOR(uint16_t, merge_valid_segmentSelector)
39  IMPLEMENT_VECTOR(uint32_t, merge_segments)
40  IMPLEMENT_VECTOR(uint16_t, merge_BCID_sectorID)
41  IMPLEMENT_VECTOR(uint8_t , merge_candidateNumber)
42 
43  IMPLEMENT_SCALAR(uint16_t, moduleID)
44  IMPLEMENT_SCALAR(uint32_t, ROD_L1ID)
45  IMPLEMENT_SCALAR(uint8_t, sectID)
46 
50  IMPLEMENT_SCALAR(uint16_t, window_open_bcid)
51  IMPLEMENT_SCALAR(uint16_t, l1a_request_bcid)
52  IMPLEMENT_SCALAR(uint16_t, window_close_bcid)
53  IMPLEMENT_SCALAR(uint16_t, config_window_open_bcid_offset)
54  IMPLEMENT_SCALAR(uint16_t, config_l1a_request_bcid_offset)
55  IMPLEMENT_SCALAR(uint16_t, config_window_close_bcid_offset)
56 
57 const std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_mm_segments() const {
58  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_mm_segments"};
59  return dec(*this);
60 }
61 
62 std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_mm_segments() {
63  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_mm_segments"};
64  return dec(*this);
65 }
66 
67 const std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_mm_candidateNumber() const {
68  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_mm_candidateNumber"};
69  return dec(*this);
70 }
71 
72 std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_mm_candidateNumber() {
73  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_mm_candidateNumber"};
74  return dec(*this);
75 }
76 
77 const std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_mm_BCID() const {
78  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_mm_BCID"};
79  return dec(*this);
80 }
81 
82 std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_mm_BCID() {
83  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_mm_BCID"};
84  return dec(*this);
85 }
86 
87 const std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_strip_bands_bandID() const {
88  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_bands_bandID"};
89  return dec(*this);
90 }
91 
92 std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_strip_bands_bandID() {
93  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_bands_bandID"};
94  return dec(*this);
95 }
96 
97 const std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_strip_bands_phiID() const {
98  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_bands_phiID"};
99  return dec(*this);
100 }
101 
102 std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_strip_bands_phiID() {
103  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_bands_phiID"};
104  return dec(*this);
105 }
106 
107 const std::vector<uint16_t>& NSWTPRDO_v1::NSWTP_strip_bands_BCID() const {
108  static const SG::AuxElement::Accessor<std::vector<uint16_t>> dec{"NSWTP_strip_bands_BCID"};
109  return dec(*this);
110 }
111 
112 std::vector<uint16_t>& NSWTPRDO_v1::NSWTP_strip_bands_BCID() {
113  static const SG::AuxElement::Accessor<std::vector<uint16_t>> dec{"NSWTP_strip_bands_BCID"};
114  return dec(*this);
115 }
116 
117 const std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_strip_bands_HLbit() const {
118  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_bands_HLbit"};
119  return dec(*this);
120 }
121 
122 std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_strip_bands_HLbit() {
123  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_bands_HLbit"};
124  return dec(*this);
125 }
126 
127 const std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_strip_bands_layer() const {
128  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_bands_layer"};
129  return dec(*this);
130 }
131 
132 std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_strip_bands_layer() {
133  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_bands_layer"};
134  return dec(*this);
135 }
136 
137 const std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_strip_bands_charge() const {
138  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_bands_charge"};
139  return dec(*this);
140 }
141 
142 std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_strip_bands_charge() {
143  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_bands_charge"};
144  return dec(*this);
145 }
146 
147 const std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_strip_BBbit() const {
148  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_BBbit"};
149  return dec(*this);
150 }
151 
152 std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_strip_BBbit() {
153  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_BBbit"};
154  return dec(*this);
155 }
156 
157 const std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_strip_centroids_bandID() const {
158  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_centroids_bandID"};
159  return dec(*this);
160 }
161 
163  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_centroids_bandID"};
164  return dec(*this);
165 }
166 
167 const std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_strip_centroids_phiID() const {
168  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_centroids_phiID"};
169  return dec(*this);
170 }
171 
173  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_centroids_phiID"};
174  return dec(*this);
175 }
176 
177 const std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_strip_centroids_layer() const {
178  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_centroids_layer"};
179  return dec(*this);
180 }
181 
183  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_centroids_layer"};
184  return dec(*this);
185 }
186 
187 const std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_strip_centroids_offset() const {
188  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_centroids_offset"};
189  return dec(*this);
190 }
191 
193  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_centroids_offset"};
194  return dec(*this);
195 }
196 
197 const std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_strip_centroids_loc() const {
198  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_centroids_loc"};
199  return dec(*this);
200 }
201 
202 std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_strip_centroids_loc() {
203  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_centroids_loc"};
204  return dec(*this);
205 }
206 
207 const std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_strip_segments_bandID() const {
208  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_segments_bandID"};
209  return dec(*this);
210 }
211 
213  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_segments_bandID"};
214  return dec(*this);
215 }
216 
217 const std::vector<uint8_t>& NSWTPRDO_v1::NSWTP_strip_segments_phiID() const {
218  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_segments_phiID"};
219  return dec(*this);
220 }
221 
223  static const SG::AuxElement::Accessor<std::vector<uint8_t>> dec{"NSWTP_strip_segments_phiID"};
224  return dec(*this);
225 }
226 
227 const std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_strip_segments_rA() const {
228  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_segments_rA"};
229  return dec(*this);
230 }
231 
232 std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_strip_segments_rA() {
233  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_segments_rA"};
234  return dec(*this);
235 }
236 
237 const std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_strip_segments_rB() const {
238  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_segments_rB"};
239  return dec(*this);
240 }
241 
242 std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_strip_segments_rB() {
243  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_segments_rB"};
244  return dec(*this);
245 }
246 
247 const std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_strip_segment() const {
248  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_segment"};
249  return dec(*this);
250 }
251 
252 std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_strip_segment() {
253  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_segment"};
254  return dec(*this);
255 }
256 
257 const std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_strip_segments_BCID() const {
258  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_segments_BCID"};
259  return dec(*this);
260 }
261 
262 std::vector<uint32_t>& NSWTPRDO_v1::NSWTP_strip_segments_BCID() {
263  static const SG::AuxElement::Accessor<std::vector<uint32_t>> dec{"NSWTP_strip_segments_BCID"};
264  return dec(*this);
265 }
266 
267 
268 }
269 
270 #undef IMPLEMENT_VECTOR
271 #undef IMPLEMENT_SCALAR
xAOD::NSWTPRDO_v1::NSWTP_strip_segments_rB
const std::vector< uint32_t > & NSWTP_strip_segments_rB() const
Definition: NSWTPRDO_v1.cxx:237
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
xAOD::NSWTPRDO_v1::NSWTP_mm_BCID
const std::vector< uint32_t > & NSWTP_mm_BCID() const
Definition: NSWTPRDO_v1.cxx:77
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
IMPLEMENT_SCALAR
#define IMPLEMENT_SCALAR(DATA_TYPE, VAR_NAME)
Definition: NSWTPRDO_v1.cxx:20
xAOD::NSWTPRDO_v1::NSWTP_strip_bands_charge
const std::vector< uint8_t > & NSWTP_strip_bands_charge() const
Definition: NSWTPRDO_v1.cxx:137
xAOD::NSWTPRDO_v1::NSWTP_strip_bands_HLbit
const std::vector< uint8_t > & NSWTP_strip_bands_HLbit() const
Definition: NSWTPRDO_v1.cxx:117
xAOD::NSWTPRDO_v1::NSWTP_strip_segments_rA
const std::vector< uint32_t > & NSWTP_strip_segments_rA() const
Definition: NSWTPRDO_v1.cxx:227
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
xAOD::NSWTPRDO_v1::NSWTP_strip_BBbit
const std::vector< uint8_t > & NSWTP_strip_BBbit() const
Definition: NSWTPRDO_v1.cxx:147
xAOD::NSWTPRDO_v1::NSWTP_strip_segment
const std::vector< uint32_t > & NSWTP_strip_segment() const
Definition: NSWTPRDO_v1.cxx:247
PixelByteStreamErrors::BCID
@ BCID
Definition: PixelByteStreamErrors.h:13
xAOD::NSWTPRDO_v1::NSWTP_strip_segments_bandID
const std::vector< uint8_t > & NSWTP_strip_segments_bandID() const
Definition: NSWTPRDO_v1.cxx:207
xAOD::NSWTPRDO_v1::NSWTP_strip_centroids_phiID
const std::vector< uint32_t > & NSWTP_strip_centroids_phiID() const
Definition: NSWTPRDO_v1.cxx:167
xAOD::NSWTPRDO_v1::NSWTP_mm_candidateNumber
const std::vector< uint8_t > & NSWTP_mm_candidateNumber() const
Definition: NSWTPRDO_v1.cxx:67
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:93
xAOD::NSWTPRDO_v1::NSWTP_mm_segments
const std::vector< uint32_t > & NSWTP_mm_segments() const
Encode the Monitoring, Spare, lowRes, phiRes, dTheta, phiID, rIndex information of each candidate.
Definition: NSWTPRDO_v1.cxx:57
vector
Definition: MultiHisto.h:13
NSWTPRDO_v1.h
xAOD::NSWTPRDO_v1::NSWTP_strip_bands_layer
const std::vector< uint8_t > & NSWTP_strip_bands_layer() const
Definition: NSWTPRDO_v1.cxx:127
xAOD::NSWTPRDO_v1::NSWTP_strip_centroids_loc
const std::vector< uint32_t > & NSWTP_strip_centroids_loc() const
Definition: NSWTPRDO_v1.cxx:197
xAOD::NSWTPRDO_v1
Definition: NSWTPRDO_v1.h:22
xAOD::NSWTPRDO_v1::NSWTP_strip_segments_phiID
const std::vector< uint8_t > & NSWTP_strip_segments_phiID() const
Definition: NSWTPRDO_v1.cxx:217
xAOD::NSWTPRDO_v1::NSWTP_strip_segments_BCID
const std::vector< uint32_t > & NSWTP_strip_segments_BCID() const
Definition: NSWTPRDO_v1.cxx:257
xAOD::NSWTPRDO_v1::NSWTP_strip_bands_phiID
const std::vector< uint8_t > & NSWTP_strip_bands_phiID() const
Definition: NSWTPRDO_v1.cxx:97
xAOD::NSWTPRDO_v1::NSWTP_strip_centroids_layer
const std::vector< uint32_t > & NSWTP_strip_centroids_layer() const
Definition: NSWTPRDO_v1.cxx:177
xAOD::NSWTPRDO_v1::NSWTP_strip_bands_bandID
const std::vector< uint8_t > & NSWTP_strip_bands_bandID() const
Definition: NSWTPRDO_v1.cxx:87
IMPLEMENT_VECTOR
#define IMPLEMENT_VECTOR(DATA_TYPE, VAR_NAME)
Definition: NSWTPRDO_v1.cxx:10
TRT_PAI_gasdata::EC
const float EC[NC]
Energy levels for Carbon.
Definition: TRT_PAI_gasdata.h:241
xAOD::NSWTPRDO_v1::NSWTP_strip_bands_BCID
const std::vector< uint16_t > & NSWTP_strip_bands_BCID() const
Definition: NSWTPRDO_v1.cxx:107
xAOD::NSWTPRDO_v1::NSWTP_strip_centroids_bandID
const std::vector< uint32_t > & NSWTP_strip_centroids_bandID() const
Definition: NSWTPRDO_v1.cxx:157
xAOD::NSWTPRDO_v1::NSWTP_strip_centroids_offset
const std::vector< uint32_t > & NSWTP_strip_centroids_offset() const
Definition: NSWTPRDO_v1.cxx:187