21#include "GPUParam.inc"
35 tParam.SetCov(0, 0.05f);
36 tParam.SetCov(2, 0.05f);
37 tParam.SetCov(5, 0.001f);
38 tParam.SetCov(9, 0.001f);
39 tParam.SetCov(14, 0.05f);
40 tParam.SetParam(sectorSource.Tracks()[iTrack].Param());
43 if (!tParam.Rotate(
angle, constants::MAX_SIN_PHI)) {
51 rowIndex += direction;
52 if (!tParam.TransportToX(tracker.Row(rowIndex).X(),
t0, tracker.Param().bzCLight, constants::MAX_SIN_PHI)) {
56 if (--maxRowGap == 0) {
59 }
while (CAMath::Abs(tParam.Y()) > tracker.Row(rowIndex).MaxY());
62 tracker.GetErrors2Seeding(rowIndex, tParam.Z(), tParam.SinPhi(), tParam.DzDs(), -1.f, err2Y, err2Z);
63 if (tParam.GetCov(0) < err2Y) {
64 tParam.SetCov(0, err2Y);
66 if (tParam.GetCov(2) < err2Z) {
67 tParam.SetCov(2, err2Z);
70 calink rowHits[GPUTPCGeometry::NROWS];
71 int32_t nHits = GPUTPCTrackletConstructor::GPUTPCTrackletConstructorExtrapolationTracking(tracker, smem, tParam, rowIndex, direction, 0, rowHits);
72 if (nHits >= tracker.Param().rec.tpc.extrapolationTrackingMinHits) {
74 uint32_t hitId = CAMath::AtomicAdd(&tracker.CommonMemory()->nTrackHits, (
uint32_t)nHits);
75 if (hitId + nHits > tracker.NMaxTrackHits()) {
76 tracker.raiseError(GPUErrors::ERROR_GLOBAL_TRACKING_TRACK_HIT_OVERFLOW, tracker.ISector(), hitId + nHits, tracker.NMaxTrackHits());
77 CAMath::AtomicExch(&tracker.CommonMemory()->nTrackHits, tracker.NMaxTrackHits());
80 uint32_t trackId = CAMath::AtomicAdd(&tracker.CommonMemory()->nTracks, 1u);
81 if (trackId >= tracker.NMaxTracks()) {
82 tracker.raiseError(GPUErrors::ERROR_GLOBAL_TRACKING_TRACK_OVERFLOW, tracker.ISector(), trackId, tracker.NMaxTracks());
83 CAMath::AtomicExch(&tracker.CommonMemory()->nTracks, tracker.NMaxTracks());
90 const calink rowHit = rowHits[rowIndex];
93 tracker.TrackHits()[hitId +
i].Set(rowIndex, rowHit);
102 const calink rowHit = rowHits[rowIndex];
105 tracker.TrackHits()[hitId +
i].Set(rowIndex, rowHit);
112 track.SetParam(tParam.GetParam());
113 track.SetNHits(nHits);
114 track.SetFirstHitID(hitId);
115 track.SetLocalTrackId((direction == 1 ? 0x40000000 : 0) | (sectorSource.ISector() << 24) | sectorSource.Tracks()[iTrack].LocalTrackId());
118 return (nHits >= tracker.Param().rec.tpc.extrapolationTrackingMinHits);
123 for (int32_t
i = iBlock * nThreads + iThread;
i < tracker.CommonMemory()->nLocalTracks;
i += nThreads * nBlocks) {
125 const int32_t tmpHit = tracker.Tracks()[
i].FirstHitID();
126 if (tracker.TrackHits()[tmpHit].RowIndex() >= tracker.Param().rec.tpc.extrapolationTrackingMinRows && tracker.TrackHits()[tmpHit].RowIndex() < tracker.Param().rec.tpc.extrapolationTrackingRowRange) {
127 int32_t rowIndex = tracker.TrackHits()[tmpHit].RowIndex();
129 float Y = (
float)tracker.Data().HitDataY(
row, tracker.TrackHits()[tmpHit].HitIndex()) *
row.HstepY() +
row.Grid().YMin();
130 if (!
right && Y < -
row.MaxY() * tracker.Param().
rec.
tpc.extrapolationTrackingYRangeLower) {
132 PerformExtrapolationTrackingRun(sectorTarget, smem, tracker,
i, rowIndex, -tracker.Param().dAlpha, -1);
134 if (
right && Y >
row.MaxY() * tracker.Param().rec.tpc.extrapolationTrackingYRangeLower) {
136 PerformExtrapolationTrackingRun(sectorTarget, smem, tracker,
i, rowIndex, tracker.Param().dAlpha, -1);
142 const int32_t tmpHit = tracker.Tracks()[
i].FirstHitID() + tracker.Tracks()[
i].NHits() - 1;
143 if (tracker.TrackHits()[tmpHit].RowIndex() < GPUTPCGeometry::NROWS - tracker.Param().rec.tpc.extrapolationTrackingMinRows && tracker.TrackHits()[tmpHit].RowIndex() >= GPUTPCGeometry::NROWS - tracker.Param().rec.tpc.extrapolationTrackingRowRange) {
144 int32_t rowIndex = tracker.TrackHits()[tmpHit].RowIndex();
146 float Y = (
float)tracker.Data().HitDataY(
row, tracker.TrackHits()[tmpHit].HitIndex()) *
row.HstepY() +
row.Grid().YMin();
147 if (!
right && Y < -
row.MaxY() * tracker.Param().
rec.
tpc.extrapolationTrackingYRangeUpper) {
149 PerformExtrapolationTrackingRun(sectorTarget, smem, tracker,
i, rowIndex, -tracker.Param().dAlpha, 1);
151 if (
right && Y >
row.MaxY() * tracker.Param().rec.tpc.extrapolationTrackingYRangeUpper) {
153 PerformExtrapolationTrackingRun(sectorTarget, smem, tracker,
i, rowIndex, tracker.Param().dAlpha, 1);
166 if (tracker.NHitsTotal() == 0) {
170 uint32_t sectorLeft = (
iSector + (GPUTPCGeometry::NSECTORS / 2 - 1)) % (GPUTPCGeometry::NSECTORS / 2);
173 sectorLeft += GPUTPCGeometry::NSECTORS / 2;
174 sectorRight += GPUTPCGeometry::NSECTORS / 2;
176 PerformExtrapolationTracking(nBlocks, nThreads, iBlock, iThread, tracker.GetConstantMem()->tpcTrackers[sectorLeft], smem, tracker,
true);
177 PerformExtrapolationTracking(nBlocks, nThreads, iBlock, iThread, tracker.GetConstantMem()->tpcTrackers[sectorRight], smem, tracker,
false);
183 if (
iSector == GPUTPCGeometry::NSECTORS / 2) {
186 if (
iSector == GPUTPCGeometry::NSECTORS) {
187 iSector = GPUTPCGeometry::NSECTORS / 2;
194 left = (
iSector + (GPUTPCGeometry::NSECTORS / 2 - 1)) % (GPUTPCGeometry::NSECTORS / 2);
196 if (
iSector >= (int32_t)GPUTPCGeometry::NSECTORS / 2) {
197 left += GPUTPCGeometry::NSECTORS / 2;
198 right += GPUTPCGeometry::NSECTORS / 2;
207 trk.CommonMemory()->nLocalTracks = trk.CommonMemory()->nTracks;
208 trk.CommonMemory()->nLocalTrackHits = trk.CommonMemory()->nTrackHits;
#define get_global_size(dim)
#define get_global_id(dim)
#define GPUCA_SHARED_CACHE(target, src, size)
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
#define CALINK_DEAD_CHANNEL
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t0