15#include <boost/tokenizer.hpp>
16#include <boost/lexical_cast.hpp>
26#include <fairlogger/Logger.h>
31 : mUseRawInMode3(
true),
32 mApplyChannelMask(
false),
33 mCheckAdcClock(
false),
37 mSampaVersion(sampaVersion),
39 mTimestampOfFirstData({0, 0, 0, 0, 0}),
42 mDataIterator(mData.end()),
44 mChannelMask(
nullptr),
45 mAdcError(std::make_shared<std::vector<std::tuple<short, short, short>>>()),
46 mEventSynchronizer(std::make_shared<RawReaderEventSync>())
54 for (
const auto&
f : *infiles) {
63 typedef boost::tokenizer<boost::char_separator<char>> tokenizer;
64 boost::char_separator<char> sep{
":"};
65 tokenizer tok{infile, sep};
66 if (std::distance(tok.begin(), tok.end()) < 3) {
67 LOG(
error) <<
"Not enough arguments";
71 tokenizer::iterator it1 = tok.begin();
72 std::string
path = boost::lexical_cast<std::string>(*it1);
73 int run = std::stoi(
path.substr(
path.find(
"run") + 3, 6));
78 region = boost::lexical_cast<int>(*it1);
79 }
catch (boost::bad_lexical_cast) {
86 link = boost::lexical_cast<int>(*it1);
87 }
catch (boost::bad_lexical_cast) {
92 int sampaVersion = -1;
93 if (++it1 == tok.end()) {
94 LOG(
debug) <<
"No SAMPA version was entered, assuming latest.";
97 sampaVersion = boost::lexical_cast<int>(*it1);
98 }
catch (boost::bad_lexical_cast) {
99 LOG(
error) <<
"Please enter a valid SAMPA version for " <<
path;
118 if (mSampaVersion == -1) {
119 mSampaVersion = sampaVersion;
123 LOG(
debug) <<
"Run of RawReader is " << mRun <<
" and not " << run;
127 if (region != mRegion) {
128 LOG(
debug) <<
"Region of RawReader is " << mRegion <<
" and not " << region;
133 LOG(
debug) <<
"Link of RawReader is " << mLink <<
" and not " <<
link;
137 if (sampaVersion != mSampaVersion) {
138 LOG(
debug) <<
"SAMPA Version of RawReader is " << mSampaVersion <<
" and not " << sampaVersion;
143 if (!
file.is_open()) {
155 file.read((
char*)&
h,
sizeof(
h));
156 if (
h.reserved_01 != 0x0F ||
h.reserved_2() != 0x3fec2fec1fec0fec) {
157 LOG(
error) <<
"Header does not look consistent";
163 if (
h.headerVersion == 1) {
165 auto ins = mEvents.insert(std::make_pair(
h.eventCount(), std::make_shared<std::vector<EventInfo>>()));
166 ins.first->second->push_back(eD);
168 if (
h.eventCount() == 0) {
169 LOG(
debug) <<
"Processing event 0 to find sync pattern for event synchronization";
174 mEventSynchronizer->addEventOffset(
176 (
h.timeStamp() - mTimestampOfFirstData[0]));
181 LOG(
error) <<
"Header version " << (int)
h.headerVersion <<
" not implemented.";
196 LOG(
debug) <<
"First event was not loaded (maybe important for decoding RAW GBT frames) loading first event.";
198 mTimestampOfFirstData.fill(0);
204 auto ev = mEvents.find(
event);
206 if (ev == mEvents.end()) {
211 for (
auto& eventInfo : *(ev->second)) {
212 switch (eventInfo.header.dataType) {
215 LOG(
debug) <<
"Data of readout mode 1 (RAW GBT frames)";
216 if (!decodeRawGBTFrames(eventInfo)) {
223 LOG(
debug) <<
"Data of readout mode 2 (decoded data)";
224 if (!decodePreprocessedData(eventInfo)) {
231 if (mUseRawInMode3) {
232 LOG(
debug) <<
"Data of readout mode 3 (decoding RAW GBT frames)";
233 if (!decodeRawGBTFrames(eventInfo)) {
237 LOG(
debug) <<
"Data of readout mode 3 (using decoded data)";
238 if (!decodePreprocessedData(eventInfo)) {
245 LOG(
debug) <<
"Readout mode not known";
251 mDataIterator = mData.begin();
257bool RawReader::decodePreprocessedData(EventInfo eventInfo)
259 std::ifstream
file(eventInfo.path);
260 if (!
file.is_open()) {
261 LOG(
error) <<
"Can't read file " << eventInfo.path;
265 int nWords = eventInfo.header.nWords - 8;
267 LOG(
debug) <<
"reading " << nWords <<
" words from position " << eventInfo.posInFile <<
" in file " << eventInfo.path;
268 file.seekg(eventInfo.posInFile);
269 file.read((
char*)&words, nWords *
sizeof(words[0]));
273 std::array<char, 5> sampas;
274 std::array<char, 5> sampaChannelStart;
275 for (
char i = 0;
i < 5; ++
i) {
276 sampas[
i] = (
i == 4) ? 2 : (mRegion % 2) ?
i / 2 + 3 :
i / 2;
277 sampaChannelStart[
i] = (
i == 4) ?
278 ((mRegion % 2) ? 16 : 0)
283 std::array<uint32_t, 5>
ids;
284 std::array<bool, 5> writeValue;
285 writeValue.fill(
false);
286 std::array<std::array<uint16_t, 16>, 5>
adcValues;
288 int indexStep = (eventInfo.header.dataType == 3) ? 8 : 4;
289 int offset = (eventInfo.header.dataType == 3) ? 4 : 0;
292 if (eventInfo.header.eventCount() > 0) {
293 LOG(
debug) <<
"Using offset [" << mTimestampOfFirstData[0] + mEventSynchronizer->getEventOffset(eventInfo.header.eventCount()) <<
"] "
294 <<
"instead of [" << eventInfo.header.timeStamp() <<
"] "
295 <<
" (diff = " << mTimestampOfFirstData[0] + mEventSynchronizer->getEventOffset(eventInfo.header.eventCount()) - eventInfo.header.timeStamp() <<
") ";
297 i_start = mTimestampOfFirstData[0] + mEventSynchronizer->getEventOffset(eventInfo.header.eventCount()) - eventInfo.header.timeStamp() - 1;
298 i_start *= indexStep;
301 LOG(
debug) <<
"Start index for Event " << eventInfo.header.eventCount() <<
" is " << i_start;
303 for (
long i = i_start;
i < nWords;
i =
i + indexStep) {
310 adcValues[4][((
ids[4] & 0x7) * 2) + 1] = (((
ids[4] >> 3) & 0x1) == 0) ? 0 : words[
i +
offset + 3] & 0x3FF;
311 adcValues[4][((
ids[4] & 0x7) * 2)] = (((
ids[4] >> 3) & 0x1) == 0) ? 0 : (words[
i +
offset + 3] >> 10) & 0x3FF;
312 adcValues[3][((
ids[3] & 0x7) * 2) + 1] = (((
ids[3] >> 3) & 0x1) == 0) ? 0 : (words[
i +
offset + 3] >> 20) & 0x3FF;
313 adcValues[3][((
ids[3] & 0x7) * 2)] = (((
ids[3] >> 3) & 0x1) == 0) ? 0 : ((words[
i +
offset + 2] & 0xFF) << 2) | ((words[
i +
offset + 3] >> 30) & 0x3);
314 adcValues[2][((
ids[2] & 0x7) * 2) + 1] = (((
ids[2] >> 3) & 0x1) == 0) ? 0 : (words[
i +
offset + 2] >> 8) & 0x3FF;
315 adcValues[2][((
ids[2] & 0x7) * 2)] = (((
ids[2] >> 3) & 0x1) == 0) ? 0 : (words[
i +
offset + 2] >> 18) & 0x3FF;
316 adcValues[1][((
ids[1] & 0x7) * 2) + 1] = (((
ids[1] >> 3) & 0x1) == 0) ? 0 : ((words[
i +
offset + 1] & 0x3F) << 4) | ((words[
i +
offset + 2] >> 28) & 0xF);
317 adcValues[1][((
ids[1] & 0x7) * 2)] = (((
ids[1] >> 3) & 0x1) == 0) ? 0 : (words[
i +
offset + 1] >> 6) & 0x3FF;
318 adcValues[0][((
ids[0] & 0x7) * 2) + 1] = (((
ids[0] >> 3) & 0x1) == 0) ? 0 : (words[
i +
offset + 1] >> 16) & 0x3FF;
319 adcValues[0][((
ids[0] & 0x7) * 2)] = (((
ids[0] >> 3) & 0x1) == 0) ? 0 : ((words[
i +
offset + 0] & 0xF) << 6) | ((words[
i +
offset + 1] >> 26) & 0x3F);
321 for (
char j = 0;
j < 5; ++
j) {
323 writeValue[
j] =
true;
325 if (mTimestampOfFirstData[
j] == 0) {
326 mTimestampOfFirstData[
j] = eventInfo.header.timeStamp() + 1 +
i / indexStep;
331 for (
char j = 0;
j < 5; ++
j) {
332 if (writeValue[
j] & (
ids[
j] == 0xF)) {
333 for (
int k = 0; k < 16; ++k) {
335 mRegion, mLink, sampas[
j], k + sampaChannelStart[
j]);
337 if (mApplyChannelMask &&
338 (mChannelMask !=
nullptr) &&
339 !mChannelMask->getValue(
CRU(mRegion), padPos.getPad(), padPos.getRow())) {
344 auto ins = mData.insert(std::make_pair(padPos, std::make_shared<std::vector<uint16_t>>()));
345 ins.first->second->push_back(
adcValues[
j][k]);
353bool RawReader::decodeRawGBTFrames(EventInfo eventInfo)
355 std::ifstream
file(eventInfo.path);
356 if (!
file.is_open()) {
357 LOG(
error) <<
"Can't read file " << eventInfo.path;
361 int nWords = eventInfo.header.nWords - 8;
363 LOG(
debug) <<
"reading " << nWords <<
" words from position " << eventInfo.posInFile <<
" in file " << eventInfo.path;
364 LOG(
debug) <<
"Header time stamp is " << eventInfo.header.timeStamp();
365 file.seekg(eventInfo.posInFile);
366 file.read((
char*)&words, nWords *
sizeof(words[0]));
370 std::array<char, 5> sampas;
371 std::array<char, 5> sampaChannelStart;
372 for (
char i = 0;
i < 5; ++
i) {
373 sampas[
i] = (
i == 4) ? 2 : (mRegion % 2) ?
i / 2 + 3 :
i / 2;
374 sampaChannelStart[
i] = (
i == 4) ?
375 ((mRegion % 2) ? 16 : 0)
380 std::array<SyncPatternMonitor, 5> syncMon{
386 std::array<AdcClockMonitor, 3> adcClockMon{
390 std::array<bool, 3> adcClockFound{
false,
false,
false};
392 std::array<short, 5> lastSyncPos;
393 std::array<std::list<uint16_t>, 5>
adcValues;
397 int indexStep = (eventInfo.header.dataType == 3) ? 8 : 4;
400 if (eventInfo.header.eventCount() > 0) {
401 LOG(
debug) <<
"Using offset [" << mTimestampOfFirstData[0] + mEventSynchronizer->getEventOffset(eventInfo.header.eventCount()) <<
"] "
402 <<
"instead of [" << eventInfo.header.timeStamp() <<
"] "
403 <<
" (diff = " << mTimestampOfFirstData[0] + mEventSynchronizer->getEventOffset(eventInfo.header.eventCount()) - eventInfo.header.timeStamp() <<
") ";
405 i_start = mTimestampOfFirstData[0] + mEventSynchronizer->getEventOffset(eventInfo.header.eventCount()) - eventInfo.header.timeStamp() - 1;
406 i_start *= indexStep;
409 LOG(
debug) <<
"Start index for Event " << eventInfo.header.eventCount() <<
" is " << i_start;
412 if (eventInfo.header.eventCount() > 0) {
413 frame.
setData(words[i_start - indexStep], words[i_start - indexStep + 1], words[i_start - indexStep + 2], words[i_start - indexStep + 3]);
417 for (
long i = i_start;
i < nWords;
i =
i + indexStep) {
419 lastSyncPos = mSyncPos;
421 frame.
setData(words[
i], words[
i + 1], words[
i + 2], words[
i + 3]);
423 if (syncMon[0].addSequence(frame.
getHalfWord(0, 0, 0), frame.
getHalfWord(0, 1, 0), frame.
getHalfWord(0, 2, 0), frame.
getHalfWord(0, 3, 0))) {
424 mSyncPos[0] = syncMon[0].getPosition();
426 if (syncMon[1].addSequence(frame.
getHalfWord(0, 0, 1), frame.
getHalfWord(0, 1, 1), frame.
getHalfWord(0, 2, 1), frame.
getHalfWord(0, 3, 1))) {
427 mSyncPos[1] = syncMon[1].getPosition();
429 if (syncMon[2].addSequence(frame.
getHalfWord(1, 0, 0), frame.
getHalfWord(1, 1, 0), frame.
getHalfWord(1, 2, 0), frame.
getHalfWord(1, 3, 0))) {
430 mSyncPos[2] = syncMon[2].getPosition();
432 if (syncMon[3].addSequence(frame.
getHalfWord(1, 0, 1), frame.
getHalfWord(1, 1, 1), frame.
getHalfWord(1, 2, 1), frame.
getHalfWord(1, 3, 1))) {
433 mSyncPos[3] = syncMon[3].getPosition();
436 mSyncPos[4] = syncMon[4].getPosition();
439 if (mCheckAdcClock) {
441 bool adcCheckErr0 = adcClockMon[0].addSequence(frame.
getAdcClock(0));
442 bool adcCheckErr1 = adcClockMon[1].addSequence(frame.
getAdcClock(1));
443 bool adcCheckErr2 = adcClockMon[2].addSequence(frame.
getAdcClock(2));
445 if (mSyncPos[0] >= 0) {
446 adcClockFound[0] = adcClockFound[0] | (!adcCheckErr0);
448 if (mSyncPos[2] >= 0) {
449 adcClockFound[1] = adcClockFound[1] | (!adcCheckErr1);
451 if (mSyncPos[4] >= 0) {
452 adcClockFound[2] = adcClockFound[2] | (!adcCheckErr2);
454 if (adcClockFound[0] & adcCheckErr0) {
455 adcClockFound[0] =
false;
456 LOG(
debug) <<
"ADC clock error of SAMPA " << ((mRegion % 2) ? 3 : 0) <<
" in frame [" <<
i / indexStep <<
"]";
457 mAdcError->emplace_back(std::make_tuple((mRegion % 2) ? 3 : 0,
i, mSyncPos[0]));
459 if (adcClockFound[1] & adcCheckErr1) {
460 adcClockFound[1] =
false;
461 LOG(
debug) <<
"ADC clock error of SAMPA " << ((mRegion % 2) ? 4 : 1) <<
" in frame [" <<
i / indexStep <<
"]";
462 mAdcError->emplace_back(std::make_tuple((mRegion % 2) ? 4 : 1,
i, mSyncPos[2]));
464 if (adcClockFound[2] & adcCheckErr2) {
465 adcClockFound[2] =
false;
466 LOG(
debug) <<
"ADC clock error of SAMPA " << 2 <<
" in frame [" <<
i / indexStep <<
"]";
467 mAdcError->emplace_back(std::make_tuple(2,
i, mSyncPos[4]));
473 for (
short iHalfSampa = 0; iHalfSampa < 5; ++iHalfSampa) {
474 if (mSyncPos[iHalfSampa] < 0) {
475 LOG(debug1) <<
"Sync pattern for half SAMPA " << iHalfSampa <<
" not yet found";
478 if (lastSyncPos[iHalfSampa] < 0) {
479 LOG(debug1) <<
"Sync pattern for half SAMPA " << iHalfSampa <<
" not yet found";
480 LOG(debug1) << lastFrame;
483 if (mTimestampOfFirstData[iHalfSampa] == 0) {
484 if (iHalfSampa == 0) {
485 LOG(
debug) <<
"Setting timestamp of first data to " << eventInfo.header.timeStamp() + 1 +
i / indexStep <<
" for half SAMPA " << iHalfSampa <<
" (" << 1 +
i / indexStep <<
")";
487 mTimestampOfFirstData[iHalfSampa] = eventInfo.header.timeStamp() + 1 +
i / indexStep;
490 switch (mSyncPos[iHalfSampa]) {
492 value1 = (frame.
getHalfWord(iHalfSampa / 2, 1, iHalfSampa % 2) << 5) | frame.
getHalfWord(iHalfSampa / 2, 0, iHalfSampa % 2);
493 value2 = (frame.
getHalfWord(iHalfSampa / 2, 3, iHalfSampa % 2) << 5) | frame.
getHalfWord(iHalfSampa / 2, 2, iHalfSampa % 2);
497 value1 = (lastFrame.
getHalfWord(iHalfSampa / 2, 2, iHalfSampa % 2) << 5) | lastFrame.
getHalfWord(iHalfSampa / 2, 1, iHalfSampa % 2);
498 value2 = (frame.
getHalfWord(iHalfSampa / 2, 0, iHalfSampa % 2) << 5) | lastFrame.
getHalfWord(iHalfSampa / 2, 3, iHalfSampa % 2);
502 value1 = (lastFrame.
getHalfWord(iHalfSampa / 2, 3, iHalfSampa % 2) << 5) | lastFrame.
getHalfWord(iHalfSampa / 2, 2, iHalfSampa % 2);
503 value2 = (frame.
getHalfWord(iHalfSampa / 2, 1, iHalfSampa % 2) << 5) | frame.
getHalfWord(iHalfSampa / 2, 0, iHalfSampa % 2);
507 value1 = (frame.
getHalfWord(iHalfSampa / 2, 0, iHalfSampa % 2) << 5) | lastFrame.
getHalfWord(iHalfSampa / 2, 3, iHalfSampa % 2);
508 value2 = (frame.
getHalfWord(iHalfSampa / 2, 2, iHalfSampa % 2) << 5) | frame.
getHalfWord(iHalfSampa / 2, 1, iHalfSampa % 2);
515 if (mSampaVersion == 1 || mSampaVersion == 2) {
516 adcValues[iHalfSampa].emplace_back(value1 ^ (1 << 9));
517 adcValues[iHalfSampa].emplace_back(value2 ^ (1 << 9));
519 adcValues[iHalfSampa].emplace_back(value1);
520 adcValues[iHalfSampa].emplace_back(value2);
524 for (
char j = 0;
j < 5; ++
j) {
526 for (
int k = 0; k < 16; ++k) {
528 mRegion, mLink, sampas[
j], k + sampaChannelStart[
j]);
530 if (mApplyChannelMask &&
531 (mChannelMask !=
nullptr) &&
532 !mChannelMask->getValue(
CRU(mRegion), padPos.getPad(), padPos.getRow())) {
538 auto ins = mData.insert(std::make_pair(padPos, std::make_shared<std::vector<uint16_t>>()));
539 ins.first->second->push_back(
adcValues[
j].front());
Class to monitor the ADC smapling clock contained in the GBT frame.
std::vector< uint16_t > adcValues
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual Show related Highlight grid Show only individual collision Color clusters belonging to track objects Set line Enable drawing TPC data Enable drawing TOF data Enable drawing magnetic field Set field line step count Invert colors configStandalone Heavy OpenGL display display_heavy Show tracks with ITS contribution Show tracks with TOF contribution Enable propagation of loopers Show clusters at nominal x of pad row for early transformed data Split CE tracks when they cross the central Mark clusters Mark adjacent clusters Hide rejected tracks Apply filter on tracks to be displayed Separate increase X h configStandalone Camera window renderer OpenGL display display_camera Orient the camera such that the y axis is always upwards Full Screen MultiSample Anti Downsampling Anti Enable Vertical Sync Target frame or if the backend cannot limit to the refresh Use OpenGL indirect draws to reduce number of draw calls Display h configStandalone Vulkan display display_vulkan Have uniform buffers in host accessible device memory h configStandalone Internal display display_internal Number of updates the Qt GUI may send ahead of the last one the display has before it waits for the display Opacity of the console background Number of console lines the history is shortened to this when it reaches twice the size Time in seconds an info message fades out after setInfoTime h OpenGL display display Font size Do not use Freetype for font Renderer for event Frontend to use for event ROOT macros used as track filter Console script file
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 configStandalone Reconstruction rec_trd Max chi2 for TRD tracklets to be matched to a track Chi2 cut for strict matching mode Number of sigmas for ITS TPC track time error estimate Addition to search road around track prolongation along Y in cm Optimal tracklet rphi resolution in maximum chi2 per attached tracklet for TRD tracks take into account the full likelihood of the slope including exponential tails Tracks with less attached tracklets are discarded after the tracking Post trigger Pile up integration time in BCs fits all iterations but the last one in projections Use material lookup table for TPC refit Apply workarounds to avoid cyclic merge should not be needed tpc dyn configStandalone Processing proc_rtc Replace constant variables static by constexpr expressions false
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 configStandalone Reconstruction rec_trd Max chi2 for TRD tracklets to be matched to a track Chi2 cut for strict matching mode Number of sigmas for ITS TPC track time error estimate Addition to search road around track prolongation along Y in cm Optimal tracklet rphi resolution in maximum chi2 per attached tracklet for TRD tracks take into account the full likelihood of the slope including exponential tails Tracks with less attached tracklets are discarded after the tracking Post trigger Pile up integration time in BCs fits all iterations but the last one in projections Use material lookup table for TPC refit Apply workarounds to avoid cyclic merge should not be needed tpc dyn configStandalone Processing proc_rtc true
char error[CURL_ERROR_SIZE]
Class to monitor the data stream and detect synchronization patterns.
Class for time synchronization of RawReader instances.
Class to monitor the ADC smapling clock contained in the GBT frame.
GBTFrame class for the TPC.
short getAdcClock(short sampa) const
void setData(unsigned word3, unsigned word2, unsigned word1, unsigned word0)
short getHalfWord(const short sampa, const short halfword, const short chan=0) const
const PartitionInfo & getPartitionInfo(const unsigned char partition) const
const PadPos padPosRegion(const int cruNumber, const int fecInPartition, const int sampaOnFEC, const int channelOnSAMPA) const
static Mapper & instance(const std::string mappingDir="")
unsigned char getNumberOfFECs() const
int64_t getFirstEvent() const
bool addInputFile(std::string infile)
RawReader(int region=-1, int link=-1, int run=-1, int sampaVersion=-1)
bool loadEvent(int64_t event)
Class to monitor the data stream and detect synchronization patterns.
GLuint GLsizei GLsizei * length
GLsizei const GLchar *const * path
Global TPC definitions and constants.
int posInFile
Position in data file.
Header header
Header of this evend.
std::string path
Path to data file.
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"