Project
Loading...
Searching...
No Matches
TrackExtensionHypothesis.h
Go to the documentation of this file.
1// Copyright 2019-2026 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
12#ifndef TRACKINGITSU_INCLUDE_TRACKEXTENSIONHYPOTHESIS_H_
13#define TRACKINGITSU_INCLUDE_TRACKEXTENSIONHYPOTHESIS_H_
14
15#include <array>
16
17#include "GPUCommonDef.h"
22
23namespace o2::its
24{
25
26template <int NLayers>
30 {
31 initialiseFromTrack(track, outward);
32 }
33
34 GPUhdi() void initialiseFromTrack(const TrackITSInternal<NLayers>& track, bool outward)
35 {
36 param = outward ? track.paramOut : track.paramIn;
37 time = track.time;
38 chi2 = track.getChi2();
39 nClusters = track.getNClusters();
40 edgeLayer = outward ? track.getLastClusterLayer() : track.getFirstClusterLayer();
41 for (int iLayer{0}; iLayer < NLayers; ++iLayer) {
42 clusters[iLayer] = track.getClusterIndex(iLayer);
43 }
44 }
45
47 std::array<int, NLayers> clusters{};
49 float chi2{0.f};
50 int nClusters{0};
52};
53
54} // namespace o2::its
55
56#endif /* TRACKINGITSU_INCLUDE_TRACKEXTENSIONHYPOTHESIS_H_ */
Base track model for the Barrel, params only, w/o covariance.
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
GLenum GLfloat param
Definition glcorearb.h:271
constexpr int UnusedIndex
Definition Constants.h:32
const bool const int TrackITSInternal< NLayers > & track
TrackParCovF TrackParCov
Definition Track.h:33
GPUhdi() TrackExtensionHypothesis(const TrackITSInternal< NLayers > &track
GPUhdi() void initialiseFromTrack(const TrackITSInternal< NLayers > &track