forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCluster.h
More file actions
82 lines (66 loc) · 2.79 KB
/
Cluster.h
File metadata and controls
82 lines (66 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
///
/// \file Cluster.h
/// \brief
///
#ifndef TRACKINGITSU_INCLUDE_CACLUSTER_H_
#define TRACKINGITSU_INCLUDE_CACLUSTER_H_
#include <array>
#include "ITStracking/Constants.h"
#include "GPUCommonRtypes.h"
namespace o2::its
{
template <int>
class IndexTableUtils;
struct Cluster final {
GPUhdDefault() Cluster() = default;
GPUhd() Cluster(const float x, const float y, const float z, const int idx);
template <int nLayers>
GPUhd() Cluster(const int, const IndexTableUtils<nLayers>& utils, const Cluster&);
template <int nLayers>
GPUhd() Cluster(const int, const float3&, const IndexTableUtils<nLayers>& utils, const Cluster&);
GPUhdDefault() Cluster(const Cluster&) = default;
GPUhdDefault() Cluster(Cluster&&) noexcept = default;
GPUhdDefault() ~Cluster() = default;
GPUhdDefault() Cluster& operator=(const Cluster&) = default;
GPUhdDefault() Cluster& operator=(Cluster&&) noexcept = default;
GPUhdDefault() bool operator==(const Cluster&) const = default;
GPUhd() void print() const;
float xCoordinate{-999.f};
float yCoordinate{-999.f};
float zCoordinate{-999.f};
float phi{-999.f};
float radius{-999.f};
int clusterId{constants::UnusedIndex};
int indexTableBinIndex{constants::UnusedIndex};
ClassDefNV(Cluster, 1);
};
struct TrackingFrameInfo final {
GPUhdDefault() TrackingFrameInfo() = default;
GPUhd() TrackingFrameInfo(float x, float y, float z, float xTF, float alpha, std::array<float, 2>&& posTF, std::array<float, 3>&& covTF);
GPUhdDefault() TrackingFrameInfo(const TrackingFrameInfo&) = default;
GPUhdDefault() TrackingFrameInfo(TrackingFrameInfo&&) noexcept = default;
GPUhdDefault() ~TrackingFrameInfo() = default;
GPUhdDefault() TrackingFrameInfo& operator=(const TrackingFrameInfo&) = default;
GPUhdDefault() TrackingFrameInfo& operator=(TrackingFrameInfo&&) = default;
GPUhd() void print() const;
float xCoordinate{-999.f};
float yCoordinate{-999.f};
float zCoordinate{-999.f};
float xTrackingFrame{-999.f};
float alphaTrackingFrame{-999.f};
std::array<float, 2> positionTrackingFrame = {constants::UnusedIndex, constants::UnusedIndex};
std::array<float, 3> covarianceTrackingFrame = {999., 999., 999.};
ClassDefNV(TrackingFrameInfo, 1);
};
} // namespace o2::its
#endif /* TRACKINGITSU_INCLUDE_CACLUSTER_H_ */