Project
Loading...
Searching...
No Matches
RawData.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#ifndef ALICEO2_TRD_RAWDATA_H
13#define ALICEO2_TRD_RAWDATA_H
14
17// this is the header added by the CRU
18
19#include <array>
20#include <map>
21#include <cstdint>
22#include <ostream>
24#include "Rtypes.h"
25
26namespace o2
27{
28namespace trd
29{
30
33// This comes at the top of the data stream for each event and 1/2cru
34
36
37 /* Half cru header
3864 bits is too wide, hence reduce to 32 to make it readable.
39 |31|30|29|28|27|26|25|24|23|22|21|20|19|18|17|16|15|14|13|12|11|10|09|08|07|06|05|04|03|02|01|00|
40 -------------------------------------------------------------------------------------------------
41Word 0 | eventtype | end point | stopbit| bunchcrossing | headerversion |
42 -------------------------------------------------------------------------------------------------
43Word 0 | reserved 1 |
44 -------------------------------------------------------------------------------------------------
45Word 1 | link 3 errorflags | link 2 errorflags | link 1 error flags | link 0 error flags |
46 -------------------------------------------------------------------------------------------------
47Word 1 | link 7 error flags | link 6 error flags | link 5 error flags | link 4 error flags |
48 -------------------------------------------------------------------------------------------------
49Word 2 | link 11 error flags | link 10 error flags | link 9 error flags | link 8 error flags |
50 -------------------------------------------------------------------------------------------------
51Word 2 | reserved 2 | link 14 error flags | link 13 error flags | link 12 error flags |
52 ------------------------------------------------------------------------------------------------
53Word 3 | reserved 3 |
54 -------------------------------------------------------------------------------------------------
55Word 3 | reserved 4 |
56 -------------------------------------------------------------------------------------------------
57Word 4 | link 1 datasize | link 0 datasize |
58 -------------------------------------------------------------------------------------------------
59Word 4 | link 3 datasize | link 2 datasize |
60 -------------------------------------------------------------------------------------------------
61Word 5 | link 5 datasize | link 4 datasize |
62 -------------------------------------------------------------------------------------------------
63Word 5 | link 7 datasize | link 6 datasize |
64 -------------------------------------------------------------------------------------------------
65Word 6 | link 9 datasize | link 8 datasize |
66 -------------------------------------------------------------------------------------------------
67Word 6 | link 11 datasize | link 10 datasize |
68 -------------------------------------------------------------------------------------------------
69Word 7 | link 13 datasize | link 12 datasize |
70 -------------------------------------------------------------------------------------------------
71Word 7 | reserved 5 | link 14 datasize |
72 -------------------------------------------------------------------------------------------------
73*/
74
75 union {
77 //first word *
78 // 6 5 4 3 2 1
79 // 3210987654321098765432109876543210987654321098765432109876543210
80 // uint64_t: 0000000000000000000000000000000000000000000000000000000000000000
81 // | | | | | |-------- 0..7 TRD Header version
82 // | | | | |-------------------- 8..19 bunch crossing
83 // | | | |------------------------ 20..23 stop bit
84 // | | |---------------------------- 24..27 end point
85 // | |-------------------------------- 28..31 event type
86 // |---------------------------------------------------------------- 32..63 reserved1
87 struct {
88 uint64_t HeaderVersion : 8; // TRD Header Version
89 uint64_t BunchCrossing : 12; // bunch crossing of the physics trigger.
90 //NB The BC in the RDH is the BC sent together with the heartbeat trigger, while the BC in the HalfCRUHeader is the BC of the physics trigger where the data that follows the HalfCRUHeader belongs to. However, it is not forbidden for CTP to send the heartbeat trigger together with a physics trigger, in this case the two would match (accidentally).
91 uint64_t StopBit : 4; // 8 .. 11 stop bit 0x1 if TRD packet is last data packet of trigger, else 0x0
92 uint64_t EndPoint : 4; // pci end point upper or lower 15 links of cru
93 uint64_t EventType : 4; // bit 0..7 event type of the data. Trigger bits from TTC-PON message, distinguish physics from calibration events.
95 } __attribute__((__packed__));
96 };
97 union {
99 // 15 8 bit error flags and 1 8 bit reserved.
100 struct {
101 struct {
103 } __attribute__((__packed__)) errorflags[15];
105 } __attribute__((__packed__));
106 };
107 union {
109 struct {
111 } __attribute__((__packed__));
112 };
113 union {
115 //15 16 bit data sizes and 1 16 bit reserved word.
116 struct {
117 struct {
119 } __attribute__((__packed__)) datasizes[15]; // although this is 8 dont use index 0 as its part of reserved.
121 } __attribute__((__packed__));
122 };
123};
124
127// Coming before all other tracklet data, a single tracklet word as a header for its half chamber
128
130 union {
131 // 10987654321098765432109876543210
132 // uint32_t: 33222222222211111111110000000000
133 // cccccccccccccccXSSSSS SSSy
134 // ffff| | |sss ||
135 // | | | | | ||-- 0 side
136 // | | | | | |--- 1-3 stack
137 // | | | | |------ 4-6 layer
138 // | | | |-------- 7-11 sector
139 // | | |------------- 12 always 1
140 // | ----------------------------- 13-27 MCM Clock counter
141 // --------------------------------- 28-31 tracklet data format number
143 struct {
144 uint32_t side : 1; // side of chamber
148 uint32_t one : 1; //always 1
149 uint32_t MCLK : 15; // MCM clock counter 120MHz ... for simulation -- incrementing, and uniform across an event
151 // 0 baseline PID 3 time slices, 7 bit each
152 // 1 DO NOT USE ! reserved for tracklet end marker disambiguation
153 // 14 Tracklet test-pattern mode
154 // 15 Reserved for testing
155 } __attribute__((__packed__));
156 };
157};
158
161// This constitutes the "4x32" bits of information from a single MCM, TrackletMCMHeader and 1-3 TrackletMCMData.
163 //first word *
164 // 10987654321098765432109876543210
165 // uint32_t: 33222222222211111111110000000000
166 // 1zzzz pppppppp pppppppp1
167 // || yy| pppppppp | |--- 0 1 check bits
168 // || | | | ----------- 1-8 pid for cpu0 second part
169 // || | | -------------------- 9-16 pid for cpu1 second part
170 // || | ---------------------------- 17-24 pid for cpu2 second part
171 // || ------------------------------ 25-26 col
172 // |---------------------------------- 27-30 padrow
173 // ----------------------------------- 31 1
174 //TODO need to check endianness, I have a vague memory the trap chip has different endianness to x86.
175 union {
177 struct {
179 uint32_t pid0 : 8; // part of pid calculated in cpu0 // 6 bits of Q2 and 2 bits of Q1
180 uint32_t pid1 : 8; // part of pid calculated in cpu1
181 uint32_t pid2 : 8; // part of pid calculated in cpu2
182 uint32_t col : 2; // 2 bits for position in pad direction.
183 uint32_t padrow : 4; // padrow,z coordinate for chip.
185 } __attribute__((__packed__));
186 };
187};
188
189// \structure TrackletMCMData.
190// \brief Raw Data of a tracklet, part is how ever in the MCM Header hence both are grouped together in the same file
191
193 union {
195 struct {
197 uint16_t slope : 8; // Deflection angle of tracklet
198 uint16_t pid : 12; // Particle Identity 6 bits of Q0 and 6 bits of Q1
199 uint16_t pos : 11; // Position of tracklet, signed 11 bits, granularity 1/80 pad widths, -12.80 to +12.80, relative to centre of pad 10
200 } __attribute__((__packed__));
201 };
202};
203
206
207struct TRDFeeID {
208 //
209 // 5432109876543210
210 // uint16_t: 0000000000000000
211 // mmmmmmmm --- supermodule 0 - 17
212 // xxx --- unused1
213 // s --- side 0=A C=1
214 // xxx --- unused 2;
215 // e --- endpoint 0=lower, 1=upper
216 union {
218 struct {
219 uint8_t endpoint : 1; // the pci end point of the cru in question
220 uint8_t unused2 : 3; // seperate so easier to read in hex dumps
221 uint8_t side : 1; // the A=0 or C=1 side of the supermodule being readout
222 uint8_t unused1 : 3; // seperate so easier to read in hex dumps
223 uint8_t supermodule : 8; // the supermodule being read out 0-17
224 } __attribute__((__packed__));
225 };
226};
227
230// TODO come back and comment the fields or make the name more expressive, and fill in the jjjjjjj
232 //
233 // 10987654321098765432109876543210
234 // uint32_t: 00000000000000000000000000000000
235 //
236 union { // section 15.6.1 in tdp
238 struct {
248 } __attribute__((__packed__));
249 };
250};
251//The next hcheaders are all optional, there can be 8, we only have 3 for now.
252//They can all be distinguished by their res.
254 // 10987654321098765432109876543210
255 // uint32_t: 00000000000000000000000000000000
256 //
257 union { //section 15.6.2 in tdp
259 struct {
265 } __attribute__((__packed__));
266 };
267};
269 // 10987654321098765432109876543210
270 // uint32_t: 00000000000000000000000000000000
271 union { //section 15.6.3 in tdp
273 struct {
282 } __attribute__((__packed__));
283 };
284};
286 // 10987654321098765432109876543210
287 // uint32_t: 00000000000000000000000000000000
288 union { //section 15.6.4 in tdp
290 struct {
292 uint32_t svnrver : 13; //readout program svn revision
293 uint32_t svnver : 13; //assember programm svn revision
294 } __attribute__((__packed__));
295 };
296};
297
299 // 10987654321098765432109876543210
300 // uint32_t: 00000000000000000000000000000000
301 union {
302 uint32_t word; //MCM header
303 struct {
304 uint32_t res : 4; // reserve 1100
308 uint32_t yearflag : 1; //< oct2007 0, else 1
309 } __attribute__((__packed__));
310 };
311};
312
313// digit mask used for the zero suppressed digit data
315 // 10987654321098765432109876543210
316 // uint32_t: 00000000000000000000000000000000
317 union {
318 uint32_t word; //MCM ADC MASK header
319 struct {
320 uint32_t j : 4; // 0xc
322 uint32_t c : 5; // ~(number of bits set in adcmask)
323 uint32_t n : 2; // 0b01
324 } __attribute__((__packed__));
325 };
326};
327
328//the odd numbering of 1 2 3 and 6 are taken from the TDP page 111 section 15.7.2, 15.7.3 15.7.4 15.7.5
330 // 10987654321098765432109876543210
331 // uint32_t: 00000000000000000000000000000000
332 // 11h41 for 2flp in data stream. before that on 14th dec was1 flp in timeframe.
333 union {
335 struct {
336 uint32_t eventcount : 6; // lower 6 bits of e counter.
344 } __attribute__((__packed__));
345 };
346};
347
349 // 10987654321098765432109876543210
350 // uint32_t: 00000000000000000000000000000000
351 union {
353 struct {
354 uint32_t eventcount : 6; // lower 6 bits of e counter.
362 } __attribute__((__packed__));
363 };
364};
366 // 10987654321098765432109876543210
367 // uint32_t: 00000000000000000000000000000000
368 union {
370 struct {
371 uint32_t eventcount : 12; //lower 12 bits of ecounter
378 } __attribute__((__packed__));
379 };
380};
382 // 10987654321098765432109876543210
383 // uint32_t: 00000000000000000000000000000000
384 // 1zzzz pppppppp pppppppp1
385 union {
386 uint32_t word; //HC header0
387 struct {
388 uint32_t eventcount; // lower 4 bits of e counter.
389 uint32_t stack : 5; // starting at 1
397 } __attribute__((__packed__));
398 };
399};
400
402 // 10987654321098765432109876543210
403 // uint32_t: 00000000000000000000000000000000
404 union {
405 // 10987654321098765432109876543210
406 // uint32_t: 00000000000000000000000000000000
408 struct {
413 } __attribute__((__packed__));
414 };
415};
416
418 // for simplicity we store two maps to have one for each direction
419 // link ID -> half-chamber ID
420 // half-chamber ID -> link ID
421
422 bool isOK() const;
423 int getHCID(int link) const { return linkIDToHCID.at(link); }
424 int getLink(int hcid) const { return hcIDToLinkID.at(hcid); }
425 void swapLinks(int linkA, int linkB);
426
427 std::map<int, int> linkIDToHCID;
428 std::map<int, int> hcIDToLinkID;
430};
431
432uint32_t setHalfCRUHeader(HalfCRUHeader& cruhead, int crurdhversion, int bunchcrossing, int stopbits, int endpoint, int eventtype, int feeid, int cruid);
436uint32_t getlinkerrorflags(const HalfCRUHeader& cruheader, std::array<uint32_t, 15>& linkerrorflags);
437uint32_t getlinkdatasizes(const HalfCRUHeader& cruheader, std::array<uint32_t, 15>& linksizes);
439void printDigitHCHeader(o2::trd::DigitHCHeader& header, uint32_t headers[3]);
440
441//functions updated/checked/new for new raw reader.
442//above methods left for cross checking what changes have occured.
443void constructTrackletHCHeader(TrackletHCHeader& header, int hcid, int chipclock, int format);
445uint32_t setHalfCRUHeaderFirstWord(HalfCRUHeader& cruhead, int crurdhversion, int bunchcrossing, int stopbits, int endpoint, int eventtype, int feeid, int cruid);
446void setHalfCRUHeaderLinkSizeAndFlags(HalfCRUHeader& cruhead, int link, int size, int errors);
448
449uint32_t getHalfCRULinkInfo(const HalfCRUHeader& cruhead, const uint32_t link, const bool data);
452void getHalfCRULinkErrorFlags(const HalfCRUHeader& cruheader, std::array<uint8_t, 15>& linkerrorflags);
453void getHalfCRULinkDataSizes(const HalfCRUHeader& cruheader, std::array<uint16_t, 15>& linksizes);
454std::ostream& operator<<(std::ostream& stream, const TrackletHCHeader& halfchamberheader);
455std::ostream& operator<<(std::ostream& stream, const TrackletMCMHeader& tracklmcmhead);
456std::ostream& operator<<(std::ostream& stream, const TrackletMCMData& trackletmcmdata);
457std::ostream& operator<<(std::ostream& stream, const DigitHCHeader& halfchamberheader);
458std::ostream& operator<<(std::ostream& stream, const DigitMCMHeader& digitmcmhead);
459std::ostream& operator<<(std::ostream& stream, const DigitMCMData& digitmcmdata);
460std::ostream& operator<<(std::ostream& stream, const DigitMCMADCMask& adcmask);
461std::ostream& operator<<(std::ostream& stream, const HalfCRUHeader& halfcru);
462
466
467void printDigitMCMData(const o2::trd::DigitMCMData& digitmcmdata);
468void printDigitMCMHeader(const o2::trd::DigitMCMHeader& digitmcmhead);
469void printDigitMCMADCMask(const o2::trd::DigitMCMADCMask& digitmcmadcmask);
470
471void printHalfCRUHeader(const o2::trd::HalfCRUHeader& halfcru);
477void incrementADCMask(DigitMCMADCMask& mask, int channel);
479void printDigitHCHeaders(o2::trd::DigitHCHeader& header, uint32_t headers[3], int index, int offset, bool good);
480void printDigitHCHeader(o2::trd::DigitHCHeader& header, uint32_t headers[3]);
481}
482}
483#endif
Global TRD definitions and constants.
unsigned short int uint16_t
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events Show standalone event Run event generator maximum time bin of continuous for triggered for automatic continuous for automatic continuous triggered uint64_t
configStandalone Reconstruction rec_tpc multiplier for the combined cluster track error during track following area in cm for the search of for z only used if decrease removal by when above this local occupancy rowx Shift of TPC revert cluster flag edge bit distance to edge exceeds this ZOffset for secondary multiple of radius max P of electron K BB bands crossing max P of electron p BB bands crossing max P of electron d BB bands crossing max P of electron t BB bands crossing min accepted dEdxMaxTPC of the track Additive extra cluster error for Y2 if edge flag set Additive extra cluster error for Y2 if single set Additive extra cluster error for Y2 if or single set Additive extra cluster error for Z2 if or single set Extra errors to add to track when crossing depending on addErrorsCECrossing Inner portion of y range in sector that is not used in searching for extrapolated track candidates factor2YS for track merging factor2K for track merging Margin in cm of Y position when rejecting edge clusters based on uncorrected track Y Max fraction of shared clusters for tracklet Except pad from cluster finding if total number of charges in a fragment is above this Except pad from cluster finding if number of consecutive charges in a fragment is above this Threshold where a timebin is considered disabling the noisy pad check for that pad Treat signal above this minimum as saturated Smoothing factor for the exponential Highly Ionising Particle tail filter Number of timebins to use for the averaging Add additional custom track errors when crossing relative as fraction of Do N fit passes in final fit of< 0:reject at max -n hits") AddOptionRTC(rejectIFCLowRadiusCluster, uint8_t, 1, "", 0, "Reject clusters that get the IFC mask error during refit") AddOptionRTC(dEdxTruncLow, uint8_t, 2, "", 0, "Low truncation threshold, fraction of 128") AddOptionRTC(dEdxTruncHigh, uint8_t, 77, "", 0, "High truncation threshold, fraction of 128") AddOptionRTC(extrapolationTracking, int8_t, 1, "", 0, "Enable Extrapolation Tracking(prolong tracks to adjacent sectors to find short segments)") AddOptionRTC(disableRefitAttachment, uint8_t, 0, "", 0, "Bitmask to disable certain attachment steps during refit(1:attachment, 2:propagation, 4:loop following, 8:mirroring)") AddOptionRTC(rejectionStrategy, uint8_t, o2::gpu::GPUSettings::RejectionStrategyA, "", 0, "Enable rejection of TPC clusters for compression(0=no, 1=strategy A, 2=strategy B)") AddOptionRTC(mergeLoopersAfterburner, uint8_t, 1, "", 0, "Run afterburner for additional looper merging") AddOptionRTC(compressionTypeMask, uint8_t, o2::gpu::GPUSettings::CompressionFull, "", 0, "TPC Compression mode bits(1=truncate charge/width LSB, 2=differences, 4=track-model)") AddOptionRTC(compressionSortOrder, uint8_t, o2::gpu::GPUSettings::SortTime, "", 0, "Sort order of TPC compression(0=time, 1=pad, 2=Z-time-pad, 3=Z-pad-time, 4=no sorting(use incoming order))") AddOptionRTC(sigBitsCharge, uint8_t, 4, "", 0, "Number of significant bits for TPC cluster charge in compression mode 1") AddOptionRTC(sigBitsWidth, uint8_t, 3, "", 0, "Number of significant bits for TPC cluster width in compression mode 1") AddOptionRTC(dropLoopers, uint8_t, 0, "", 0, "Drop looping tracks starting from second loop") AddOptionRTC(mergerInterpolateErrors, uint8_t, 1, "", 0, "Use interpolation instead of extrapolation for chi2 based cluster rejection") AddOptionRTC(mergerInterpolateRejectAlsoOnCurrentPosition, uint8_t, 1, "", 0, "When using mergerInterpolateErrors, reject based on chi2 twice computed with interpolated and current track position starting from NDF > mergerNonInterpolateRejectMinNDF Merge tracks accross the central electrode Enable PID response Add sub threshold clusters in TPC dEdx computation OR mask of TPC flags that will reject the cluster in alternative dEdx Reject edge clusters based on uncorrected track Y during track fit Increase decrease removal by when on this number of pads from the edge h trd
uint32_t adcmask
Definition RawData.h:1
uint32_t supermodule
Definition RawData.h:3
uint32_t side
Definition RawData.h:0
uint8_t endpoint
Definition RawData.h:0
uint32_t bunchcrossing
Definition RawData.h:3
GLsizeiptr size
Definition glcorearb.h:659
GLintptr offset
Definition glcorearb.h:660
GLuint GLuint stream
Definition glcorearb.h:1806
GLint GLuint mask
Definition glcorearb.h:291
GLint GLint GLsizei GLint GLenum format
Definition glcorearb.h:275
DigitMCMADCMask constructBlankADCMask()
Definition RawData.cxx:199
uint32_t getlinkerrorflag(const HalfCRUHeader &cruhead, const uint32_t link)
void printHalfCRUHeader(const o2::trd::HalfCRUHeader &halfcru)
Definition RawData.cxx:230
void printDigitMCMADCMask(const o2::trd::DigitMCMADCMask &digitmcmadcmask)
Definition RawData.cxx:343
bool sanityCheckDigitMCMHeader(const o2::trd::DigitMCMHeader &header)
Definition RawData.cxx:298
uint32_t getlinkerrorflags(const HalfCRUHeader &cruheader, std::array< uint32_t, 15 > &linkerrorflags)
int getDigitHCHeaderWordType(uint32_t word)
Definition RawData.cxx:349
uint32_t getlinkdatasize(const HalfCRUHeader &cruhead, const uint32_t link)
uint8_t getHalfCRULinkErrorFlag(const HalfCRUHeader &cruhead, const uint32_t link)
Definition RawData.cxx:115
void printDigitHCHeaders(o2::trd::DigitHCHeader &header, uint32_t headers[3], int index, int offset, bool good)
Definition RawData.cxx:367
void printTrackletMCMHeader(const o2::trd::TrackletMCMHeader &mcmhead)
Definition RawData.cxx:223
void constructTrackletHCHeader(TrackletHCHeader &header, int hcid, int chipclock, int format)
Definition RawData.cxx:170
uint16_t constructTRDFeeID(int supermodule, int side, int endpoint)
Definition RawData.cxx:187
void getHalfCRULinkErrorFlags(const HalfCRUHeader &cruheader, std::array< uint8_t, 15 > &linkerrorflags)
Definition RawData.cxx:131
uint32_t setHalfCRUHeaderFirstWord(HalfCRUHeader &cruhead, int crurdhversion, int bunchcrossing, int stopbits, int endpoint, int eventtype, int feeid, int cruid)
Definition RawData.cxx:96
bool sanityCheckTrackletHCHeader(const o2::trd::TrackletHCHeader &header)
Definition RawData.cxx:269
void clearHalfCRUHeader(o2::trd::HalfCRUHeader &halfcru)
Definition RawData.cxx:244
uint32_t getHalfCRULinkInfo(const HalfCRUHeader &cruhead, const uint32_t link, const bool data)
void printDigitMCMData(const o2::trd::DigitMCMData &digitmcmdata)
Definition RawData.cxx:338
uint32_t setHalfCRUHeaderLinkData(HalfCRUHeader &cruhead, int link, int size, int errors)
void incrementADCMask(DigitMCMADCMask &mask, int channel)
Definition RawData.cxx:323
void setHalfCRUHeaderLinkSizeAndFlags(HalfCRUHeader &cruhead, int link, int size, int errors)
Definition RawData.cxx:109
void printTrackletHCHeader(const o2::trd::TrackletHCHeader &tracklet)
Definition RawData.cxx:212
bool sanityCheckDigitMCMADCMask(const o2::trd::DigitMCMADCMask &mask)
Definition RawData.cxx:310
void getHalfCRULinkDataSizes(const HalfCRUHeader &cruheader, std::array< uint16_t, 15 > &linksizes)
Definition RawData.cxx:139
bool halfCRUHeaderSanityCheck(const o2::trd::HalfCRUHeader &header)
Definition RawData.cxx:249
uint16_t getHalfCRULinkDataSize(const HalfCRUHeader &cruhead, const uint32_t link)
Definition RawData.cxx:124
uint32_t getlinkdatasizes(const HalfCRUHeader &cruheader, std::array< uint32_t, 15 > &linksizes)
bool sanityCheckTrackletMCMHeader(const o2::trd::TrackletMCMHeader &header)
Definition RawData.cxx:286
void printDigitMCMHeader(const o2::trd::DigitMCMHeader &digitmcmhead)
Definition RawData.cxx:331
void printTrackletMCMData(const o2::trd::TrackletMCMData &tracklet)
Definition RawData.cxx:218
std::ostream & operator<<(std::ostream &stream, const Digit &d)
Definition Digit.cxx:85
uint32_t setHalfCRUHeader(HalfCRUHeader &cruhead, int crurdhversion, int bunchcrossing, int stopbits, int endpoint, int eventtype, int feeid, int cruid)
void printDigitHCHeader(o2::trd::DigitHCHeader &header, uint32_t headers[3])
Definition RawData.cxx:393
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
union o2::trd::DigitHCHeader1::@141 __attribute__
union o2::trd::DigitHCHeader2::@143 __attribute__
union o2::trd::DigitHCHeader3::@145 __attribute__
Digit version of the TrackletHCHeader above, although contents are rather different.
Definition RawData.h:231
union o2::trd::DigitHCHeader::@139 __attribute__
union o2::trd::DigitMCMADCMask::@149 __attribute__
union o2::trd::DigitMCMData::@159 __attribute__
union o2::trd::DigitMCMHeader::@147 __attribute__
Header for half a cru, each cru has 2 output, 1 for each pciid.
Definition RawData.h:35
uint64_t BunchCrossing
Definition RawData.h:89
uint64_t word12[2]
Definition RawData.h:98
uint64_t HeaderVersion
Definition RawData.h:88
uint64_t word47[4]
Definition RawData.h:114
std::map< int, int > linkIDToHCID
Definition RawData.h:427
int getHCID(int link) const
Definition RawData.h:423
void swapLinks(int linkA, int linkB)
Definition RawData.cxx:41
int getLink(int hcid) const
Definition RawData.h:424
std::map< int, int > hcIDToLinkID
Definition RawData.h:428
ClassDefNV(LinkToHCIDMapping, 1)
Frontend Electronics ID, is made up of supermodule, a/c side and the end point encoded as below.
Definition RawData.h:207
uint8_t supermodule
Definition RawData.h:223
uint8_t unused1
Definition RawData.h:222
uint8_t unused2
Definition RawData.h:220
uint16_t word
Definition RawData.h:217
union o2::trd::TRDFeeID::@137 __attribute__
uint8_t endpoint
Definition RawData.h:219
Header for each half chamber.
Definition RawData.h:129
union o2::trd::TrackletHCHeader::@131 __attribute__
union o2::trd::TrackletMCMData::@135 __attribute__
Header for MCM tracklet data outuput.
Definition RawData.h:162
union o2::trd::TrackletMCMHeader::@133 __attribute__
union o2::trd::trdTestPattern1::@151 __attribute__
union o2::trd::trdTestPattern2::@153 __attribute__
union o2::trd::trdTestPattern3::@155 __attribute__
union o2::trd::trdTestPattern6::@157 __attribute__