Project
Loading...
Searching...
No Matches
GPUChainTracking.h
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#ifndef GPUCHAINTRACKING_H
16#define GPUCHAINTRACKING_H
17
18#include "GPUChain.h"
19#include "GPUDataTypesIO.h"
20#include "GPUDataTypesConfig.h"
22#include "utils/HashStreamBuf.h"
23#include <atomic>
24#include <mutex>
25#include <functional>
26#include <array>
27#include <vector>
28#include <utility>
29
30namespace o2::dataformats
31{
32template <typename TruthElement>
33class ConstMCTruthContainer;
34} // namespace o2::dataformats
35
36namespace o2::trd
37{
38class GeometryFlat;
39} // namespace o2::trd
40
41namespace o2::tpc
42{
43struct ClusterNativeAccess;
44struct ClusterNative;
45class CalibdEdxContainer;
46} // namespace o2::tpc
47
48namespace o2::base
49{
50class MatLayerCylSet;
51template <typename>
52class PropagatorImpl;
53using Propagator = PropagatorImpl<float>;
54} // namespace o2::base
55
56namespace o2::gpu
57{
58// class GPUTRDTrackerGPU;
59class GPUTPCGPUTracker;
60class GPUDisplayInterface;
61struct GPUSettingsDisplay;
62class GPUQA;
63class GPUTPCClusterStatistics;
64class GPUTRDGeometry;
65class GPUTRDRecoParam;
66class TPCFastTransformPOD;
67class GPUTrackingInputProvider;
68struct GPUChainTrackingFinalContext;
69struct GPUTPCCFChainContext;
70struct GPUNewCalibValues;
71struct GPUTriggerOutputs;
72struct CfFragment;
73class GPUTPCClusterFinder;
74struct GPUSettingsProcessing;
75struct GPUSettingsRec;
76struct GPUTPCExtraADC;
77
79{
80 friend class GPUReconstruction;
81
82 public:
83 ~GPUChainTracking() override;
85 void RegisterGPUProcessors() override;
86 int32_t Init() override;
87 int32_t PrepareEvent() override;
88 int32_t Finalize() override;
89 int32_t RunChain() override;
90 void MemorySize(size_t& gpuMem, size_t& pageLockedHostMem) override;
91 int32_t CheckErrorCodes(bool cpuOnly = false, bool forceShowErrors = false, std::vector<std::array<uint32_t, 4>>* fillErrors = nullptr) override;
92 bool SupportsDoublePipeline() override { return true; }
94 void ClearErrorCodes(bool cpuOnly = false);
95 int32_t DoQueuedUpdates(int32_t stream, bool updateSlave = true); // Forces doing queue calib updates, don't call when you are not sure you are allowed to do so!
96 bool QARanForTF() const { return mFractionalQAEnabled; }
97 static void ApplySyncSettings(GPUSettingsProcessing& proc, GPUSettingsRec& rec, gpudatatypes::RecoStepField& steps, bool syncMode, int32_t dEdxMode = -2);
98
99 // Structures for input and output data
101
102 struct InOutMemory {
107
108 std::unique_ptr<uint64_t[]> tpcZSpages;
109 std::unique_ptr<char[]> tpcZSpagesChar; // Same as above, but as char (needed for reading dumps, but deprecated, since alignment can be wrong) // TODO: Fix alignment
110 std::unique_ptr<char[]> tpcCompressedClusters; // TODO: Fix alignment
111 std::unique_ptr<GPUTrackingInOutZS> tpcZSmeta;
112 std::unique_ptr<GPUTrackingInOutZS::GPUTrackingInOutZSMeta> tpcZSmeta2;
113 std::unique_ptr<o2::tpc::Digit[]> tpcDigits[NSECTORS];
114 std::unique_ptr<GPUTrackingInOutDigits> digitMap;
115 std::unique_ptr<GPUTPCClusterData[]> clusterData[NSECTORS];
116 std::unique_ptr<AliHLTTPCRawCluster[]> rawClusters[NSECTORS];
117 std::unique_ptr<o2::tpc::ClusterNative[]> clustersNative;
118 std::unique_ptr<o2::tpc::ClusterNativeAccess> clusterNativeAccess;
119 std::unique_ptr<GPUTPCTrack[]> sectorTracks[NSECTORS];
120 std::unique_ptr<GPUTPCHitId[]> sectorClusters[NSECTORS];
121 std::unique_ptr<AliHLTTPCClusterMCLabel[]> mcLabelsTPC;
122 std::unique_ptr<GPUTPCMCInfo[]> mcInfosTPC;
123 std::unique_ptr<GPUTPCMCInfoCol[]> mcInfosTPCCol;
124 std::unique_ptr<GPUTPCGMMergedTrack[]> mergedTracks;
125 std::unique_ptr<GPUTPCGMMergedTrackHit[]> mergedTrackHits;
126 std::unique_ptr<GPUTRDTrackletWord[]> trdTracklets;
127 std::unique_ptr<GPUTRDSpacePoint[]> trdSpacePoints;
128 std::unique_ptr<float[]> trdTriggerTimes;
129 std::unique_ptr<int32_t[]> trdTrackletIdxFirst;
130 std::unique_ptr<uint8_t[]> trdTrigRecMask;
131 std::unique_ptr<GPUTRDTrackGPU[]> trdTracks;
132 std::unique_ptr<char[]> clusterNativeMC;
133 std::unique_ptr<o2::dataformats::ConstMCTruthContainerView<o2::MCCompLabel>> clusterNativeMCView;
134 std::unique_ptr<char[]> tpcDigitsMC[NSECTORS];
135 std::unique_ptr<o2::dataformats::ConstMCTruthContainerView<o2::MCCompLabel>[]> tpcDigitMCView;
136 std::unique_ptr<GPUTPCDigitsMCInput> tpcDigitMCMap;
137 std::unique_ptr<o2::dataformats::ConstMCTruthContainer<o2::MCCompLabel>> clusterNativeMCBuffer;
138 std::unique_ptr<GPUSettingsTF[]> settingsTF;
140
141 // Read / Dump / Clear Data
142 void ClearIOPointers();
143 void AllocateIOMemory();
144 using GPUChain::DumpData;
145 void DumpData(const char* filename, const GPUTrackingInOutPointers* ioPtrs = nullptr);
146 using GPUChain::ReadData;
147 int32_t ReadData(const char* filename);
148 void DumpSettings(const char* dir = "") override;
149 void ReadSettings(const char* dir = "") override;
150
151 // Converter / loader functions
155 void ConvertZSFilter(bool zs12bit);
156
157 // Getters for external usage of tracker classes
159 const GPUQA* GetQA() const { return mQAFromForeignChain ? mQAFromForeignChain->mQA.get() : mQA.get(); }
163 const GPUSettingsDisplay* GetEventDisplayConfig() const { return mConfigDisplay; }
164 const GPUSettingsQA* GetQAConfig() const { return mConfigQA; }
165
166 // Processing functions
167 int32_t RunTPCClusterizer(bool synchronizeOutput = true);
170 int32_t RunTPCTrackingMerger(bool synchronizeOutput = true);
172 template <int32_t I, class T = GPUTRDTracker>
173 int32_t DoTRDGPUTracking(T* externalInstance = nullptr);
177
178 // Getters / setters for parameters
189 void SetMatLUT(std::unique_ptr<o2::base::MatLayerCylSet>&& lut);
190 void SetTRDGeometry(std::unique_ptr<o2::trd::GeometryFlat>&& geo);
191 void SetTRDRecoParam(std::unique_ptr<GPUTRDRecoParam>&& par);
195 void SetO2Propagator(const o2::base::Propagator* prop);
200 void SetFinalInputCallback(std::function<int32_t()> v) { mWaitForFinalInputs = v; }
201
202 const GPUSettingsDisplay* mConfigDisplay = nullptr; // Abstract pointer to Standalone Display Configuration Structure
203 const GPUSettingsQA* mConfigQA = nullptr; // Abstract pointer to Standalone QA Configuration Structure
205
206 protected:
216 void UpdateGPUCalibObjects(int32_t stream, const GPUCalibObjectsConst* ptrMask = nullptr);
218
219 struct eventStruct // Must consist only of void* ptr that will hold the GPU event ptrs!
220 {
222 deviceEvent stream[constants::GPU_MAX_STREAMS];
225 };
226
228 void* dst;
229 void* src;
230 size_t size;
232 };
233
234 GPUChainTracking(GPUReconstruction* rec, uint32_t maxTPCHits = constants::GPU_MEM_MAX_TPC_CLUSTERS, uint32_t maxTRDTracklets = constants::GPU_MEM_MAX_TRD_TRACKLETS);
235
237
241 void PrintMemoryStatistics() override;
244 void PrintOutputStat();
245 static void DumpClusters(std::ostream& out, const o2::tpc::ClusterNativeAccess* clusters);
247 void DoDebugRawDump();
248
249 bool ValidateSteps();
250 bool ValidateSettings();
251
252 // Pointers to tracker classes
253 GPUTrackingFlatObjects mFlatObjectsShadow; // Host copy of flat objects that will be used on the GPU
254 GPUTrackingFlatObjects mFlatObjectsDevice; // flat objects that will be used on the GPU
255 std::unique_ptr<GPUTrackingInputProvider> mInputsHost;
256 std::unique_ptr<GPUTrackingInputProvider> mInputsShadow;
257
258 // Display / QA
259 bool mDisplayRunning = false;
260 std::unique_ptr<GPUDisplayInterface> mEventDisplay;
262 std::unique_ptr<GPUQA> mQA;
263 std::unique_ptr<GPUTPCClusterStatistics> mCompressionStatistics;
264
265 // Ptr to detector / calibration objects
267 std::unique_ptr<TPCPadGainCalib> mTPCPadGainCalibU; // TPC gain calibration and cluster finder parameters
268 std::unique_ptr<TPCZSLinkMapping> mTPCZSLinkMappingU; // TPC Mapping data required by ZS Link decoder
269 std::unique_ptr<o2::tpc::CalibdEdxContainer> mdEdxCalibContainerU; // TPC dEdx calibration container
270 std::unique_ptr<o2::base::MatLayerCylSet> mMatLUTU; // Material Lookup Table
271 std::unique_ptr<o2::trd::GeometryFlat> mTRDGeometryU; // TRD Geometry
272 std::unique_ptr<GPUTRDRecoParam> mTRDRecoParamU; // TRD RecoParam
273
274 // Ptrs to internal buffers
275 std::unique_ptr<o2::tpc::ClusterNativeAccess> mClusterNativeAccess, mClusterNativeAccessReduced;
277 std::unique_ptr<GPUTriggerOutputs> mTriggerBuffer;
278
279 // (Ptrs to) configuration objects
280 std::unique_ptr<GPUTPCCFChainContext> mCFContext;
282 std::unique_ptr<GPUCalibObjectsConst> mNewCalibObjects;
284 std::unique_ptr<GPUNewCalibValues> mNewCalibValues;
285
286 // Upper bounds for memory allocation
289
290 // Debug
291 std::filebuf mDebugFileBuffer;
293 std::unique_ptr<std::ostream> mDebugFile;
294
295 // Synchronization and Locks
297 std::array<int8_t, NSECTORS> mExtrapolationTrackingDone;
298
299 std::vector<outputQueueEntry> mOutputQueue;
300
301 private:
302 int32_t RunChainFinalize();
303 void OutputSanityCheck();
304 int32_t RunTPCTrackingSectors_internal();
305 int32_t RunTPCClusterizer_prepare(bool restorePointers, const GPUTPCExtraADC& extraADCs);
306#ifndef GPUCA_RUN2
307 std::pair<uint32_t, uint32_t> RunTPCClusterizer_transferZS(int32_t iSector, const CfFragment& frag, int32_t lane, const GPUTPCExtraADC& extraADCs);
308 void RunTPCClusterizer_compactPeaks(GPUTPCClusterFinder& clusterer, GPUTPCClusterFinder& clustererShadow, int32_t stage, bool doGPU, int32_t lane);
309 std::pair<uint32_t, uint32_t> TPCClusterizerDecodeZSCount(uint32_t iSector, const CfFragment& frag);
310 std::pair<uint32_t, uint32_t> TPCClusterizerDecodeZSCountUpdate(uint32_t iSector, const CfFragment& frag);
311 void TPCClusterizerEnsureZSOffsets(uint32_t iSector, const CfFragment& frag);
312 void TPCClusterizerTransferExtraADC(GPUTPCClusterFinder& clusterer, GPUTPCClusterFinder& clustererShadow, int lane, const GPUTPCExtraADC& extraADCs);
313 void TPCClusterizerCheckExtraADCZeros(GPUTPCClusterFinder& clusterer, GPUTPCClusterFinder& clustererShadow, int lane, const GPUTPCExtraADC& extraADCs);
314#endif
315 void RunTPCTrackingMerger_MergeBorderTracks(uint8_t mergeMode, GPUReconstruction::krnlDeviceType deviceType);
316 void RunTPCTrackingMerger_Resolve(int8_t useOrigTrackParam, int8_t mergeAll, GPUReconstruction::krnlDeviceType deviceType);
317 void RunTPCClusterFilter(o2::tpc::ClusterNativeAccess* clusters, std::function<o2::tpc::ClusterNative*(size_t)> allocator, bool applyClusterCuts);
318 bool NeedTPCClustersOnGPU();
319 void WriteReducedClusters();
320 void SortClusters(bool buildNativeGPU, bool propagateMCLabels, o2::tpc::ClusterNativeAccess* clusterAccess, o2::tpc::ClusterNative* clusters);
321 template <int32_t I>
322 int32_t RunTRDTrackingInternal();
323 uint32_t StreamForSector(uint32_t sector) const;
324
325 std::mutex mMutexUpdateCalib;
326 std::unique_ptr<GPUChainTrackingFinalContext> mPipelineFinalizationCtx;
327 GPUChainTrackingFinalContext* mPipelineNotifyCtx = nullptr;
328 std::function<int32_t()> mWaitForFinalInputs;
329
330 int32_t OutputStream() const { return mRec->NStreams() - 2; }
331};
332} // namespace o2::gpu
333
334#endif
int32_t i
uint32_t iSector
GPUChain * chain
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
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 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 proc
Stream buffer that supports on the fly hashing with an optional backing file buffer,...
uint32_t version
Definition RawData.h:8
void SetMatLUT(std::unique_ptr< o2::base::MatLayerCylSet > &&lut)
static void ApplySyncSettings(GPUSettingsProcessing &proc, GPUSettingsRec &rec, gpudatatypes::RecoStepField &steps, bool syncMode, int32_t dEdxMode=-2)
void SetQAFromForeignChain(GPUChainTracking *chain)
std::unique_ptr< o2::base::MatLayerCylSet > mMatLUTU
static void DebugSortCompressedClusters(o2::tpc::CompressedClustersFlat *cls)
const o2::base::Propagator * GetDeviceO2Propagator()
std::unique_ptr< o2::tpc::ClusterNativeAccess > mClusterNativeAccess
std::unique_ptr< GPUTRDRecoParam > mTRDRecoParamU
void SetCalibObjects(const GPUCalibObjects &obj)
void SetTRDGeometry(std::unique_ptr< o2::trd::GeometryFlat > &&geo)
void SetCalibObjects(const GPUCalibObjectsConst &obj)
const o2::base::Propagator * GetO2Propagator() const
GPUChainTracking * mQAFromForeignChain
void SetO2Propagator(const o2::base::Propagator *prop)
std::unique_ptr< GPUQA > mQA
void ReadSettings(const char *dir="") override
GPUTrackingFlatObjects mFlatObjectsDevice
int32_t RunTPCClusterizer(bool synchronizeOutput=true)
void SetTRDGeometry(const o2::trd::GeometryFlat *geo)
std::array< int8_t, NSECTORS > mExtrapolationTrackingDone
const GPUTRDGeometry * GetTRDGeometry() const
static void DumpClusters(std::ostream &out, const o2::tpc::ClusterNativeAccess *clusters)
void UpdateGPUCalibObjectsPtrs(int32_t stream)
int32_t RunTPCTrackingMerger(bool synchronizeOutput=true)
std::unique_ptr< GPUTrackingInputProvider > mInputsHost
const TPCFastTransformPOD * GetTPCTransform() const
void SetMatLUT(const o2::base::MatLayerCylSet *lut)
std::unique_ptr< GPUTPCClusterStatistics > mCompressionStatistics
const o2::base::MatLayerCylSet * GetMatLUT() const
void SetTRDRecoParam(std::unique_ptr< GPUTRDRecoParam > &&par)
std::unique_ptr< std::ostream > mDebugFile
std::array< GPUOutputControl *, GPUTrackingOutputs::count()> mSubOutputControls
std::unique_ptr< GPUTriggerOutputs > mTriggerBuffer
std::vector< outputQueueEntry > mOutputQueue
void SetTPCFastTransform(aligned_unique_buffer_ptr< TPCFastTransformPOD > &&tpcFastTransform)
void SetUpdateCalibObjects(const GPUCalibObjectsConst &obj, const GPUNewCalibValues &vals)
bool SupportsDoublePipeline() override
const GPUSettingsDisplay * GetEventDisplayConfig() const
std::unique_ptr< GPUCalibObjectsConst > mNewCalibObjects
const TPCPadGainCalib * GetTPCPadGainCalib() const
std::unique_ptr< TPCPadGainCalib > mTPCPadGainCalibU
std::unique_ptr< o2::tpc::CalibdEdxContainer > mdEdxCalibContainerU
std::unique_ptr< o2::trd::GeometryFlat > mTRDGeometryU
std::unique_ptr< TPCZSLinkMapping > mTPCZSLinkMappingU
const GPUTRDRecoParam * GetTRDRecoParam() const
int32_t DoTRDGPUTracking(T *externalInstance=nullptr)
GPUTrackingFlatObjects mFlatObjectsShadow
const GPUSettingsDisplay * mConfigDisplay
void RegisterPermanentMemoryAndProcessors() override
void RegisterGPUProcessors() override
const GPUSettingsQA * GetQAConfig() const
void DumpData(const char *filename, const GPUTrackingInOutPointers *ioPtrs=nullptr)
void SetTRDRecoParam(const GPUTRDRecoParam *par)
void ClearErrorCodes(bool cpuOnly=false)
const GPUQA * GetQA() const
void MemorySize(size_t &gpuMem, size_t &pageLockedHostMem) override
void SetFinalInputCallback(std::function< int32_t()> v)
std::unique_ptr< GPUTPCCFChainContext > mCFContext
void SetSubOutputControl(int32_t i, GPUOutputControl *v)
int32_t DoQueuedUpdates(int32_t stream, bool updateSlave=true)
std::unique_ptr< GPUNewCalibValues > mNewCalibValues
int32_t CheckErrorCodes(bool cpuOnly=false, bool forceShowErrors=false, std::vector< std::array< uint32_t, 4 > > *fillErrors=nullptr) override
GPUDisplayInterface * GetEventDisplay()
int32_t PrepareEvent() override
void UpdateGPUCalibObjects(int32_t stream, const GPUCalibObjectsConst *ptrMask=nullptr)
GPUTrackingInOutPointers & mIOPtrs
struct o2::gpu::GPUChainTracking::InOutMemory mIOMem
int32_t ReadData(const char *filename)
const o2::tpc::CalibdEdxContainer * GetdEdxCalibContainer() const
std::unique_ptr< GPUTrackingInputProvider > mInputsShadow
const GPUSettingsQA * mConfigQA
int32_t FinalizePipelinedProcessing() override
std::unique_ptr< GPUDisplayInterface > mEventDisplay
const TPCZSLinkMapping * GetTPCZSLinkMapping() const
void DumpSettings(const char *dir="") override
int32_t ExtrapolationTracking(uint32_t iSector, bool blocking)
std::unique_ptr< o2::tpc::ClusterNativeAccess > mClusterNativeAccessReduced
aligned_unique_buffer_ptr< TPCFastTransformPOD > mTPCFastTransformU
uint32_t DumpData(FILE *fp, const T *const *entries, const S *num, InOutPointerType type)
Definition GPUChain.h:145
GPUReconstructionCPU * mRec
Definition GPUChain.h:79
static constexpr int32_t NSECTORS
Definition GPUChain.h:58
size_t ReadData(FILE *fp, const T **entries, S *num, std::unique_ptr< T[]> *mem, InOutPointerType type, T **nonConstPtrs=nullptr)
Definition GPUChain.h:150
GPUReconstruction * rec()
Definition GPUChain.h:66
const GLdouble * v
Definition glcorearb.h:832
GLuint GLuint stream
Definition glcorearb.h:1806
PropagatorF Propagator
Definition Propagator.h:225
Definition of a container to keep/associate and arbitrary number of labels associated to an index wit...
Global TPC definitions and constants.
std::string filename()
std::unique_ptr< o2::tpc::Digit[]> tpcDigits[NSECTORS]
std::unique_ptr< char[]> tpcCompressedClusters
std::unique_ptr< GPUTPCMCInfo[]> mcInfosTPC
std::unique_ptr< char[]> tpcDigitsMC[NSECTORS]
std::unique_ptr< GPUTRDTrackletWord[]> trdTracklets
std::unique_ptr< o2::dataformats::ConstMCTruthContainerView< o2::MCCompLabel >[]> tpcDigitMCView
std::unique_ptr< GPUTPCMCInfoCol[]> mcInfosTPCCol
std::unique_ptr< GPUTPCGMMergedTrackHit[]> mergedTrackHits
std::unique_ptr< int32_t[]> trdTrackletIdxFirst
std::unique_ptr< GPUTPCGMMergedTrack[]> mergedTracks
std::unique_ptr< AliHLTTPCClusterMCLabel[]> mcLabelsTPC
std::unique_ptr< o2::dataformats::ConstMCTruthContainerView< o2::MCCompLabel > > clusterNativeMCView
std::unique_ptr< GPUTrackingInOutDigits > digitMap
std::unique_ptr< GPUTPCClusterData[]> clusterData[NSECTORS]
std::unique_ptr< o2::tpc::ClusterNative[]> clustersNative
std::unique_ptr< GPUTPCDigitsMCInput > tpcDigitMCMap
InOutMemory & operator=(InOutMemory &&)
std::unique_ptr< float[]> trdTriggerTimes
std::unique_ptr< uint64_t[]> tpcZSpages
std::unique_ptr< GPUTPCTrack[]> sectorTracks[NSECTORS]
std::unique_ptr< GPUTRDSpacePoint[]> trdSpacePoints
std::unique_ptr< GPUTrackingInOutZS > tpcZSmeta
std::unique_ptr< o2::dataformats::ConstMCTruthContainer< o2::MCCompLabel > > clusterNativeMCBuffer
std::unique_ptr< uint8_t[]> trdTrigRecMask
std::unique_ptr< o2::tpc::ClusterNativeAccess > clusterNativeAccess
std::unique_ptr< AliHLTTPCRawCluster[]> rawClusters[NSECTORS]
std::unique_ptr< GPUTPCHitId[]> sectorClusters[NSECTORS]
std::unique_ptr< GPUSettingsTF[]> settingsTF
std::unique_ptr< GPUTRDTrackGPU[]> trdTracks
std::unique_ptr< GPUTrackingInOutZS::GPUTrackingInOutZSMeta > tpcZSmeta2
static constexpr size_t count()
std::vector< Cluster > clusters