Project
Loading...
Searching...
No Matches
GPUTRDTrackData.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 GPUTRDTRACKDATA_H
18#define GPUTRDTRACKDATA_H
19
21 float mAlpha; // azimuthal angle of reference frame
22 float fX; // x: radial distance
23 float fY; // local Y-coordinate of a track (cm)
24 float fZ; // local Z-coordinate of a track (cm)
25 float mSinPhi; // local sine of the track momentum azimuthal angle
26 float fTgl; // tangent of the track momentum dip angle
27 float fq1Pt; // 1/pt (1/(GeV/c))
28 float fC[15]; // covariance matrix
29 int32_t fTPCTrackID; // id of corresponding TPC track
30 int32_t fAttachedTracklets[6]; // IDs for attached tracklets sorted by layer
31 uint8_t mIsPadrowCrossing; // bits 0 to 5 indicate whether a padrow was crossed
32
33 int32_t GetNTracklets() const
34 {
35 int32_t n = 0;
36 for (int32_t i = 0; i < 6; i++) {
37 if (fAttachedTracklets[i] >= 0) {
38 n++;
39 }
40 }
41 return n;
42 }
43};
44
46
48 uint32_t fCount; // number of tracklets
49#if defined(__HP_aCC) || defined(__DECCXX) || defined(__SUNPRO_CC)
50 GPUTRDTrackDataRecord fTracks[1]; // array of tracklets
51#else
52 GPUTRDTrackDataRecord fTracks[0]; // array of tracklets
53#endif
54 static size_t GetSize(uint32_t nTracks)
55 {
56 return sizeof(GPUTRDTrackData) + nTracks * sizeof(GPUTRDTrackDataRecord);
57 }
58 size_t GetSize() const { return GetSize(fCount); }
59};
60
62
63#endif // GPUTRDTRACKDATA_H
int32_t i
GLdouble n
Definition glcorearb.h:1982
int32_t GetNTracklets() const
size_t GetSize() const
GPUTRDTrackDataRecord fTracks[0]
static size_t GetSize(uint32_t nTracks)