Project
Loading...
Searching...
No Matches
GPUTPCTrack.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 GPUTPCTRACK_H
16#define GPUTPCTRACK_H
17
19#include "GPUTPCDef.h"
20
21namespace o2::gpu
22{
31{
32 public:
33#if !defined(GPUCA_GPUCODE)
34 GPUTPCTrack() : mFirstHitID(0), mNHits(0), mLocalTrackId(-1), mParam()
35 {
36 }
37 ~GPUTPCTrack() = default;
38#endif
39
40 GPUhd() int32_t NHits() const { return mNHits; }
41 GPUhd() int32_t LocalTrackId() const { return mLocalTrackId; }
42 GPUhd() int32_t FirstHitID() const { return mFirstHitID; }
43 GPUhd() const GPUTPCBaseTrackParam& Param() const { return mParam; }
44
45 GPUhd() void SetNHits(int32_t v) { mNHits = v; }
46 GPUhd() void SetLocalTrackId(int32_t v) { mLocalTrackId = v; }
47 GPUhd() void SetFirstHitID(int32_t v) { mFirstHitID = v; }
48
49 GPUhd() void SetParam(const GPUTPCBaseTrackParam& v) { mParam = v; }
50
51 private:
52 int32_t mFirstHitID; // index of the first track cell in the track->cell pointer array
53 int32_t mNHits; // number of track cells
54 int32_t mLocalTrackId; // Id of local track this extrapolated track belongs to, index of this track itself if it is a local track
55 GPUTPCBaseTrackParam mParam; // track parameters
56
57 private:
58};
59} // namespace o2::gpu
60
61#endif // GPUTPCTRACK_H
GPUhd() int32_t NHits() const
GPUCA_GPUCODE.
Definition GPUTPCTrack.h:40
GPUhd() const GPUTPCBaseTrackParam &Param() const
Definition GPUTPCTrack.h:43
GPUhd() void SetNHits(int32_t v)
Definition GPUTPCTrack.h:45
GPUhd() void SetParam(const GPUTPCBaseTrackParam &v)
Definition GPUTPCTrack.h:49
GPUhd() int32_t LocalTrackId() const
Definition GPUTPCTrack.h:41
GPUhd() void SetLocalTrackId(int32_t v)
Definition GPUTPCTrack.h:46
GPUhd() int32_t FirstHitID() const
Definition GPUTPCTrack.h:42
GPUhd() void SetFirstHitID(int32_t v)
Definition GPUTPCTrack.h:47
const GLdouble * v
Definition glcorearb.h:832
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)