Project
Loading...
Searching...
No Matches
GPUTPCTracklet.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 GPUTPCTRACKLET_H
16#define GPUTPCTRACKLET_H
17
19#include "GPUTPCDef.h"
20
21namespace o2::gpu
22{
30{
31 public:
32#if !defined(GPUCA_GPUCODE)
33 GPUTPCTracklet() : mFirstRow(0), mLastRow(0), mParam(), mHitWeight(0), mFirstHit(0){};
34#endif
35
36 GPUhd() int32_t FirstRow() const { return mFirstRow; }
37 GPUhd() int32_t LastRow() const { return mLastRow; }
38 GPUhd() int32_t HitWeight() const { return mHitWeight; }
39 GPUhd() uint32_t FirstHit() const { return mFirstHit; }
40 GPUhd() const GPUTPCBaseTrackParam& Param() const { return mParam; }
41
42 GPUhd() void SetFirstRow(int32_t v) { mFirstRow = v; }
43 GPUhd() void SetLastRow(int32_t v) { mLastRow = v; }
44 GPUhd() void SetFirstHit(uint32_t v) { mFirstHit = v; }
45 GPUhd() void SetParam(const GPUTPCBaseTrackParam& v) { mParam = reinterpret_cast<const GPUTPCBaseTrackParam&>(v); }
46 GPUhd() void SetHitWeight(const int32_t w) { mHitWeight = w; }
47
48 private:
49 int32_t mFirstRow; // first TPC row // TODO: We can use smaller data format here!
50 int32_t mLastRow; // last TPC row
51 GPUTPCBaseTrackParam mParam; // tracklet parameters
52 int32_t mHitWeight; // Hit Weight of Tracklet
53 uint32_t mFirstHit; // first hit in row hit array
54};
55} // namespace o2::gpu
56
57#endif // GPUTPCTRACKLET_H
GPUhd() int32_t LastRow() const
GPUhd() int32_t HitWeight() const
GPUhd() void SetFirstHit(uint32_t v)
GPUhd() void SetFirstRow(int32_t v)
GPUhd() int32_t FirstRow() const
GPUCA_GPUCODE.
GPUhd() void SetParam(const GPUTPCBaseTrackParam &v)
GPUhd() void SetLastRow(int32_t v)
GPUhd() void SetHitWeight(const int32_t w)
GPUhd() const GPUTPCBaseTrackParam &Param() const
GPUhd() uint32_t FirstHit() const
const GLdouble * v
Definition glcorearb.h:832
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
GLubyte GLubyte GLubyte GLubyte w
Definition glcorearb.h:852