Skip to content

Commit 00c3405

Browse files
committed
ITS: Cluster removed unused
1 parent acb62f7 commit 00c3405

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

Detectors/ITSMFT/ITS/tracking/include/ITStracking/Cluster.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ struct Cluster final {
2929
Cluster(const float x, const float y, const float z, const int idx);
3030
Cluster(const int, const IndexTableUtils& utils, const Cluster&);
3131
Cluster(const int, const float3&, const IndexTableUtils& utils, const Cluster&);
32-
void Init(const int, const float3&, const IndexTableUtils& utils, const Cluster&);
3332
bool operator==(const Cluster&) const = default;
3433
GPUhd() void print() const;
3534

@@ -40,13 +39,12 @@ struct Cluster final {
4039
float radius{-999.f};
4140
int clusterId{-1};
4241
int indexTableBinIndex{-1};
43-
44-
ClassDefNV(Cluster, 1);
4542
};
4643

47-
struct TrackingFrameInfo {
44+
struct TrackingFrameInfo final {
4845
TrackingFrameInfo() = default;
4946
TrackingFrameInfo(float x, float y, float z, float xTF, float alpha, std::array<float, 2>&& posTF, std::array<float, 3>&& covTF);
47+
GPUhd() void print() const;
5048

5149
float xCoordinate{-999.f};
5250
float yCoordinate{-999.f};
@@ -55,7 +53,6 @@ struct TrackingFrameInfo {
5553
float alphaTrackingFrame{-999.f};
5654
std::array<float, 2> positionTrackingFrame = {-1., -1.};
5755
std::array<float, 3> covarianceTrackingFrame = {999., 999., 999.};
58-
GPUdi() void print() const;
5956
};
6057

6158
} // namespace o2::its

Detectors/ITSMFT/ITS/tracking/src/Cluster.cxx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,6 @@ Cluster::Cluster(const int layerIndex, const float3& primaryVertex, const IndexT
6565
// Nothing to do
6666
}
6767

68-
void Cluster::Init(const int layerIndex, const float3& primaryVertex, const IndexTableUtils& utils, const Cluster& other)
69-
{
70-
xCoordinate = other.xCoordinate;
71-
yCoordinate = other.yCoordinate;
72-
zCoordinate = other.zCoordinate;
73-
phi = getNormalizedPhi(
74-
computePhi(xCoordinate - primaryVertex.x, yCoordinate - primaryVertex.y));
75-
radius = o2::gpu::GPUCommonMath::Hypot(xCoordinate - primaryVertex.x, yCoordinate - primaryVertex.y);
76-
clusterId = other.clusterId;
77-
indexTableBinIndex = utils.getBinIndex(utils.getZBinIndex(layerIndex, zCoordinate),
78-
utils.getPhiBinIndex(phi));
79-
}
80-
8168
GPUhd() void Cluster::print() const
8269
{
8370
#if !defined(GPUCA_GPUCODE_DEVICE) || (!defined(__OPENCL__) && defined(GPUCA_GPU_DEBUG_PRINT))
@@ -92,7 +79,7 @@ TrackingFrameInfo::TrackingFrameInfo(float x, float y, float z, float xTF, float
9279
// Nothing to do
9380
}
9481

95-
GPUdi() void TrackingFrameInfo::print() const
82+
GPUhd() void TrackingFrameInfo::print() const
9683
{
9784
#if !defined(GPUCA_GPUCODE_DEVICE) || (!defined(__OPENCL__) && defined(GPUCA_GPU_DEBUG_PRINT))
9885
printf("x: %f y: %f z: %f xTF: %f alphaTF: %f posTF: %f %f covTF: %f %f %f\n",

Detectors/ITSMFT/ITS/tracking/src/TrackingLinkDef.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#pragma link C++ class o2::its::Line + ;
2121
#pragma link C++ class std::vector < o2::its::Tracklet> + ;
2222
#pragma link C++ class std::vector < o2::its::Line> + ;
23-
#pragma link C++ class o2::its::Cluster + ;
24-
#pragma link C++ class std::vector < o2::its::Cluster> + ;
2523
#pragma link C++ class std::vector < o2::its::ClusterLines> + ;
2624

2725
#pragma link C++ class o2::its::VertexerParamConfig + ;

0 commit comments

Comments
 (0)