Project
Loading...
Searching...
No Matches
GPUTPCGMMergerDump.cxx
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
14
15#include <cstdio>
16#include <cstring>
17#include <cmath>
18#include <algorithm>
19#include <iomanip>
20#include <numeric>
21#include "GPUTPCTracker.h"
22#include "GPUTPCTrackParam.h"
23#include "GPUTPCGMMerger.h"
24#include "GPUO2DataTypes.h"
25#include "GPUCommonMath.h"
26#include "GPUTPCTrackParam.h"
27#include "GPUTPCGMMergedTrack.h"
28#include "GPUParam.h"
29#include "GPUParam.inc"
30#include "GPUTPCGMTrackParam.h"
31#include "GPUTPCGMSectorTrack.h"
32#include "GPUTPCGMBorderTrack.h"
33#include "GPUReconstruction.h"
34#include "GPUDebugStreamer.h"
36#include "GPUTrackingRefit.h"
37#include "GPUConstantMem.h"
38#include "TPCFastTransformPOD.h"
39
40using namespace o2::gpu;
41using namespace gputpcgmmergertypes;
42
43void GPUTPCGMMerger::DumpSectorTracks(std::ostream& out) const
44{
45 std::streamsize ss = out.precision();
46 out << std::setprecision(6);
47 out << "\nTPC Merger Sector Tracks\n";
48 for (int32_t iSector = 0; iSector < NSECTORS; iSector++) {
49 out << "Sector Track Info Sector " << iSector << " Index " << (mSectorTrackInfoIndex[iSector + 1] - mSectorTrackInfoIndex[iSector]) << " / " << (mSectorTrackInfoIndex[NSECTORS + iSector + 1] - mSectorTrackInfoIndex[NSECTORS + iSector]) << "\n";
50 for (int32_t iGlobal = 0; iGlobal < 2; iGlobal++) {
51 out << " Track type " << iGlobal << "\n";
52 for (int32_t j = mSectorTrackInfoIndex[iSector + NSECTORS * iGlobal]; j < mSectorTrackInfoIndex[iSector + NSECTORS * iGlobal + 1]; j++) {
53 const auto& trk = mSectorTrackInfos[j];
54 out << " Track " << j << ": LocalId " << (iGlobal ? (trk.LocalTrackId() >> 24) : -1) << "/" << (iGlobal ? (trk.LocalTrackId() & 0xFFFFFF) : -1) << " NCl " << trk.NClusters() << " X " << trk.X() << " offsetz " << trk.TOffset() << " A " << trk.Alpha() << " Y " << trk.Y() << " Z " << trk.Z() << " SinPhi " << trk.SinPhi() << " CosPhi " << trk.CosPhi() << " SecPhi " << trk.SecPhi() << " Tgl " << trk.DzDs() << " QPt " << trk.QPt() << "\n";
55 }
56 }
57 }
58 out << std::setprecision(ss);
59}
60
61void GPUTPCGMMerger::DumpMergeRanges(std::ostream& out, uint8_t mergeMode) const
62{
63 int32_t n = (mergeMode & mergeModes::mergeAcrossCE) ? NSECTORS / 2 : NSECTORS;
64 for (int32_t i = 0; i < n; i++) {
65 int32_t n1, n2;
68 MergeBorderTracksSetup(n1, n2, b1, b2, jSector, i, mergeMode);
69 const int32_t nTrk = *mRec->GetConstantMem().tpcTrackers[jSector].NTracks();
70 const gputpcgmmergertypes::GPUTPCGMBorderRange* range1 = BorderRange(i);
71 const gputpcgmmergertypes::GPUTPCGMBorderRange* range2 = BorderRange(jSector) + nTrk;
72 out << "\nBorder Tracks : i " << i << " mergeMode " << (uint32_t)mergeMode << "\n";
73 for (int32_t k = 0; k < n1; k++) {
74 out << " " << k << ": t " << b1[k].TrackID() << " ncl " << b1[k].NClusters() << " row " << ((mergeMode & mergeModes::mergeAcrossCE) ? b1[k].Row() : -1) << " par " << b1[k].Par()[0] << " " << b1[k].Par()[1] << " " << b1[k].Par()[2] << " " << b1[k].Par()[3] << " " << b1[k].Par()[4]
75 << " offset " << b1[k].ZOffsetLinear() << " cov " << b1[k].Cov()[0] << " " << b1[k].Cov()[1] << " " << b1[k].Cov()[2] << " " << b1[k].Cov()[3] << " " << b1[k].Cov()[4] << " covd " << b1[k].CovD()[0] << " " << b1[k].CovD()[1] << "\n";
76 }
77 if (i != jSector) {
78 for (int32_t k = 0; k < n2; k++) {
79 out << " " << k << ": t " << b2[k].TrackID() << " ncl " << b2[k].NClusters() << " row " << ((mergeMode & mergeModes::mergeAcrossCE) ? b2[k].Row() : -1) << " par " << b2[k].Par()[0] << " " << b2[k].Par()[1] << " " << b2[k].Par()[2] << " " << b2[k].Par()[3] << " " << b2[k].Par()[4]
80 << " offset " << b2[k].ZOffsetLinear() << " cov " << b2[k].Cov()[0] << " " << b2[k].Cov()[1] << " " << b2[k].Cov()[2] << " " << b2[k].Cov()[3] << " " << b2[k].Cov()[4] << " covd " << b2[k].CovD()[0] << " " << b2[k].CovD()[1] << "\n";
81 }
82 }
83 out << "\nBorder Range : i " << i << " mergeMode " << (uint32_t)mergeMode << "\n";
84 for (int32_t k = 0; k < n1; k++) {
85 out << " " << k << ": " << range1[k].fId << " " << range1[k].fMin << " " << range1[k].fMax << "\n";
86 }
87 for (int32_t k = 0; k < n2; k++) {
88 out << " " << k << ": " << range2[k].fId << " " << range2[k].fMin << " " << range2[k].fMax << "\n";
89 }
90 }
91}
92
93void GPUTPCGMMerger::DumpTrackLinks(std::ostream& out, bool output, const char* type) const
94{
95 out << "\nTPC Merger Links " << type << "\n";
96 const int32_t n = output ? mMemory->nMergedTracks : SectorTrackInfoLocalTotal();
97 for (int32_t i = 0; i < n; i++) {
98 if (mTrackLinks[i] != -1) {
99 out << " " << i << ": " << mTrackLinks[i] << "\n";
100 }
101 }
102}
103
104void GPUTPCGMMerger::DumpMergedWithinSectors(std::ostream& out) const
105{
106 DumpTrackLinks(out, false, "within Sectors");
107 out << "\nTPC Merger Merge Within Sectors\n";
108 for (int32_t iSector = 0; iSector < NSECTORS; iSector++) {
109 for (int32_t j = mSectorTrackInfoIndex[iSector]; j < mSectorTrackInfoIndex[iSector + 1]; j++) {
110 const auto& trk = mSectorTrackInfos[j];
111 if (trk.NextSegmentNeighbour() >= 0 || trk.PrevSegmentNeighbour() >= 0) {
112 out << " Track " << j << ": Neighbour " << trk.PrevSegmentNeighbour() << " / " << trk.NextSegmentNeighbour() << "\n";
113 }
114 }
115 }
116}
117
118void GPUTPCGMMerger::DumpMergedBetweenSectors(std::ostream& out) const
119{
120 DumpTrackLinks(out, false, "between Sectors");
121 out << "\nTPC Merger Merge Between Sectors\n";
122 for (int32_t iSector = 0; iSector < NSECTORS; iSector++) {
123 for (int32_t j = mSectorTrackInfoIndex[iSector]; j < mSectorTrackInfoIndex[iSector + 1]; j++) {
124 const auto& trk = mSectorTrackInfos[j];
125 if (trk.NextNeighbour() >= 0 || trk.PrevNeighbour() >= 0) {
126 out << " Track " << j << ": Neighbour " << trk.PrevNeighbour() << " / " << trk.NextNeighbour() << "\n";
127 }
128 if (trk.PrevNeighbour() == -1 && trk.PrevSegmentNeighbour() == -1) {
129 PrintMergeGraph(&trk, out);
130 }
131 }
132 }
133}
134
135void GPUTPCGMMerger::DumpCollected(std::ostream& out) const
136{
137 out << "\nTPC Merger Collected Tracks\n";
138 DumpTrackParam(out);
139}
140
141void GPUTPCGMMerger::DumpTrackParam(std::ostream& out) const
142{
143 std::streamsize ss = out.precision();
144 out << std::setprecision(6);
145 for (uint32_t i = 0; i < mMemory->nMergedTracks; i++) {
146 const auto& trk = mMergedTracks[i];
147 const auto& p = trk.GetParam();
148 out << " Track " << i << ": Loop " << trk.Looper() << " Alpha " << trk.GetAlpha() << " X " << p.GetX() << " offset " << p.GetTOffset() << " Y " << p.GetY() << " Z " << p.GetZ() << " SPhi " << p.GetSinPhi() << " Tgl " << p.GetDzDs() << " QPt " << p.GetQPt() << " NCl " << trk.NClusters() << "\n";
149 }
150 out << std::setprecision(ss);
151}
152
153void GPUTPCGMMerger::DumpMergeCE(std::ostream& out) const
154{
155 DumpTrackLinks(out, true, " for CE merging");
156 out << "\nTPC Merger Merge CE\n";
157 for (uint32_t i = 0; i < mMemory->nMergedTracks; i++) {
158 const auto& trk = mMergedTracks[i];
159 if (trk.CCE()) {
160 out << " Track " << i << ": CCE\n";
161 }
162 }
163}
164
165void GPUTPCGMMerger::DumpTrackClusters(std::ostream& out, bool non0StateOnly, bool noNDF0) const
166{
167 for (uint32_t j = 0; j < mMemory->nMergedTracks; j++) {
168 const auto& trk = mMergedTracks[j];
169 if (trk.NClusters() == 0) {
170 continue;
171 }
172 if (noNDF0 && (!trk.OK() || trk.GetParam().GetNDF() < 0)) {
173 continue;
174 }
175 out << " Track " << j << ": (" << trk.NClusters() << "): ";
176 for (uint32_t i = trk.FirstClusterRef(); i < trk.FirstClusterRef() + trk.NClusters(); i++) {
177 if (!non0StateOnly || mClusters[i].state != 0) {
178 out << j << "/" << (i - trk.FirstClusterRef()) << ": " << (int32_t)mClusters[i].row << "/" << mClusters[i].num << "/" << (int32_t)mClusters[i].state << ", ";
179 }
180 }
181 out << "\n";
182 }
183}
184
185void GPUTPCGMMerger::DumpFitPrepare(std::ostream& out) const
186{
187 out << "\nTPC Merger Refit Prepare\n";
188 out << " Sort\n";
189 for (uint32_t i = 0; i < mMemory->nMergedTracks; i++) {
190 out << " " << i << ": " << mTrackOrderAttach[i] << "\n";
191 }
192 out << " Track Clusters";
194 uint32_t j = 0;
195 for (uint32_t i = 0; i < mNMaxClusters; i++) {
196 if ((mClusterAttachment[i] & attachFlagMask) != 0) {
197 if (j++ % 10 == 0) {
198 out << "\n Cluster attachment ";
199 }
200 out << i << ": " << (mClusterAttachment[i] & attachTrackMask) << " / " << (mClusterAttachment[i] & attachFlagMask) << " - ";
201 }
202 }
203 out << "\n";
204}
205
206void GPUTPCGMMerger::DumpRefit(std::ostream& out) const
207{
208 std::streamsize ss = out.precision();
209 out << std::setprecision(6);
210 out << "\nTPC Merger Refit\n";
211 for (uint32_t i = 0; i < mMemory->nMergedTracks; i++) {
212 const auto& trk = mMergedTracks[i];
213 if (trk.NClusters() == 0) {
214 continue;
215 }
216 const auto& p = trk.GetParam();
217 const auto& po = trk.OuterParam();
218 out << " Track " << i << ": OK " << trk.OK() << " Alpha " << trk.GetAlpha() << " X " << p.GetX() << " offset " << p.GetTOffset() << " Y " << p.GetY() << " Z " << p.GetZ() << " SPhi " << p.GetSinPhi() << " Tgl " << p.GetDzDs() << " QPt " << p.GetQPt() << " NCl " << trk.NClusters() << " / " << trk.NClustersFitted() << " Cov " << p.GetErr2Y() << "/" << p.GetErr2Z()
219 << " dEdx " << (trk.OK() && Param().dodEdxEnabled ? mMergedTracksdEdx[i].dEdxTotTPC : -1.f) << "/" << (trk.OK() && Param().dodEdxEnabled ? mMergedTracksdEdx[i].dEdxMaxTPC : -1.f)
220 << " Outer " << po.P[0] << "/" << po.P[1] << "/" << po.P[2] << "/" << po.P[3] << "/" << po.P[4]
221 << " NFitted " << trk.NClustersFitted() << " flags " << (int)trk.Flags() << "\n";
222 }
223 out << std::setprecision(ss);
224}
225
226void GPUTPCGMMerger::DumpLoopers(std::ostream& out) const
227{
228 out << "\n TPC Merger Looper Afterburner\n";
229 for (uint32_t i = 0; i < mMemory->nMergedTracks; i++) {
230 if (i && i % 100 == 0) {
231 out << "\n";
232 }
233 out << (int)mMergedTracks[i].MergedLooperUnconnected() << " ";
234 }
235 out << "\n";
236}
237
238void GPUTPCGMMerger::DumpFinal(std::ostream& out) const
239{
240 out << "\nTPC Merger Finalized\n";
241 out << "Track Clusters\n";
242 DumpTrackClusters(out, true);
243 uint32_t j = 0;
244 for (uint32_t i = 0; i < mNMaxClusters; i++) {
245 if ((mClusterAttachment[i] & attachFlagMask) != 0) {
246 if (++j % 10 == 0) {
247 out << " Cluster attachment ";
248 }
249 out << i << ": " << (mClusterAttachment[i] & attachTrackMask) << " / " << (mClusterAttachment[i] & attachFlagMask) << " - ";
250 if (j % 10 == 0) {
251 out << "\n";
252 }
253 }
254 }
255 out << "\n";
256}
257
258template <int32_t mergeType>
259inline void GPUTPCGMMerger::MergedTrackStreamerInternal(const GPUTPCGMBorderTrack& b1, const GPUTPCGMBorderTrack& b2, const char* name, int32_t sector1, int32_t sector2, uint8_t mergeMode, float weight, float frac) const
260{
261#ifdef DEBUG_STREAMER
262 std::vector<int32_t> hits1(GPUTPCGeometry::NROWS), hits2(GPUTPCGeometry::NROWS);
263 for (int32_t i = 0; i < GPUTPCGeometry::NROWS; i++) {
264 hits1[i] = hits2[i] = -1;
265 }
266 const GPUTPCTracker& tracker1 = GetConstantMem()->tpcTrackers[sector1];
267 const GPUTPCGMSectorTrack& sectorTrack1 = mSectorTrackInfos[b1.TrackID()];
268 const GPUTPCTrack& inTrack1 = *sectorTrack1.OrigTrack();
269 for (int32_t i = 0; i < inTrack1.NHits(); i++) {
270 const GPUTPCHitId& ic1 = tracker1.TrackHits()[inTrack1.FirstHitID() + i];
271 int32_t clusterIndex = tracker1.Data().ClusterDataIndex(tracker1.Data().Row(ic1.RowIndex()), ic1.HitIndex());
272 hits1[ic1.RowIndex()] = clusterIndex;
273 }
274 const GPUTPCTracker& tracker2 = GetConstantMem()->tpcTrackers[sector2];
275 const GPUTPCGMSectorTrack& sectorTrack2 = mSectorTrackInfos[b2.TrackID()];
276 const GPUTPCTrack& inTrack2 = *sectorTrack2.OrigTrack();
277 for (int32_t i = 0; i < inTrack2.NHits(); i++) {
278 const GPUTPCHitId& ic2 = tracker2.TrackHits()[inTrack2.FirstHitID() + i];
279 int32_t clusterIndex = tracker2.Data().ClusterDataIndex(tracker2.Data().Row(ic2.RowIndex()), ic2.HitIndex());
280 hits2[ic2.RowIndex()] = clusterIndex;
281 }
282
283 std::string debugname = std::string("debug_") + name;
284 std::string treename = std::string("tree_") + name;
285 o2::utils::DebugStreamer::instance()->getStreamer(debugname.c_str(), "UPDATE") << o2::utils::DebugStreamer::instance()->getUniqueTreeName(treename.c_str()).data() << "sector1=" << sector1 << "sector2=" << sector2 << "b1=" << b1 << "b2=" << b2 << "clusters1=" << hits1 << "clusters2=" << hits2 << "sectorTrack1=" << sectorTrack1 << "sectorTrack2=" << sectorTrack2 << "mergeMode=" << mergeMode << "weight=" << weight << "fraction=" << frac << "\n";
286#endif
287}
288
289void GPUTPCGMMerger::MergedTrackStreamer(const GPUTPCGMBorderTrack& b1, const GPUTPCGMBorderTrack& b2, const char* name, int32_t sector1, int32_t sector2, uint8_t mergeMode, float weight, float frac) const
290{
291#ifdef DEBUG_STREAMER
293 MergedTrackStreamerInternal<0>(b1, b2, name, sector1, sector2, mergeMode, weight, frac);
294 }
295#endif
296}
297
299{
300 for (int32_t i = 0; i < N; i++) {
301 if (tracks[i].TrackID() == trackId) {
302 return tracks[i];
303 }
304 }
305 throw std::runtime_error("didn't find border track");
306}
307
309{
310 GPUTPCGMMergedTrack trk = track;
311 GPUTrackingRefit refit;
312 ((GPUConstantMem*)GetConstantMem())->ioPtrs.mergedTrackHitStates = ClusterStateExt();
313 ((GPUConstantMem*)GetConstantMem())->ioPtrs.mergedTrackHits = Clusters();
314 refit.SetPtrsFromGPUConstantMem(GetConstantMem());
315 int32_t retval = refit.RefitTrackAsGPU(trk, false, true);
316 if (retval > 0) {
318 prop.SetMaterialTPC();
319 prop.SetPolynomialField(&Param().polynomialField);
320 prop.SetMaxSinPhi(constants::MAX_SIN_PHI);
321 prop.SetPropagateBzOnly(false);
322 prop.SetMatLUT(Param().rec.useMatLUT ? GetConstantMem()->calibObjects.matLUT : nullptr);
323 prop.SetTrack(&trk.Param(), trk.GetAlpha());
324 int32_t err = prop.PropagateToXAlpha(track.GetParam().GetX(), track.GetAlpha(), false);
325 if (err == 0) {
326 printf("REFIT RESULT %d, SnpDiff %f\n", retval, trk.GetParam().GetSinPhi() - track.GetParam().GetSinPhi());
327 if (retval > 20 && fabsf(trk.GetParam().GetSinPhi() - track.GetParam().GetSinPhi()) > 0.01f) {
328 printf("LARGE DIFF\n");
329 }
330 } else {
331 printf("PROPAGATE ERROR\n");
332 }
333 } else {
334 printf("REFIT ERROR\n");
335 }
336}
337
338std::vector<uint32_t> GPUTPCGMMerger::StreamerOccupancyBin(int32_t iSector, int32_t iRow, float time) const
339{
340 static int32_t size = getenv("O2_DEBUG_STREAMER_OCCUPANCY_NBINS") ? atoi(getenv("O2_DEBUG_STREAMER_OCCUPANCY_NBINS")) : Param().rec.tpc.occupancyMapTimeBinsAverage;
341 std::vector<uint32_t> retVal(1 + 2 * size);
342#ifdef DEBUG_STREAMER
343 const int32_t bin = CAMath::Max(0.f, time / Param().rec.tpc.occupancyMapTimeBins);
344 for (int32_t i = 0; i < 1 + 2 * size; i++) {
345 const int32_t mybin = bin + i - size;
346 retVal[i] = (mybin >= 0 && mybin < (int32_t)GPUTPCClusterOccupancyMapBin::getNBins(Param())) ? Param().occupancyMap[mybin] : 0;
347 }
348#endif
349 return retVal;
350}
351
352std::vector<float> GPUTPCGMMerger::StreamerUncorrectedZY(int32_t iSector, int32_t iRow, const GPUTPCGMTrackParam& track, const GPUTPCGMPropagator& prop) const
353{
354 std::vector<float> retVal(2);
355#ifdef DEBUG_STREAMER
356 GetConstantMem()->calibObjects.fastTransform->InverseTransformYZtoNominalYZ(iSector, iRow, track.GetY(), track.GetZ(), retVal[0], retVal[1]);
357#endif
358 return retVal;
359}
360
361void GPUTPCGMMerger::DebugStreamerUpdate(int32_t iTrk, int32_t ihit, float xx, float yy, float zz, const GPUTPCGMMergedTrackHit& cluster, const o2::tpc::ClusterNative& clusterNative, const GPUTPCGMTrackParam& track, const GPUTPCGMPropagator& prop, const gputpcgmmergertypes::InterpolationErrorHit& interpolation, int8_t rejectChi2, bool refit, int32_t retVal, float avgInvCharge, float posY, float posZ, int16_t clusterState, int32_t retValReject, float err2Y, float err2Z) const
362{
363#ifdef DEBUG_STREAMER
364 float time = clusterNative.getTime();
365 auto occupancyBins = StreamerOccupancyBin(cluster.sector, cluster.row, time);
366 auto uncorrectedYZ = StreamerUncorrectedZY(cluster.sector, cluster.row, track, prop);
367 float invCharge = 1.f / clusterNative.qMax;
368 int32_t iRow = cluster.row;
369 float unscaledMult = (time >= 0.f ? Param().GetUnscaledMult(time) / GPUTPCGeometry::Row2X(iRow) : 0.f);
370 const float clAlpha = Param().Alpha(cluster.sector);
371 uint32_t occupancyTotal = Param().occupancyTotal;
372 o2::utils::DebugStreamer::instance()->getStreamer("debug_update_track", "UPDATE") << o2::utils::DebugStreamer::instance()->getUniqueTreeName("tree_update_track").data()
373 << "iTrk=" << iTrk
374 << "ihit=" << ihit
375 << "xx=" << xx
376 << "yy=" << yy
377 << "zz=" << zz
378 << "cluster=" << cluster
379 << "clusterNative=" << clusterNative
380 << "track=" << track
381 << "rejectChi2=" << rejectChi2
382 << "interpolationhit=" << interpolation
383 << "refit=" << refit
384 << "retVal=" << retVal
385 << "occupancyBins=" << occupancyBins
386 << "occupancyTotal=" << occupancyTotal
387 << "trackUncorrectedYZ=" << uncorrectedYZ
388 << "avgInvCharge=" << avgInvCharge
389 << "invCharge=" << invCharge
390 << "unscaledMultiplicity=" << unscaledMult
391 << "alpha=" << clAlpha
392 << "iRow=" << iRow
393 << "posY=" << posY
394 << "posZ=" << posZ
395 << "clusterState=" << clusterState
396 << "retValReject=" << retValReject
397 << "err2Y=" << err2Y
398 << "err2Z=" << err2Z
399 << "\n";
400#endif
401}
int16_t time
Definition RawEventData.h:4
unsigned int uint32_t
int32_t i
uint32_t iSector
int32_t retVal
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
configStandalone rec
SurfaceTrackState state
std::vector< o2::its::TrackITS > tracks
void output(const std::map< std::string, ChannelStat > &channels)
Definition rawdump.cxx:197
uint32_t j
Definition RawData.h:0
POD correction map.
GPUReconstruction * mRec
const GPUConstantMem & GetConstantMem() const
void DumpTrackParam(std::ostream &out) const
int32_t int32_t int32_t int32_t uint8_t mergeMode
void DumpMergeCE(std::ostream &out) const
void DumpMergedBetweenSectors(std::ostream &out) const
void DumpFitPrepare(std::ostream &out) const
void DebugRefitMergedTrack(const GPUTPCGMMergedTrack &track) const
int32_t int32_t int32_t bool output
int32_t int32_t int32_t gputpcgmmergertypes::GPUTPCGMBorderRange int32_t N
int32_t GPUTPCGMBorderTrack GPUTPCGMBorderTrack *& b2
void DumpTrackLinks(std::ostream &out, bool output, const char *type) const
void DumpFinal(std::ostream &out) const
void MergedTrackStreamer(const GPUTPCGMBorderTrack &b1, const GPUTPCGMBorderTrack &b2, const char *name, int32_t sector1, int32_t sector2, uint8_t mergeMode, float weight, float frac) const
std::vector< float > StreamerUncorrectedZY(int32_t iSector, int32_t iRow, const GPUTPCGMTrackParam &track, const GPUTPCGMPropagator &prop) const
std::vector< uint32_t > StreamerOccupancyBin(int32_t iSector, int32_t iRow, float time) const
void DumpRefit(std::ostream &out) const
void DumpMergedWithinSectors(std::ostream &out) const
void DumpCollected(std::ostream &out) const
void DumpMergeRanges(std::ostream &out, uint8_t mergeMode) const
int32_t GPUTPCGMBorderTrack GPUTPCGMBorderTrack int32_t & jSector
void DumpTrackClusters(std::ostream &out, bool non0StateOnly=false, bool noNDF0=false) const
const GPUTPCGMBorderTrack & MergedTrackStreamerFindBorderTrack(const GPUTPCGMBorderTrack *tracks, int32_t N, int32_t trackId) const
void DumpLoopers(std::ostream &out) const
void DebugStreamerUpdate(int32_t iTrk, int32_t ihit, float xx, float yy, float zz, const GPUTPCGMMergedTrackHit &cluster, const o2::tpc::ClusterNative &clusterNative, const GPUTPCGMTrackParam &track, const GPUTPCGMPropagator &prop, const gputpcgmmergertypes::InterpolationErrorHit &interpolation, int8_t rejectChi2, bool refit, int32_t retVal, float avgInvCharge, float posY, float posZ, int16_t clusterState, int32_t retValReject, float err2Y, float err2Z) const
int32_t GPUTPCGMBorderTrack *& b1
void MergedTrackStreamerInternal(const GPUTPCGMBorderTrack &b1, const GPUTPCGMBorderTrack &b2, const char *name, int32_t sector1, int32_t sector2, uint8_t mergeMode, float weight, float frac) const
void DumpSectorTracks(std::ostream &out) const
void SetPtrsFromGPUConstantMem(const GPUConstantMem *v, GPUParam *p=nullptr)
GLdouble n
Definition glcorearb.h:1982
GLsizeiptr size
Definition glcorearb.h:659
GLuint const GLchar * name
Definition glcorearb.h:781
GLuint GLuint GLfloat weight
Definition glcorearb.h:5477
GLint GLint GLsizei GLint GLenum GLenum type
Definition glcorearb.h:275
GPUTPCTracker tpcTrackers[GPUTPCGeometry::NSECTORS]