@@ -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