Project
Loading...
Searching...
No Matches
GPUDataTypesIO.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 GPUDATATYPESIO_H
16#define GPUDATATYPESIO_H
17
18#include "GPUCommonDef.h"
19
20// These are basic and non-complex data types, which will also be visible on the GPU.
21// Please add complex data types required on the host but not GPU to GPUHostDataTypes.h and forward-declare!
22#ifndef GPUCA_GPUCODE_DEVICE
23#include <cstddef>
24#endif
25#include "GPUTRDDef.h"
27
30namespace o2::tpc
31{
32struct ClusterNativeAccess;
33struct CompressedClustersFlat;
34class Digit;
35class TrackTPC;
36namespace constants
37{
38} // namespace constants
39} // namespace o2::tpc
40
41namespace o2
42{
43class MCCompLabel;
44template <typename T>
45class BaseCluster;
46namespace base
47{
48template <typename T>
49class PropagatorImpl;
50class MatLayerCylSet;
51} // namespace base
52namespace track
53{
54template <typename value_T>
55class TrackParametrizationWithError;
56using TrackParCov = TrackParametrizationWithError<float>;
57} // namespace track
58namespace trd
59{
60class GeometryFlat;
61} // namespace trd
62namespace dataformats
63{
64class TrackTPCITS;
65class MatchInfoTOF;
66template <class T>
68template <class T>
69class ConstMCTruthContainerView;
70} // namespace dataformats
71namespace itsmft
72{
73class CompClusterExt;
74class ROFRecord;
75class TopologyDictionary;
76} // namespace itsmft
77namespace its
78{
79class TrackITS;
80} // namespace its
81namespace tof
82{
83class Cluster;
84} // namespace tof
85namespace tpc
86{
87class CalibdEdxContainer;
88class ORTRootSerializer;
89} // namespace tpc
90} // namespace o2
91
92namespace o2::gpu
93{
94class CorrectionMapsHelper;
95class TPCFastTransformPOD;
96struct TPCPadGainCalib;
97struct TPCZSLinkMapping;
98
99class GPUTRDRecoParam;
100class GPUTPCTrack;
101class GPUTPCHitId;
102class GPUTPCGMMergedTrack;
103struct GPUTPCGMMergedTrackHit;
104class GPUTRDTrackletWord;
105class GPUTRDSpacePoint;
106struct GPUTPCMCInfo;
107struct GPUTPCMCInfoCol;
108struct GPUTPCClusterData;
109struct GPUTRDTrackletLabels;
110struct GPUTPCDigitsMCInput;
111struct GPUSettingsTF;
112
113template <class T>
115 typedef T type;
116};
117template <class T>
118struct ConstPtr {
119 typedef const T type;
120};
121
122template <template <typename T> class S>
123struct GPUCalibObjectsTemplate { // use only pointers on PODs or flat objects here
133 // NN clusterizer objects
134 typename S<o2::tpc::ORTRootSerializer>::type* nnClusterizerNetworks[3] = {nullptr, nullptr, nullptr};
135};
136typedef GPUCalibObjectsTemplate<DefaultPtr> GPUCalibObjects; // NOTE: These 2 must have identical layout since they are memcopied
138
140 static GPUglobalconstexpr() uint32_t NSECTORS = o2::tpc::constants::MAXSECTOR;
141 static GPUglobalconstexpr() uint32_t NENDPOINTS = 20;
143 const void* const* zsPtr[NENDPOINTS];
144 const uint32_t* nZSPtr[NENDPOINTS];
145 uint32_t count[NENDPOINTS];
146 };
148 uint32_t count[NSECTORS][NENDPOINTS] = {};
149 };
151 void* ptr[NSECTORS][NENDPOINTS];
152 uint32_t n[NSECTORS][NENDPOINTS];
153 };
155};
156
158 static GPUglobalconstexpr() uint32_t NSECTORS = o2::tpc::constants::MAXSECTOR;
159 const o2::tpc::Digit* tpcDigits[NSECTORS] = {nullptr};
160 size_t nTPCDigits[NSECTORS] = {0};
162};
163
166
167 // TPC
168 static GPUglobalconstexpr() uint32_t NSECTORS = o2::tpc::constants::MAXSECTOR;
169 const GPUTrackingInOutZS* tpcZS = nullptr;
171 const GPUTPCClusterData* clusterData[NSECTORS] = {nullptr};
172 uint32_t nClusterData[NSECTORS] = {0};
173 const AliHLTTPCRawCluster* rawClusters[NSECTORS] = {nullptr};
174 uint32_t nRawClusters[NSECTORS] = {0};
176 const GPUTPCTrack* sectorTracks[NSECTORS] = {nullptr};
177 uint32_t nSectorTracks[NSECTORS] = {0};
178 const GPUTPCHitId* sectorClusters[NSECTORS] = {nullptr};
179 uint32_t nSectorClusters[NSECTORS] = {0};
182 const GPUTPCMCInfo* mcInfosTPC = nullptr;
199
200 // TPC links
201 int32_t* tpcLinkITS = nullptr;
202 int32_t* tpcLinkTRD = nullptr;
203 int32_t* tpcLinkTOF = nullptr;
205 float* globalTrackTimes = nullptr;
207
208 // TRD
212 const GPUTRDTrackGPU* trdTracks = nullptr;
213 const GPUTRDTrack* trdTracksO2 = nullptr;
215 const float* trdTriggerTimes = nullptr;
216 const int32_t* trdTrackletIdxFirst = nullptr;
217 const uint8_t* trdTrigRecMask = nullptr;
221 const GPUTRDTrack* trdTracksTPCTRD = nullptr;
223
224 // TOF
235
236 // ITS
243 const o2::its::TrackITS* itsTracks = nullptr;
244 const o2::MCCompLabel* itsTrackMC = nullptr;
246 const int32_t* itsTrackClusIdx = nullptr;
249
250 // TPC-ITS
253
254 // Common
255 const GPUSettingsTF* settingsTF = nullptr;
256};
257
258} // namespace o2::gpu
259
260#endif
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 trd
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
o2::track::TrackParCov TrackParCov
Definition Recon.h:39
HMPID cluster implementation.
Definition Cluster.h:27
Cluster class for TOF.
Definition Cluster.h:37
GLdouble n
Definition glcorearb.h:1982
GLint GLsizei count
Definition glcorearb.h:399
GLint GLint GLsizei GLint GLenum GLenum type
Definition glcorearb.h:275
o2::cpv::Digit Digit
GPUCalibObjectsTemplate< DefaultPtr > GPUCalibObjects
GPUCalibObjectsTemplate< ConstPtr > GPUCalibObjectsConst
const bool const int TrackITSInternal< NLayers > & track
Global TPC definitions and constants.
TrackParCovF TrackParCov
Definition Track.h:33
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
S< o2::trd::GeometryFlat >::type * trdGeometry
S< o2::itsmft::TopologyDictionary >::type * itsPatternDict
S< o2::tpc::CalibdEdxContainer >::type * dEdxCalibContainer
S< TPCZSLinkMapping >::type * tpcZSLinkMapping
S< TPCFastTransformPOD >::type * fastTransform
S< GPUTRDRecoParam >::type * trdRecoParam
S< TPCPadGainCalib >::type * tpcPadGain
S< o2::base::PropagatorImpl< float > >::type * o2Propagator
S< o2::base::MatLayerCylSet >::type * matLUT
S< o2::tpc::ORTRootSerializer >::type * nnClusterizerNetworks[3]
const o2::tpc::Digit * tpcDigits[NSECTORS]
static GPUglobalconstexpr() uint32_t NSECTORS
const GPUTPCDigitsMCInput * tpcDigitsMC
const o2::itsmft::CompClusterExt * itsCompClusters
const GPUTPCHitId * sectorClusters[NSECTORS]
const o2::tpc::ClusterNativeAccess * clustersNative
const o2::dataformats::MCTruthContainer< o2::MCCompLabel > * itsClusterMC
const o2::dataformats::MatchInfoTOF * tpctofMatches
const o2::dataformats::MatchInfoTOF * tpctrdtofMatches
const o2::MCCompLabel * itsTrackMC
const o2::dataformats::MatchInfoTOF * itstpctrdtofMatches
const o2::tpc::CompressedClustersFlat * tpcCompressedClusters
const AliHLTTPCClusterMCLabel * mcLabelsTPC
const GPUTRDSpacePoint * trdSpacePoints
const o2::tof::Cluster * tofClusters
const o2::BaseCluster< float > * itsClusters
const GPUTPCTrack * sectorTracks[NSECTORS]
const o2::itsmft::ROFRecord * itsClusterROF
const o2::dataformats::MatchInfoTOF * itstpctofMatches
const GPUTRDTrackGPU * trdTracks
const GPUTRDTrackletWord * trdTracklets
const GPUTrackingInOutZS * tpcZS
const AliHLTTPCRawCluster * rawClusters[NSECTORS]
const GPUTPCClusterData * clusterData[NSECTORS]
const o2::its::TrackITS * itsTracks
const o2::dataformats::TrackTPCITS * tracksTPCITSO2
const o2::MCCompLabel * outputTracksTPCO2MC
const o2::itsmft::ROFRecord * itsTrackROF
const o2::tpc::ClusterNativeAccess * clustersNativeReduced
const o2::tpc::TrackTPC * outputTracksTPCO2
static GPUglobalconstexpr() uint32_t NSECTORS
const GPUTPCGMMergedTrackHit * mergedTrackHits
const GPUTrackingInOutDigits * tpcPackedDigits
const GPUTRDTrack * trdTracksITSTPCTRD
const o2::track::TrackParCov ** globalTracks
const GPUTPCMCInfoCol * mcInfosTPCCol
const GPUTPCGMMergedTrack * mergedTracks
GPUTrackingInOutZSSector sector[NSECTORS]
static GPUglobalconstexpr() uint32_t NSECTORS