108 constexpr float MinDelta = 0.1f;
114 constexpr uint8_t flagsReject = getFlagsReject();
121 float const SNPThresh = 0.999990f;
128 o2::utils::DebugStreamer::instance()->getStreamer(
"debug_dedx",
"UPDATE") << o2::utils::DebugStreamer::instance()->getUniqueTreeName(
"tree_indices").data()
129 <<
"trackID=" << iTmp
133 auto snpIn = track.GetParam().GetSinPhi();
134 if (snpIn > SNPThresh) {
136 }
else if (snpIn < -SNPThresh) {
139 oTrack.set(track.GetParam().GetX(), track.GetAlpha(),
140 {track.GetParam().GetY(), track.GetParam().GetZ(), snpIn, track.GetParam().GetDzDs(), track.GetParam().GetQPt()},
141 {track.GetParam().GetCov(0),
142 track.GetParam().GetCov(1), track.GetParam().GetCov(2),
143 track.GetParam().GetCov(3), track.GetParam().GetCov(4), track.GetParam().GetCov(5),
144 track.GetParam().GetCov(6), track.GetParam().GetCov(7), track.GetParam().GetCov(8), track.GetParam().GetCov(9),
145 track.GetParam().GetCov(10), track.GetParam().GetCov(11), track.GetParam().GetCov(12), track.GetParam().GetCov(13), track.GetParam().GetCov(14)});
147 oTrack.setChi2(track.GetParam().GetChi2());
148 auto& outerPar = track.OuterParam();
150 if (
param.dodEdxEnabled) {
151 oTrack.setdEdx(tracksdEdx[
i]);
153 oTrack.setdEdxAlt(tracksdEdxAlt[
i]);
155 oTrack.setdEdxAlt(tracksdEdx[
i]);
160 auto snpOut = outerPar.P[2];
161 if (snpOut > SNPThresh) {
163 }
else if (snpOut < -SNPThresh) {
167 outerPar.X, outerPar.alpha,
168 {outerPar.P[0], outerPar.P[1], snpOut, outerPar.P[3], outerPar.P[4]},
169 {outerPar.C[0], outerPar.C[1], outerPar.C[2], outerPar.C[3], outerPar.C[4], outerPar.C[5],
170 outerPar.C[6], outerPar.C[7], outerPar.C[8], outerPar.C[9], outerPar.C[10], outerPar.C[11],
171 outerPar.C[12], outerPar.C[13], outerPar.C[14]}));
173 if (
param.par.dodEdx &&
param.dodEdxEnabled &&
param.rec.tpc.enablePID) {
175 auto pid = pidResponse.getMostProbablePID(oTrack,
param.rec.tpc.PID_EKrangeMin,
param.rec.tpc.PID_EKrangeMax,
param.rec.tpc.PID_EPrangeMin,
param.rec.tpc.PID_EPrangeMax,
param.rec.tpc.PID_EDrangeMin,
param.rec.tpc.PID_EDrangeMax,
param.rec.tpc.PID_ETrangeMin,
merger.Param().rec.tpc.PID_ETrangeMax,
merger.Param().rec.tpc.PID_useNsigma,
merger.Param().rec.tpc.PID_sigma);
176 auto pidRemap =
merger.Param().rec.tpc.PID_remap[
pid];
180 oTrack.setPID(
pid,
true);
181 oTrack.getParamOut().setPID(
pid,
true);
186 oTrack.setClusterRef(clBuff, nOutCl);
187 uint32_t* clIndArr = &clusRefs[clBuff];
188 uint8_t* sectorIndexArr =
reinterpret_cast<uint8_t*
>(clIndArr + nOutCl);
189 uint8_t* rowIndexArr = sectorIndexArr + nOutCl;
192 float t1 = 0, t2 = 0;
193 int32_t sector1 = 0, sector2 = 0;
196 if ((trackClusters[track.FirstClusterRef() +
j].
state & flagsReject)) {
199 int32_t clusterIdGlobal = trackClusters[track.FirstClusterRef() +
j].
num;
201 int32_t globalRow = trackClusters[track.FirstClusterRef() +
j].
row;
203 clIndArr[nOutCl2] = clusterIdInRow;
204 sectorIndexArr[nOutCl2] =
sector;
205 rowIndexArr[nOutCl2] = globalRow;
207 t1 =
clusters->clustersLinear[clusterIdGlobal].getTime();
210 if (++nOutCl2 == nOutCl) {
211 t2 =
clusters->clustersLinear[clusterIdGlobal].getTime();
216 if (track.PrevSegment() >= 0) {
218 const auto& firstPrevCluster = trackClusters[chkTrk->FirstClusterRef()];
219 t1 =
clusters->clustersLinear[firstPrevCluster.num].getTime();
220 sector1 = firstPrevCluster.
sector;
223 bool cce = track.CCE() && ((sector1 < MAXSECTOR / 2) ^ (sector2 < MAXSECTOR / 2));
224 float time0 = 0.f, tFwd = 0.f, tBwd = 0.f;
225 if (
merger.Param().par.continuousTracking) {
226 time0 = track.GetParam().GetTOffset();
228 bool lastSide = trackClusters[track.FirstClusterRef()].
sector < MAXSECTOR / 2;
230 for (
uint32_t iCl = 1; iCl < track.NClusters(); iCl++) {
231 auto& cacl1 = trackClusters[track.FirstClusterRef() + iCl];
232 if (lastSide ^ (cacl1.sector < MAXSECTOR / 2)) {
233 auto& cl1 =
clusters->clustersLinear[cacl1.num];
234 auto& cl2 =
clusters->clustersLinear[trackClusters[track.FirstClusterRef() + iCl - 1].
num];
235 delta = CAMath::Abs(cl1.getTime() - cl2.getTime()) * 0.5f;
239 if (delta < MinDelta) {
245 const float tmin = CAMath::Min(
t1, t2);
246 const float maxDriftTime =
merger.GetConstantMem()->calibObjects.fastTransform->getMaxDriftTime(
t1 > t2 ? sector1 : sector2);
247 const float clusterT0 =
merger.GetConstantMem()->calibObjects.fastTransform->getT0();
248 const float tmax = CAMath::Min(tmin + maxDriftTime, CAMath::Max(
t1, t2));
250 if (time0 + maxDriftTime < tmax) {
251 delta = tmax - time0 - maxDriftTime;
253 if (tmin - clusterT0 < time0 + delta) {
254 delta = tmin - clusterT0 - time0;
258 const float deltaZ =
merger.GetConstantMem()->calibObjects.fastTransform->convDeltaTimeToDeltaZinTimeFrame(sector2, delta);
259 oTrack.setZ(oTrack.getZ() + deltaZ);
261 tFwd = tmin - clusterT0 - time0;
262 tBwd = time0 - tmax + maxDriftTime;
268 oTrack.setTime0(time0);
269 oTrack.setDeltaTBwd(tBwd);
270 oTrack.setDeltaTFwd(tFwd);
272 oTrack.setHasCSideClusters();
273 oTrack.setHasASideClusters();
274 }
else if (track.CSide()) {
275 oTrack.setHasCSideClusters();
277 oTrack.setHasASideClusters();
279 outputTracks[iTmp] = oTrack;
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