Project
Loading...
Searching...
No Matches
GPUTRDTrackerDebug.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
16
17#ifndef GPUTRDTRACKERDEBUG_H
18#define GPUTRDTRACKERDEBUG_H
19
20#if defined(ENABLE_GPUTRDDEBUG) && 0
21
22// could implement debug code, as we had for AliRoot
23
24#else
25
26namespace o2::gpu
27{
28
29template <class T>
31{
32 public:
33 GPUd() void CreateStreamer() {}
34 GPUd() void ExpandVectors() {}
35 GPUd() void Reset() {}
36
37 // general information
38 GPUd() void SetGeneralInfo(int32_t iEv, int32_t nTPCtracks, int32_t iTrk, float pt) {}
39
40 // track parameters
41 GPUd() void SetTrackParameter(const T& trk, int32_t ly) {}
42 GPUd() void SetTrackParameterNoUp(const T& trk, int32_t ly) {}
43 GPUd() void SetTrack(const T& trk) {}
44
45 // tracklet parameters
46 GPUd() void SetRawTrackletPosition(const float fX, const float fY, const float fZ, int32_t ly) {}
47 GPUd() void SetCorrectedTrackletPosition(const float* fYZ, int32_t ly) {}
48 GPUd() void SetTrackletCovariance(const float* fCov, int32_t ly) {}
49 GPUd() void SetTrackletProperties(const float dy, const int32_t det, int32_t ly) {}
50
51 // update information
52 GPUd() void SetChi2Update(float chi2, int32_t ly) {}
53 GPUd() void SetChi2YZPhiUpdate(float chi2, int32_t ly) {}
54
55 // other infos
56 GPUd() void SetRoad(float roadY, float roadZ, int32_t ly) {}
57 GPUd() void SetFindable(bool* findable) {}
58 GPUd() void Output() {}
59};
60#if !defined(GPUCA_GPUCODE) || defined(GPUCA_GPUCODE_DEVICE) // FIXME: DR: WORKAROUND to avoid CUDA bug creating host symbols for device code.
61template class GPUTRDTrackerDebug<GPUTRDTrackGPU>;
62#if !defined(GPUCA_STANDALONE) && !defined(GPUCA_GPUCODE)
63template class GPUTRDTrackerDebug<GPUTRDTrack>;
64#endif
65#endif
66} // namespace o2::gpu
67
68#endif
69#endif // GPUTRDTRACKERDEBUG_H
GPUd() void ExpandVectors()
GPUd() void SetGeneralInfo(int32_t iEv
GPUd() void CreateStreamer()
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)