Project
Loading...
Searching...
No Matches
ClusterLinesGPU.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.
14
15#ifndef ITSTRACKINGGPU_CLUSTERLINESGPU_H_
16#define ITSTRACKINGGPU_CLUSTERLINESGPU_H_
17
18#include "GPUCommonDef.h"
19#include <cstdint>
21
22namespace o2
23{
24namespace its
25{
26namespace gpu
27{
28
29struct GPUVertex final {
31 {
32 }
33
34 GPUhd() GPUVertex(float x, float y, float z, float eX, float eY, float eZ, int contrib) : xCoord{x},
42 {
43 }
44 float xCoord;
45 float yCoord;
46 float zCoord;
47 float errorX;
48 float errorY;
49 float errorZ;
52 unsigned char realVertex;
53};
54
55class ClusterLinesGPU final
56{
57 public:
58 GPUd() ClusterLinesGPU(const Line& firstLine, const Line& secondLine); // poor man solution to calculate duplets' centroid
59 GPUd() void computeClusterCentroid();
60 GPUdi() float* getVertex() { return mVertex; }
61
62 private:
63 float mAMatrix[6]; // AX=B
64 float mBMatrix[3]; // AX=B
65 float mVertexCandidate[3]; // vertex candidate
66 float mWeightMatrix[9]; // weight matrix
67 float mVertex[3]; // cluster centroid position
68};
69
70} // namespace gpu
71} // namespace its
72} // namespace o2
73#endif
GPUd() void computeClusterCentroid()
GPUd() ClusterLinesGPU(const Line &firstLine
GLint GLenum GLint x
Definition glcorearb.h:403
GLdouble GLdouble GLdouble z
Definition glcorearb.h:843
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
float float float float float int contributors
float float float float eY
float float float float float eZ
float float float float float int zCoord
float float float float float int yCoord
float float float float float int errorY
float float float float float int contrib
float float float float float int realVertex
float float float float float int errorZ
float float float float float int errorX