Skip to content

Commit 29db127

Browse files
mconcasshahor02
authored andcommitted
Add TrackingInfo to debug tree
1 parent c1d6192 commit 29db127

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ struct TrackingFrameInfo {
5959
float alphaTrackingFrame;
6060
GPUArray<float, 2> positionTrackingFrame = {-1., -1.};
6161
GPUArray<float, 3> covarianceTrackingFrame = {999., 999., 999.};
62+
63+
ClassDefNV(TrackingFrameInfo, 1);
6264
};
6365
} // namespace its
6466
} // namespace o2

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <array>
2222
#endif
2323

24-
// #define CA_DEBUG
24+
#define CA_DEBUG
2525

2626
#ifdef CA_DEBUG
2727
#define CA_DEBUGGER(x) x

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

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,22 @@ struct FakeTrackInfo {
7070
occurrences.emplace_back(mcLabel, 1);
7171
}
7272
}
73-
// LOG(WARN) << "Qui 1";
73+
7474
if (occurrences.size() > 1) {
7575
isFake = true;
7676
}
7777
std::sort(std::begin(occurrences), std::end(occurrences), [](auto e1, auto e2) {
7878
return e1.second > e2.second;
7979
});
8080
mainLabel = occurrences[0].first;
81-
// LOG(WARN) << "Qui 2";
81+
8282
for (size_t iOcc{1}; iOcc < occurrences.size(); ++iOcc) {
8383
if (occurrences[iOcc].second == occurrences[0].second) {
8484
isAmbiguousId = true;
8585
break;
8686
}
8787
}
88-
// LOG(WARN) << "Qui 3";
88+
8989
for (size_t iCluster{0}; iCluster < numClusters; ++iCluster) {
9090
int extIndex = track.getClusterIndex(iCluster);
9191
if (extIndex == -1) {
@@ -99,20 +99,15 @@ struct FakeTrackInfo {
9999
++nFakeClusters;
100100
}
101101
}
102-
// LOG(WARN) << "Qui 3.5";
103102
if (storeClusters) {
104103
for (auto iCluster{0}; iCluster < numClusters; ++iCluster) {
105104
const int index = track.getClusterIndex(iCluster);
106105
if (index != constants::its::UnusedIndex) {
107-
clusters[iCluster] = pvc->getClusters()[iCluster][track.getClusterIndex(iCluster)];
106+
clusters[iCluster] = pvc->getClusters()[iCluster][index];
107+
trackingFrameInfos[iCluster] = event.getTrackingFrameInfoOnLayer(iCluster).at(index);
108108
}
109-
// LOG(WARN) << "Qui 3.5.1";
110-
// LOG(WARN) << "\t iCLuster " << iCluster;
111-
// LOG(WARN) << "\t getClusterIndex(iCluster) " << track.getClusterIndex(iCluster);
112-
// LOG(WARN) << "\t externalIndex " << event.getClusterExternalIndex(iCluster, track.getClusterIndex(iCluster));
113109
}
114110
}
115-
// LOG(WARN) << "Qui 4";
116111
}
117112

118113
// Data
@@ -121,6 +116,8 @@ struct FakeTrackInfo {
121116
MCCompLabel mainLabel;
122117
std::array<int, numClusters> clusStatuses;
123118
std::array<o2::its::Cluster, numClusters> clusters;
119+
std::array<o2::its::TrackingFrameInfo, numClusters> trackingFrameInfos;
120+
124121
bool isFake;
125122
bool isAmbiguousId;
126123
int nFakeClusters = 0;

0 commit comments

Comments
 (0)