32 mConstructionScenarios(nullptr),
33 mNumberOfScenarios(0),
34 mScenarioPtr(nullptr),
36 mCorrectionData{nullptr, nullptr, nullptr},
37 mSectorDataSizeBytes{0, 0, 0}
48void TPCFastSpaceChargeCorrection::releaseConstructionMemory()
51 delete[] mConstructionScenarios;
52 mConstructionScenarios =
nullptr;
57 releaseConstructionMemory();
58 mConstructionScenarios =
nullptr;
59 mNumberOfScenarios = 0;
60 mScenarioPtr =
nullptr;
62 for (
int32_t is = 0; is < 3; is++) {
63 mCorrectionData[is] =
nullptr;
64 mSectorDataSizeBytes[is] = 0;
69void TPCFastSpaceChargeCorrection::relocateBufferPointers(
const char* oldBuffer,
char* newBuffer)
73 for (int32_t
i = 0;
i < mNumberOfScenarios;
i++) {
75 char* newSplineBuf =
relocatePointer(oldBuffer, newBuffer, sp.getFlatBufferPtr());
76 sp.setActualBufferAddress(newSplineBuf);
78 mCorrectionData[0] =
relocatePointer(oldBuffer, newBuffer, mCorrectionData[0]);
79 mCorrectionData[1] =
relocatePointer(oldBuffer, newBuffer, mCorrectionData[1]);
80 mCorrectionData[2] =
relocatePointer(oldBuffer, newBuffer, mCorrectionData[2]);
93 releaseConstructionMemory();
95 mNumberOfScenarios = obj.mNumberOfScenarios;
99 mTimeStamp = obj.mTimeStamp;
101 mSectorDataSizeBytes[0] = obj.mSectorDataSizeBytes[0];
102 mSectorDataSizeBytes[1] = obj.mSectorDataSizeBytes[1];
103 mSectorDataSizeBytes[2] = obj.mSectorDataSizeBytes[2];
106 mScenarioPtr = obj.mScenarioPtr;
107 mCorrectionData[0] = obj.mCorrectionData[0];
108 mCorrectionData[1] = obj.mCorrectionData[1];
109 mCorrectionData[2] = obj.mCorrectionData[2];
111 mClassVersion = obj.mClassVersion;
114 mRowInfos[
i] = obj.mRowInfos[
i];
133 if (mClassVersion == 4) {
136 size_t scSize =
sizeof(
SplineType) * mNumberOfScenarios;
140 size_t scBufferOffset =
alignSize(scSize, SplineType::getBufferAlignmentBytes());
141 size_t scBufferSize = 0;
143 for (
int32_t i = 0;
i < mNumberOfScenarios;
i++) {
145 sp.setActualBufferAddress(
mFlatBufferPtr + scBufferOffset + scBufferSize);
146 scBufferSize =
alignSize(scBufferSize + sp.getFlatBufferSize(), sp.getBufferAlignmentBytes());
148 size_t bufferSize = scBufferOffset + scBufferSize;
149 for (
int32_t is = 0; is < 3; is++) {
150 bufferSize =
alignSize(bufferSize, SplineType::getParameterAlignmentBytes());
151 mCorrectionData[is] =
reinterpret_cast<char*
>(
mFlatBufferPtr + bufferSize);
157 if (mClassVersion != 3) {
158 LOG(fatal) <<
"TPCFastSpaceChargeCorrection::setActualBufferAddress() called with class version " << mClassVersion <<
". This is not supported.";
164 struct RowInfoVersion3 {
166 size_t dataOffsetBytes[3]{0};
169 struct RowActiveAreaVersion3 {
170 float maxDriftLengthCheb[5]{0.f};
177 struct SectorRowInfoVersion3 {
179 float gridCorrU0{0.f};
180 float gridCorrV0{0.f};
181 float scaleCorrUtoGrid{0.f};
182 float scaleCorrVtoGrid{0.f};
183 RowActiveAreaVersion3 activeArea;
188 size_t oldRowsOffset = 0;
189 size_t oldRowsSize =
sizeof(RowInfoVersion3) * mGeo.getNumberOfRows();
191 size_t oldSectorRowsOffset = oldRowsOffset + oldRowsSize;
192 size_t oldSectorRowsSize =
sizeof(SectorRowInfoVersion3) * mGeo.getNumberOfRows() * mGeo.
getNumberOfSectors();
194 size_t oldScenariosOffset =
alignSize(oldSectorRowsOffset + oldSectorRowsSize, SplineType::getClassAlignmentBytes());
195 size_t scenariosSize =
sizeof(
SplineType) * mNumberOfScenarios;
201 auto* oldRowInfos =
reinterpret_cast<RowInfoVersion3*
>(
mFlatBufferPtr + oldRowsOffset);
202 auto* oldSectorRowInfos =
reinterpret_cast<SectorRowInfoVersion3*
>(
mFlatBufferPtr + oldSectorRowsOffset);
206 for (
int32_t iRow = 0; iRow < mGeo.getNumberOfRows(); iRow++) {
207 RowInfoVersion3& oldRowInfo = oldRowInfos[iRow];
208 SectorRowInfoVersion3& oldSectorRowInfo = oldSectorRowInfos[mGeo.getNumberOfRows() *
iSector + iRow];
211 const auto& spline = oldScenarioPtr[oldRowInfo.splineScenarioID];
213 RowInfo& newRowInfo = getRowInfo(iRow);
216 for (
int32_t is = 0; is < 3; is++) {
221 float y0 = mGeo.getRowInfo(iRow).yMin;
222 float yScale = spline.getGridX1().getUmax() / mGeo.getRowInfo(iRow).getYwidth();
223 float zOut = mGeo.getTPCzLength() - oldSectorRowInfo.gridV0;
225 float zScale = spline.getGridX2().getUmax() / (zOut - z0);
235 memmove((
void*)mScenarioPtr, (
const void*)oldScenarioPtr, scenariosSize);
237 size_t oldScenariosBufferOffset =
alignSize(oldScenariosOffset + scenariosSize, SplineType::getBufferAlignmentBytes());
238 size_t scenariosBufferOffset =
alignSize(scenariosSize, SplineType::getBufferAlignmentBytes());
240 size_t oldScenariosBufferSize = 0;
241 size_t scenariosBufferSize = 0;
242 for (
int32_t i = 0;
i < mNumberOfScenarios;
i++) {
244 char* oldAddress =
mFlatBufferPtr + oldScenariosBufferOffset + oldScenariosBufferSize;
245 char* newAddress =
mFlatBufferPtr + scenariosBufferOffset + scenariosBufferSize;
246 memmove(newAddress, oldAddress, sp.getFlatBufferSize());
247 sp.setActualBufferAddress(newAddress);
248 oldScenariosBufferSize =
alignSize(oldScenariosBufferSize + sp.getFlatBufferSize(), sp.getBufferAlignmentBytes());
249 scenariosBufferSize =
alignSize(scenariosBufferSize + sp.getFlatBufferSize(), sp.getBufferAlignmentBytes());
252 size_t oldBufferSize = oldScenariosBufferOffset + oldScenariosBufferSize;
253 size_t bufferSize = scenariosBufferOffset + scenariosBufferSize;
257 for (
int32_t is = 0; is < 3; is++) {
258 size_t oldCorrectionDataOffset =
alignSize(oldBufferSize, SplineType::getParameterAlignmentBytes());
259 size_t correctionDataOffset =
alignSize(bufferSize, SplineType::getParameterAlignmentBytes());
260 mCorrectionData[is] =
reinterpret_cast<char*
>(
mFlatBufferPtr + correctionDataOffset);
262 oldBufferSize = oldCorrectionDataOffset + mSectorDataSizeBytes[is] * mGeo.
getNumberOfSectors();
263 bufferSize = correctionDataOffset + mSectorDataSizeBytes[is] * mGeo.
getNumberOfSectors();
271 for (
int32_t iRow = 0; iRow < mGeo.getNumberOfRows(); iRow++) {
273 RowInfo& rowInfo = getRowInfo(iRow);
276 int nSplineDimensions[3] = {3, 1, 2};
279 int nDim = nSplineDimensions[
iSpline];
280 int nKnotParameters = 4 * nDim;
284 auto swapKnots = [&](
int i1,
int j1,
int i2,
int j2) {
285 auto k1 = spline.getKnotIndex(i1, j1);
286 auto k2 = spline.getKnotIndex(i2, j2);
287 for (
int ipar = 0; ipar < nKnotParameters; ipar++) {
288 std::swap(
data[nKnotParameters * k1 + ipar],
data[nKnotParameters * k2 + ipar]);
294 for (
int32_t i = 0;
i < spline.getGridX1().getNumberOfKnots();
i++) {
295 for (
int32_t j = 0;
j < spline.getGridX2().getNumberOfKnots() / 2;
j++) {
296 swapKnots(
i,
j,
i, spline.getGridX2().getNumberOfKnots() - 1 -
j);
300 for (
int32_t i = 0;
i < spline.getGridX1().getNumberOfKnots() / 2;
i++) {
301 for (
int32_t j = 0;
j < spline.getGridX2().getNumberOfKnots();
j++) {
302 swapKnots(
i,
j, spline.getGridX1().getNumberOfKnots() - 1 -
i, spline.getGridX2().getNumberOfKnots() - 1 -
j);
309 for (
int32_t iKnot = 0; iKnot < spline.getNumberOfKnots(); iKnot++) {
311 for (
int iDim = 0; iDim < nDim; iDim++) {
313 data[nKnotParameters * iKnot + nDim * 1 + iDim] *= -1;
314 data[nKnotParameters * iKnot + nDim * 3 + iDim] *= -1;
316 data[nKnotParameters * iKnot + nDim * 1 + iDim] *= -1;
317 data[nKnotParameters * iKnot + nDim * 2 + iDim] *= -1;
323 data[nKnotParameters * iKnot + nDim * 0 + 2] *= -1;
324 data[nKnotParameters * iKnot + nDim * 1 + 2] *= -1;
325 data[nKnotParameters * iKnot + nDim * 2 + 2] *= -1;
326 data[nKnotParameters * iKnot + nDim * 3 + 2] *= -1;
328 data[nKnotParameters * iKnot + nDim * 0 + 1] *= -1;
329 data[nKnotParameters * iKnot + nDim * 1 + 1] *= -1;
330 data[nKnotParameters * iKnot + nDim * 2 + 1] *= -1;
331 data[nKnotParameters * iKnot + nDim * 3 + 1] *= -1;
335 data[nKnotParameters * iKnot + nDim * 0 + 1] *= -1;
336 data[nKnotParameters * iKnot + nDim * 1 + 1] *= -1;
337 data[nKnotParameters * iKnot + nDim * 2 + 1] *= -1;
338 data[nKnotParameters * iKnot + nDim * 3 + 1] *= -1;
340 data[nKnotParameters * iKnot + nDim * 0 + 0] *= -1;
341 data[nKnotParameters * iKnot + nDim * 1 + 0] *= -1;
342 data[nKnotParameters * iKnot + nDim * 2 + 0] *= -1;
343 data[nKnotParameters * iKnot + nDim * 3 + 0] *= -1;
366 char* newBuffer = futureFlatBufferPtr;
368 for (
int32_t i = 0;
i < mNumberOfScenarios;
i++) {
370 char* newSplineBuf =
relocatePointer(oldBuffer, newBuffer, sp.getFlatBufferPtr());
371 sp.setFutureBufferAddress(newSplineBuf);
374 mCorrectionData[0] =
relocatePointer(oldBuffer, newBuffer, mCorrectionData[0]);
375 mCorrectionData[1] =
relocatePointer(oldBuffer, newBuffer, mCorrectionData[1]);
376 mCorrectionData[2] =
relocatePointer(oldBuffer, newBuffer, mCorrectionData[2]);
383 LOG(info) <<
" TPC Correction: ";
385 LOG(info) <<
" mNumberOfScenarios = " << mNumberOfScenarios;
386 LOG(info) <<
" mTimeStamp = " << mTimeStamp;
387 LOG(info) <<
" mSectorDataSizeBytes = " << mSectorDataSizeBytes[0] <<
" " << mSectorDataSizeBytes[1] <<
" " << mSectorDataSizeBytes[2];
390 for (
int32_t i = 0;
i < mNumberOfScenarios;
i++) {
391 LOG(info) <<
" SplineScenario " <<
i <<
": ";
392 mScenarioPtr[
i].print();
396 LOG(info) <<
" Spline Data: ";
399 LOG(info) <<
"sector " << is <<
" row " <<
ir <<
": ";
401 const float*
d = getCorrectionData(is,
ir);
403 for (
int32_t i = 0;
i < spline.getGridX1().getNumberOfKnots();
i++) {
404 for (
int32_t j = 0;
j < spline.getGridX2().getNumberOfKnots();
j++, k++) {
405 LOG(info) <<
d[k] <<
" ";
422 assert((geo.
isConstructed()) && (numberOfSplineScenarios > 0));
425 mNumberOfScenarios = numberOfSplineScenarios;
427 releaseConstructionMemory();
429 mConstructionScenarios =
new SplineType[mNumberOfScenarios];
431 assert(mConstructionScenarios !=
nullptr);
433 for (
int32_t i = 0;
i < mGeo.getNumberOfRows();
i++) {
434 auto&
row = mRowInfos[
i];
437 row.gridMeasured = {};
438 row.dataOffsetBytes[0] = 0;
439 row.dataOffsetBytes[1] = 0;
440 row.dataOffsetBytes[2] = 0;
443 for (
int32_t i = 0;
i < mNumberOfScenarios;
i++) {
444 mConstructionScenarios[
i].destroy();
449 mScenarioPtr =
nullptr;
451 mCorrectionData[
s] =
nullptr;
452 mSectorDataSizeBytes[
s] = 0;
461 assert(iRow >= 0 && iRow < mGeo.getNumberOfRows() && iScenario >= 0 && iScenario < mNumberOfScenarios);
462 auto&
row = getRowInfo(iRow);
463 row.splineScenarioID = iScenario;
465 row.dataOffsetBytes[
s] = 0;
473 assert(scenarioIndex >= 0 && scenarioIndex < mNumberOfScenarios);
474 assert(spline.isConstructed());
475 SplineType& sp = mConstructionScenarios[scenarioIndex];
476 sp.cloneFromObject(spline,
nullptr);
485 for (
int32_t j = 0;
j < mGeo.getNumberOfRows();
j++) {
487 assert(
row.splineScenarioID >= 0);
488 assert(
row.splineScenarioID < mNumberOfScenarios);
491 for (
int32_t i = 0;
i < mNumberOfScenarios;
i++) {
498 size_t scSize =
sizeof(
SplineType) * mNumberOfScenarios;
500 size_t scBufferOffsets[mNumberOfScenarios];
502 scBufferOffsets[0] =
alignSize(scOffset + scSize, SplineType::getBufferAlignmentBytes());
503 size_t scBufferSize = 0;
504 for (
int32_t i = 0;
i < mNumberOfScenarios;
i++) {
506 scBufferOffsets[
i] = scBufferOffsets[0] + scBufferSize;
507 scBufferSize =
alignSize(scBufferSize + sp.getFlatBufferSize(), sp.getBufferAlignmentBytes());
509 size_t bufferSize = scBufferOffsets[0] + scBufferSize;
510 size_t correctionDataOffset[3];
511 for (
int32_t is = 0; is < 3; is++) {
512 bufferSize =
alignSize(bufferSize, SplineType::getParameterAlignmentBytes());
513 correctionDataOffset[is] = bufferSize;
514 mSectorDataSizeBytes[is] = 0;
515 for (
int32_t j = 0;
j < mGeo.getNumberOfRows();
j++) {
517 row.dataOffsetBytes[is] = mSectorDataSizeBytes[is];
518 const SplineType& spline = mConstructionScenarios[
row.splineScenarioID];
521 mSectorDataSizeBytes[is] += splineXYZ.getSizeOfParameters();
522 }
else if (is == 1) {
524 mSectorDataSizeBytes[is] += splineInvX.getSizeOfParameters();
525 }
else if (is == 2) {
527 mSectorDataSizeBytes[is] += splineInvYZ.getSizeOfParameters();
529 mSectorDataSizeBytes[is] =
alignSize(mSectorDataSizeBytes[is], SplineType::getParameterAlignmentBytes());
538 for (
int32_t i = 0;
i < mNumberOfScenarios;
i++) {
545 for (
int32_t is = 0; is < 3; is++) {
546 mCorrectionData[is] =
reinterpret_cast<char*
>(
mFlatBufferPtr + correctionDataOffset[is]);
548 releaseConstructionMemory();
560 const SplineType& spline = getSplineForRow(
row);
561 RowInfo& info = getRowInfo(
row);
562 float y0 = mGeo.getRowInfo(
row).getYmin();
563 float yScale = spline.getGridX1().getUmax() / mGeo.getRowInfo(
row).getYwidth();
565 float zScale = spline.getGridX2().getUmax() / mGeo.getTPCzLength();
566 info.gridMeasured.set(
y0, yScale, z0, zScale, mGeo.getTPCzLength(), mGeo.getTPCzLength());
567 info.gridReal = info.gridMeasured;
572 for (
int32_t is = 0; is < 3; is++) {
576 nPar = getSplineForRow(
row).getNumberOfParameters();
577 }
else if (is == 1) {
578 nPar = getSplineInvXforRow(
row).getNumberOfParameters();
579 }
else if (is == 2) {
580 nPar = getSplineInvYZforRow(
row).getNumberOfParameters();
592 const int32_t nCorrectionScenarios = 1;
599 spline.recreate(2, 2);
606double TPCFastSpaceChargeCorrection::testInverse(
bool prn)
609 LOG(info) <<
"Test inverse transform ";
612 double tpcR2min = mGeo.getRowInfo(0).x - 1.;
613 tpcR2min = tpcR2min * tpcR2min;
614 double tpcR2max = mGeo.getRowInfo(mGeo.getNumberOfRows() - 1).x;
616 tpcR2max = tpcR2max * tpcR2max;
625 if (fabs(
v) > fabs(V)) {
631 void update(
const MaxValue&
other)
638 std::stringstream ss;
639 ss << V <<
"(" << Sector <<
"," <<
Row <<
")";
649 LOG(info) <<
"check inverse transform for sector " <<
sector;
652 MaxValue maxDsector[3];
653 for (int32_t
row = 0;
row < mGeo.getNumberOfRows();
row++) {
654 double x = mGeo.getRowInfo(
row).x;
655 auto [
y0,
y1] = mGeo.getRowInfo(
row).getYrange();
656 auto [z0,
z1] = mGeo.getZrange(
sector);
658 double stepY = (
y1 -
y0) / 100.;
659 double stepZ = (
z1 - z0) / 100.;
661 for (
double y =
y0;
y <
y1;
y += stepY) {
662 for (
double z = z0;
z <
z1;
z += stepZ) {
665 double realX =
x +
dx;
672 if (realY < y0 || realY >
y1 ||
673 realZ < z0 || realZ > z1 ||
674 r2 < tpcR2min || r2 > tpcR2max) {
680 double d[3] = {dxr -
dx, dyr -
dy, dzr - dz};
681 for (int32_t
i = 0;
i < 3;
i++) {
685 if (0 && prn && fabs(
d[0]) + fabs(
d[1]) + fabs(
d[2]) > 0.1) {
686 LOG(info) << dxr -
dx <<
" " << dyr -
dy <<
" " << dzr - dz
687 <<
" measured xyz " <<
x <<
", " <<
y <<
", " <<
z
688 <<
" dx,dy,dz from measured point " <<
dx <<
", " <<
dy <<
", " << dz
689 <<
" dx,dy,dz from real point " << dxr <<
", " << dyr <<
", " << dzr;
695 <<
" dx " << maxDrow[0].V <<
" dy " << maxDrow[1].V <<
" dz " << maxDrow[2].V;
697 for (int32_t
i = 0;
i < 3;
i++) {
698 maxDsector[
i].update(maxDrow[
i]);
699 maxDtpc[
i].update(maxDrow[
i]);
700 maxD.update(maxDrow[
i]);
704 LOG(info) <<
"inverse correction: sector " <<
sector <<
". Max deviations: "
705 <<
" dx " << maxDsector[0].toString() <<
" dy " << maxDsector[1].toString() <<
" dz " << maxDsector[2].toString();
709 LOG(info) <<
"Test inverse TPC correction. max deviations: "
710 <<
" dx " << maxDtpc[0].toString() <<
" dy " << maxDtpc[1].toString() <<
" dz " << maxDtpc[2].toString() <<
" cm";
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 sector
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 s
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 d
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 Compile RTC in deterministic with NO_FAST_MATH flags and GPUCA_DETERMINISTIC_MODE define Use RTC to optimize GPU code h configStandalone Processing proc_rtctech Use a file lock to serialize access to the cache folder int32_t
Definition of Spline2DHelper class.
ClassImp(TPCFastSpaceChargeCorrection)
Definition of TPCFastSpaceChargeCorrection class.
std::string toString(CoderTag tag)
void setFutureBufferAddress(char *futureFlatBufferPtr)
uint32_t mConstructionMask
mask for constructed object members, first two bytes are used by this class
int32_t mFlatBufferSize
size of the flat buffer
void destroy()
_______________ Utilities _______________________________________________
bool isConstructed() const
Tells if the object is constructed.
static T * relocatePointer(const char *oldBase, char *newBase, const T *ptr)
Relocates a pointer inside a buffer to the new buffer address.
void setActualBufferAddress(char *actualFlatBufferPtr)
_____________ Methods for moving the class with its external buffer to another location _____________...
void startConstruction()
_____________ Construction _________
void moveBufferTo(char *newBufferPtr)
void finishConstruction(int32_t flatBufferSize)
static constexpr size_t alignSize(size_t sizeBytes, size_t alignmentBytes)
_______________ Generic utilities _______________________________________________
void cloneFromObject(const FlatObject &obj, char *newFlatBufferPtr)
@ InProgress
construction started: temporary memory is reserved
Forward declaration — specializations below select ClassDefNV based on FlatBase.
void moveBufferTo(char *newBufferPtr)
TPCFastSpaceChargeCorrection()
_____________ Constructors / destructors __________________________
void setSplineScenario(int32_t scenarioIndex, const SplineType &spline)
Sets approximation scenario.
int32_t float float realZ
void setRowScenarioID(int32_t iRow, int32_t iScenario)
Initializes a TPC row.
void print() const
Print method.
~TPCFastSpaceChargeCorrection()
Destructor.
void finishConstruction()
Finishes construction: puts everything to the flat buffer, releases temporary memory.
int32_t float float float & dx
int32_t float float float float & dy
void setFutureBufferAddress(char *futureFlatBufferPtr)
void constructWithNoCorrection(const TPCFastTransformGeo &geo)
void setActualBufferAddress(char *actualFlatBufferPtr)
Moving the class with its external buffer to another location.
void cloneFromObject(const TPCFastSpaceChargeCorrection &obj, char *newFlatBufferPtr)
Construction interface.
GLuint GLfloat GLfloat GLfloat GLfloat y1
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
GLuint GLfloat GLfloat y0
GLdouble GLdouble GLdouble z
GPUd() const expr uint32_t MultivariatePolynomialHelper< Dim
float float float float z1
void set(float y0_, float yScale_, float z0_, float zScale_, float zOut_, float zReadout_)
GridInfo gridReal
grid info for the real coordinates
GridInfo gridMeasured
grid info for the measured coordinates
int32_t splineScenarioID
scenario index (which of Spline2D splines to use)
size_t dataOffsetBytes[3]
offset for the spline data withing a TPC sector
VectorOfTObjectPtrs other
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
o2::InteractionRecord ir(0, 0)