Project
Loading...
Searching...
No Matches
GPUTrackParamConvert.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 O2_GPU_TRACKPARAMCONVERT_H
16#define O2_GPU_TRACKPARAMCONVERT_H
17
18#include "GPUO2DataTypes.h"
19#include "GPUTPCGMTrackParam.h"
20#include "GPUTPCGMMergedTrack.h"
21#include "GPUTPCGMPropagator.h"
25
26namespace o2::gpu
27{
28
29GPUdi() static void convertTrackParam(GPUTPCGMTrackParam& trk, const o2::track::TrackParCov& trkX)
30{
31 for (int32_t i = 0; i < 5; i++) {
32 trk.Par()[i] = trkX.getParams()[i];
33 }
34 for (int32_t i = 0; i < 15; i++) {
35 trk.Cov()[i] = trkX.getCov()[i];
36 }
37 trk.X() = trkX.getX();
38}
39GPUdi() static void convertTrackParam(o2::track::TrackParCov& trk, const GPUTPCGMTrackParam& trkX)
40{
41 for (int32_t i = 0; i < 5; i++) {
42 trk.setParam(trkX.GetPar()[i], i);
43 }
44 for (int32_t i = 0; i < 15; i++) {
45 trk.setCov(trkX.GetCov()[i], i);
46 }
47 trk.setX(trkX.GetX());
48}
49
50} // namespace o2::gpu
51
52#endif
Base track model for the Barrel, params only, w/o covariance.
int32_t i
o2::track::TrackParCov TrackParCov
Definition Recon.h:39
const o2::track::TrackParCov & trkX
GPUdi() o2
Definition TrackTRD.h:38
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...