1515
1616#ifndef TRACKINGITSU_INCLUDE_CACELL_H_
1717#define TRACKINGITSU_INCLUDE_CACELL_H_
18- #ifndef GPUCA_GPUCODE_DEVICE
19- #include < array>
20- #include < vector>
21- #include < iostream>
22- #endif
2318
19+ #include " ITStracking/Constants.h"
2420#include " GPUCommonDef.h"
2521
2622namespace o2 ::its
@@ -36,15 +32,14 @@ class Cell final
3632 GPUhd () int getSecondTrackletIndex () const { return mSecondTrackletIndex ; };
3733 GPUhd () int getLevel () const { return mLevel ; };
3834 GPUhd () void setLevel (const int level) { mLevel = level; };
39- GPUhd () int * getLevelPtr () { return &mLevel ; }
4035
4136 private:
42- int mFirstClusterIndex {0 };
43- int mSecondClusterIndex {0 };
44- int mThirdClusterIndex {0 };
45- int mFirstTrackletIndex {0 };
46- int mSecondTrackletIndex {0 };
47- int mLevel {0 };
37+ int mFirstClusterIndex {constants::UnusedIndex };
38+ int mSecondClusterIndex {constants::UnusedIndex };
39+ int mThirdClusterIndex {constants::UnusedIndex };
40+ int mFirstTrackletIndex {constants::UnusedIndex };
41+ int mSecondTrackletIndex {constants::UnusedIndex };
42+ int mLevel {constants::UnusedIndex };
4843};
4944
5045class CellSeed final : public o2::track::TrackParCovF
@@ -77,19 +72,18 @@ class CellSeed final : public o2::track::TrackParCovF
7772 GPUhd () void setChi2 (float chi2) { mChi2 = chi2; };
7873 GPUhd () int getLevel () const { return mLevel ; };
7974 GPUhd () void setLevel (int level) { mLevel = level; };
80- GPUhd () int * getLevelPtr () { return &mLevel ; }
8175 GPUhd () int * getClusters () { return mClusters ; }
8276 GPUhd () int getCluster (int i) const { return mClusters [i]; }
8377 GPUhd () void printCell () const
8478 {
85- printf (" trkl: %d, %d\t lvl: %d\t chi2: %f\n " , mTracklets [0 ], mTracklets [1 ], mLevel , mChi2 );
79+ printf (" trkl: %d, %d\t lvl: %d\t chi2: %f\t cls: [%d | %d | %d | %d | %d | %d | %d] \ n" , mTracklets [0 ], mTracklets [1 ], mLevel , mChi2 , mClusters [ 0 ], mClusters [ 1 ], mClusters [ 2 ], mClusters [ 3 ], mClusters [ 4 ], mClusters [ 5 ], mClusters [ 6 ] );
8680 }
8781
8882 private:
89- float mChi2 = 0 .f;
90- int mLevel = 0 ;
91- int mTracklets [2 ] = {- 1 , - 1 };
92- int mClusters [7 ] = {- 1 , - 1 , - 1 , - 1 , - 1 , - 1 , - 1 };
83+ float mChi2 = - 999 .f;
84+ int mLevel = constants::UnusedIndex ;
85+ int mTracklets [2 ] = {constants::UnusedIndex, constants::UnusedIndex };
86+ int mClusters [7 ] = {constants::UnusedIndex, constants::UnusedIndex, constants::UnusedIndex, constants::UnusedIndex, constants::UnusedIndex, constants::UnusedIndex, constants::UnusedIndex };
9387};
9488
9589} // namespace o2::its
0 commit comments