ATLAS Offline Software
Loading...
Searching...
No Matches
TgcL1RawData.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6#include "GaudiKernel/MsgStream.h"
7
9 uint16_t subDetectorId,
10 uint16_t rodId,
11 uint16_t sswId,
12 uint16_t slbId,
13 uint16_t l1Id,
14 uint16_t bcId)
15{
16 m_bcTag = bcTag;
18 m_rodId = rodId;
19 m_sswId = sswId;
20 m_slbId = slbId;
21 m_l1Id = l1Id;
22 m_bcId = bcId;
24 m_bitpos = 0;
25 m_tracklet = 0;
26 m_adjacent = false;
28 m_forward = false;
29 m_index = 0;
30 m_pos = 0;
31 m_delta = 0;
32 m_inner = 0;
33 m_segment = 0;
34 m_subMatrix = 0;
35 m_sector = 0;
36 m_chip = 0;
37 m_hipt = false;
38 m_hitId = 0;
39 m_hsub = 0;
40 m_strip = false;
41 m_cand3plus = false;
42 m_muplus = false;
43 m_threshold = 0;
44 m_overlap = false;
45 m_veto = false;
46 m_roi = 0;
47}
48
50 uint16_t subDetectorId,
51 uint16_t srodId,
52 uint16_t l1Id,
53 uint16_t bcId)
54{
55 m_bcTag = bcTag;
58 m_l1Id = l1Id;
59 m_bcId = bcId;
60 m_bitpos = 0;
61 m_tracklet = 0;
62 m_adjacent = false;
64 m_forward = false;
65 m_index = 0;
66 m_pos = 0;
67 m_delta = 0;
68 m_inner = 0;
69 m_segment = 0;
70 m_subMatrix = 0;
71 m_sector = 0;
72 m_chip = 0;
73 m_hipt = false;
74 m_hitId = 0;
75 m_hsub = 0;
76 m_strip = false;
77 m_cand3plus = false;
78 m_muplus = false;
79 m_threshold = 0;
80 m_overlap = false;
81 m_veto = false;
82 m_roi = 0;
83}
84
85// Constructor for Trigger Coincidence
87 uint16_t subDetectorId,
88 uint16_t srodId,
89 uint16_t l1Id,
90 uint16_t bcId,
91 uint16_t type,
92 uint16_t index,
93 uint16_t pos,
94 int16_t delta)
95{
98 m_index = index;
99 m_pos = pos;
100 m_delta = delta;
101}
102
103// Tracklets ( ROD ) *** For output from TrigT1TGC ***
105 uint16_t subDetectorId,
106 uint16_t rodId,
107 uint16_t sswId,
108 uint16_t slbId,
109 uint16_t l1Id,
110 uint16_t bcId,
111 SlbType slbType,
112 int16_t delta,
113 uint16_t seg,
114 uint16_t sub,
115 uint16_t rphi)
116{
119 m_slbType = slbType;
120 m_delta = delta;
121 m_segment = seg;
122 m_subMatrix = sub;
123 m_pos = rphi;
124}
125
126// High pT
128 uint16_t subDetectorId,
129 uint16_t srodId,
130 uint16_t l1Id,
131 uint16_t bcId,
132 bool strip,
133 bool forward,
134 uint16_t sector,
135 uint16_t chip,
136 uint16_t index,
137 bool hipt,
138 uint16_t hitId,
139 uint16_t sub,
140 int16_t delta,
141 uint16_t inner
142 )
143{
146 m_strip = strip;
147 m_forward = forward;
149 m_chip = chip;
150 m_index = index;
151 m_hipt = hipt;
152 m_hitId = hitId;
153 m_hsub = sub;
154 m_delta = delta;
155 m_inner = inner;
156}
157
158// New Sector logic
159// RoI
161 uint16_t subDetectorId,
162 uint16_t srodId,
163 uint16_t l1Id,
164 uint16_t bcId,
165 bool forward,
166 uint16_t sector,
167 uint16_t innerflag,
168 uint16_t coinflag,
169 bool muplus,
170 uint16_t threshold,
171 uint16_t roi)
172{
175 m_forward = forward;
177 m_innerflag = innerflag;
178 m_coinflag = coinflag;
179 m_muplus = muplus;
181 m_roi = roi;
182}
183
184// NSW
186 uint16_t subDetectorId,
187 uint16_t srodId,
188 uint16_t l1Id,
189 uint16_t bcId,
190 bool forward,
191 uint16_t sector,
192 uint16_t nsweta,
193 uint16_t nswphi,
194 uint16_t nswcand,
195 uint16_t nswdtheta,
196 uint16_t nswphires,
197 uint16_t nswlowres,
198 uint16_t nswid)
199{
202 m_forward = forward;
204 m_nsweta = nsweta;
205 m_nswphi = nswphi;
206 m_nswcand = nswcand;
207 m_nswdtheta = nswdtheta;
208 m_nswphires = nswphires;
209 m_nswlowres = nswlowres;
210 m_nswid = nswid;
211}
212
213// RPC BIS78
215 uint16_t subDetectorId,
216 uint16_t srodId,
217 uint16_t l1Id,
218 uint16_t bcId,
219 bool forward,
220 uint16_t sector,
221 uint16_t rpceta,
222 uint16_t rpcphi,
223 uint16_t rpcflag,
224 uint16_t rpcdeta,
225 uint16_t rpcdphi)
226{
229 m_forward = forward;
231 m_rpceta = rpceta;
232 m_rpcphi = rpcphi;
233 m_rpcflag = rpcflag;
234 m_rpcdeta = rpcdeta;
235 m_rpcdphi = rpcdphi;
236}
237
238// EIFI
240 uint16_t subDetectorId,
241 uint16_t srodId,
242 uint16_t l1Id,
243 uint16_t bcId,
244 bool forward,
245 uint16_t sector,
246 uint16_t ei,
247 uint16_t fi,
248 uint16_t cid)
249{
252 m_forward = forward;
254 m_ei = ei;
255 m_fi = fi;
256 m_cid = cid;
257}
258
259// TMDB
261 uint16_t subDetectorId,
262 uint16_t srodId,
263 uint16_t l1Id,
264 uint16_t bcId,
265 bool forward,
266 uint16_t sector,
267 uint16_t mod,
268 uint16_t bcid)
269{
272 m_forward = forward;
274 m_tmdbmod = mod;
275 m_tmdbbcid = bcid;
276}
277
278
280{
281 switch (type)
282 {
283 case 3: m_type = TYPE_HIPT; break;
284 case 5: m_type = TYPE_NSL_ROI; break;
285 case 6: m_type = TYPE_NSL_NSW; break;
286 case 7: m_type = TYPE_NSL_RPC; break;
287 case 8: m_type = TYPE_NSL_EIFI; break;
288 case 9: m_type = TYPE_NSL_TMDB; break;
289 default: m_type = TYPE_UNKNOWN; break;
290 }
291}
292
294{
295 switch (type)
296 {
297 case TYPE_HIPT: return "High pT"; break;
298 case TYPE_NSL_ROI: return "TGC RoI"; break;
299 default: return "";
300 }
301}
302
303template <class stream>
304stream& dump(stream& sl, const TgcL1RawData& data)
305{
306 sl << "TgcL1RawData " << data.typeName()
307 << ", bcTag=" << data.bcTag()
308 << ", l1Id=" << data.l1Id()
309 << ", bcId=" << data.bcId()
310 << ", subDetectorId=" << data.subDetectorId()
311 << ", srodId=" << data.srodId();
312 switch (data.type())
313 {
315 sl << ", strip=" << data.isStrip()
316 << ", forward=" << data.isForward()
317 << ", sector=" << data.sector()
318 << ", chip=" << data.chip()
319 << ", cand=" << data.index()
320 << ", hipt=" << data.isHipt()
321 << ", hitId=" << data.hitId()
322 << ", hsub=" << data.hsub()
323 << ", delta=" << data.delta()
324 << ", inner=" << data.inner();
325 break;
327 sl
328 << ", forward=" << data.isForward()
329 << ", sector=" << data.sector()
330 << ", sign=" << data.isMuplus()
331 << ", threshold=" << data.threshold()
332 << ", overlap=" << data.isOverlap()
333 << ", veto=" << data.isVeto()
334 << ", roi=" << data.roi();
335 break;
336 default:
337 break;
338 }
339 return sl;
340}
341
342MsgStream& operator<<(MsgStream& sl, const TgcL1RawData& data)
343{
344 return dump(sl, data);
345}
346
347std::ostream& operator<<(std::ostream& sl, const TgcL1RawData& data)
348{
349 return dump(sl, data);
350}
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
MsgStream & operator<<(MsgStream &sl, const TgcL1RawData &data)
Overload of << operator for MsgStream for debug output.
An unit object of TGC SROD output.
DataType m_type
uint16_t m_bitpos
uint16_t m_slbId
uint16_t chip() const
uint16_t m_srodId
uint16_t m_subMatrix
uint16_t bcId() const
uint16_t m_rodId
void clear(uint16_t bcTag, uint16_t subDetectorId, uint16_t srodId, uint16_t l1Id, uint16_t bcId)
uint16_t m_nswphires
uint16_t m_bcId
uint16_t m_tmdbmod
uint16_t m_threshold
uint16_t m_rpcdphi
uint16_t m_nswdtheta
uint16_t subDetectorId() const
uint16_t m_roi
uint16_t m_l1Id
uint16_t m_tmdbbcid
void setType(uint16_t type)
uint16_t hitId() const
uint16_t m_rpcdeta
uint16_t m_ei
uint16_t srodId() const
uint16_t m_pos
uint16_t m_nswid
int16_t delta() const
std::string typeName() const
uint16_t m_inner
uint16_t roi() const
uint16_t m_nswcand
uint16_t sector() const
uint16_t m_rpceta
uint16_t inner() const
uint16_t m_hsub
uint16_t m_nswlowres
uint16_t bcTag() const
uint16_t m_subDetectorId
uint16_t m_sswId
uint16_t sswId() const
uint16_t m_cid
uint16_t m_index
uint16_t m_nswphi
uint16_t m_nsweta
int16_t m_delta
uint16_t m_tracklet
uint16_t m_innerflag
uint16_t slbId() const
uint16_t m_coinflag
uint16_t m_rpcflag
uint16_t l1Id() const
uint16_t threshold() const
DataType type() const
uint16_t m_fi
uint16_t m_sector
uint16_t rodId() const
uint16_t m_chip
SlbType m_slbType
uint16_t m_bcTag
uint16_t m_segment
uint16_t m_rpcphi
uint16_t m_hitId
bool hipt
Definition globals.cxx:29
-event-from-file
Definition index.py:1