Skip to content

Commit f5afa5a

Browse files
committed
ITS: Cell fix constructor annotation
1 parent 0537107 commit f5afa5a

File tree

1 file changed

+11
-3
lines changed
  • Detectors/ITSMFT/ITS/tracking/include/ITStracking

1 file changed

+11
-3
lines changed

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,19 @@ class Cell final
3030
{
3131
public:
3232
GPUhd() Cell() = default;
33-
GPUdi() Cell(const int firstClusterIndex, const int secondClusterIndex, const int thirdClusterIndex,
33+
GPUhd() Cell(const int firstClusterIndex, const int secondClusterIndex, const int thirdClusterIndex,
3434
const int firstTrackletIndex, const int secondTrackletIndex)
3535
: mFirstClusterIndex(firstClusterIndex),
3636
mSecondClusterIndex(secondClusterIndex),
3737
mThirdClusterIndex(thirdClusterIndex),
3838
mFirstTrackletIndex(firstTrackletIndex),
3939
mSecondTrackletIndex(secondTrackletIndex),
4040
mLevel(1) {}
41+
GPUhd() ~Cell() = default;
42+
GPUhd() Cell(const Cell&) = default;
43+
GPUhd() Cell(Cell&&) = default;
44+
GPUhd() Cell& operator=(const Cell&) = default;
45+
GPUhd() Cell& operator=(Cell&&) = default;
4146

4247
GPUhd() int getFirstClusterIndex() const { return mFirstClusterIndex; };
4348
GPUhd() int getSecondClusterIndex() const { return mSecondClusterIndex; };
@@ -60,7 +65,9 @@ class Cell final
6065
class CellSeed final : public o2::track::TrackParCovF
6166
{
6267
public:
63-
GPUd() CellSeed() = default;
68+
GPUhdDefault() CellSeed() = default;
69+
GPUhdDefault() CellSeed(const CellSeed&) = default;
70+
GPUhdDefault() ~CellSeed() = default;
6471
GPUd() CellSeed(int innerL, int cl0, int cl1, int cl2, int trkl0, int trkl1, o2::track::TrackParCovF& tpc, float chi2) : o2::track::TrackParCovF{tpc}, mLevel{1}, mChi2{chi2}
6572
{
6673
setUserField(innerL);
@@ -70,6 +77,7 @@ class CellSeed final : public o2::track::TrackParCovF
7077
mTracklets[0] = trkl0;
7178
mTracklets[1] = trkl1;
7279
}
80+
7381
GPUhd() int getFirstClusterIndex() const { return mClusters[getUserField()]; };
7482
GPUhd() int getSecondClusterIndex() const { return mClusters[getUserField() + 1]; };
7583
GPUhd() int getThirdClusterIndex() const { return mClusters[getUserField() + 2]; };
@@ -84,7 +92,7 @@ class CellSeed final : public o2::track::TrackParCovF
8492
GPUhd() int* getLevelPtr() { return &mLevel; }
8593
GPUhd() int* getClusters() { return mClusters; }
8694
GPUhd() int getCluster(int i) const { return mClusters[i]; }
87-
GPUhdi() void printCell() const
95+
GPUhd() void printCell() const
8896
{
8997
printf("trkl: %d, %d\t lvl: %d\t chi2: %f\n", mTracklets[0], mTracklets[1], mLevel, mChi2);
9098
}

0 commit comments

Comments
 (0)