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 constexpr uint32_t NSECTORS = o2::tpc::constants::MAXSECTOR;
141 static constexpr 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 };
155};
156
158 static constexpr 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 constexpr uint32_t NSECTORS = o2::tpc::constants::MAXSECTOR;
169 const GPUTrackingInOutZS* tpcZS = nullptr;
172 uint32_t nClusterData[NSECTORS] = {0};
174 uint32_t nRawClusters[NSECTORS] = {0};
176 const GPUTPCTrack* sectorTracks[NSECTORS] = {nullptr};
177 uint32_t nSectorTracks[NSECTORS] = {0};
179 uint32_t nSectorClusters[NSECTORS] = {0};
181 uint32_t nMCLabelsTPC = 0;
182 const GPUTPCMCInfo* mcInfosTPC = nullptr;
183 uint32_t nMCInfosTPC = 0;
185 uint32_t nMCInfosTPCCol = 0;
187 uint32_t nMergedTracks = 0;
189 uint32_t nMergedTrackHits = 0;
190 const uint32_t* mergedTrackHitAttachment = nullptr;
191 const uint8_t* mergedTrackHitStates = nullptr;
193 uint32_t nOutputTracksTPCO2 = 0;
194 const uint32_t* outputClusRefsTPCO2 = nullptr;
199
200 // TPC links
201 int32_t* tpcLinkITS = nullptr;
202 int32_t* tpcLinkTRD = nullptr;
203 int32_t* tpcLinkTOF = nullptr;
205 float* globalTrackTimes = nullptr;
206 uint32_t nGlobalTracks = 0;
207
208 // TRD
211 uint32_t nTRDTracklets = 0;
212 const GPUTRDTrackGPU* trdTracks = nullptr;
213 const GPUTRDTrack* trdTracksO2 = nullptr;
214 uint32_t nTRDTracks = 0;
215 const float* trdTriggerTimes = nullptr;
216 const int32_t* trdTrackletIdxFirst = nullptr;
217 const uint8_t* trdTrigRecMask = nullptr;
218 uint32_t nTRDTriggerRecords = 0;
221 const GPUTRDTrack* trdTracksTPCTRD = nullptr;
222 uint32_t nTRDTracksTPCTRD = 0;
223
224 // TOF
226 uint32_t nTOFClusters = 0;
228 uint32_t nITSTPCTOFMatches = 0;
232 uint32_t nTPCTRDTOFMatches = 0;
234 uint32_t nTPCTOFMatches = 0;
235
236 // ITS
240 uint32_t nItsClusters = 0;
242 uint32_t nItsClusterROF = 0;
243 const o2::its::TrackITS* itsTracks = nullptr;
244 const o2::MCCompLabel* itsTrackMC = nullptr;
245 uint32_t nItsTracks = 0;
246 const int32_t* itsTrackClusIdx = nullptr;
248 uint32_t nItsTrackROF = 0;
249
250 // TPC-ITS
252 uint32_t nTracksTPCITSO2 = 0;
253
254 // Common
255 const GPUSettingsTF* settingsTF = nullptr;
256};
257
258} // namespace o2::gpu
259
260#endif
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
constexpr int MAXSECTOR
Definition Constants.h:28
Global TPC definitions and constants.
Definition SimTraits.h:168
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]
const GPUTPCDigitsMCInput * tpcDigitsMC
static constexpr uint32_t NSECTORS
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
static constexpr uint32_t NSECTORS
const o2::itsmft::ROFRecord * itsTrackROF
const o2::tpc::ClusterNativeAccess * clustersNativeReduced
const o2::tpc::TrackTPC * outputTracksTPCO2
const GPUTPCGMMergedTrackHit * mergedTrackHits
const GPUTrackingInOutDigits * tpcPackedDigits
const GPUTRDTrack * trdTracksITSTPCTRD
const o2::track::TrackParCov ** globalTracks
const GPUTPCMCInfoCol * mcInfosTPCCol
const GPUTPCGMMergedTrack * mergedTracks
GPUTrackingInOutZSSector sector[NSECTORS]
static constexpr uint32_t NSECTORS
static constexpr uint32_t NENDPOINTS