Project
Loading...
Searching...
No Matches
VertexingKernels.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.
12
13#ifndef ITSTRACKINGGPU_VERTEXINGKERNELS_H_
14#define ITSTRACKINGGPU_VERTEXINGKERNELS_H_
19
24
25#include "GPUCommonArray.h"
26
27namespace o2::its::gpu
28{
29#ifdef GPUCA_GPUCODE // GPUg() global kernels must only when compiled by GPU compiler
30template <TrackletMode Mode>
31GPUg() void trackleterKernelMultipleRof(
32 const Cluster* clustersNextLayer, // 0 2
33 const Cluster* clustersCurrentLayer, // 1 1
34 const int* sizeNextLClusters,
35 const int* sizeCurrentLClusters,
36 const int* nextIndexTables,
37 Tracklet* Tracklets,
38 int* foundTracklets,
39 const IndexTableUtils* utils,
40 const unsigned int startRofId,
41 const unsigned int rofSize,
42 const float phiCut,
43 const size_t maxTrackletsPerCluster);
44#endif
45template <TrackletMode Mode>
46void trackletFinderHandler(const Cluster* clustersNextLayer, // 0 2
47 const Cluster* clustersCurrentLayer, // 1 1
48 const int* sizeNextLClusters,
49 const int* sizeCurrentLClusters,
50 const int* nextIndexTables,
51 Tracklet* Tracklets,
52 int* foundTracklets,
54 const unsigned int startRofId,
55 const unsigned int rofSize,
56 const float phiCut,
57 const size_t maxTrackletsPerCluster = 1e2);
58} // namespace o2::its::gpu
59#endif
GPU-compliant version of ClusterLines, for the moment separated, might create a common traits for Clu...
#define GPUg()
HMPID cluster implementation.
Definition Cluster.h:27
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
void trackletFinderHandler(const Cluster *clustersNextLayer, const Cluster *clustersCurrentLayer, const int *sizeNextLClusters, const int *sizeCurrentLClusters, const int *nextIndexTables, Tracklet *Tracklets, int *foundTracklets, const IndexTableUtils *utils, const unsigned int startRofId, const unsigned int rofSize, const float phiCut, const size_t maxTrackletsPerCluster=1e2)
Common utility functions.