Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class TrackITSExt : public TrackITS
///< heavy version of TrackITS, with clusters embedded
public:
static constexpr int MaxClusters = 16; /// Prepare for overlaps and new detector configurations
using TrackITS::TrackITS; // inherit base constructors
using TrackITS::TrackITS; // inherit base constructors

TrackITSExt(o2::track::TrackParCov&& parCov, short ncl, float chi2,
o2::track::TrackParCov&& outer, std::array<int, MaxClusters> cls)
Expand All @@ -128,6 +128,9 @@ class TrackITSExt : public TrackITS
{
if (newCluster) {
getClusterRefs().setEntries(getNumberOfClusters() + 1);
uint16_t pattern = getPattern();
pattern |= 0x1 << layer;
setPattern(pattern);
}
mIndex[layer] = idx;
}
Expand Down
15 changes: 14 additions & 1 deletion Detectors/ITSMFT/ITS/tracking/src/Tracker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,22 @@ void Tracker::computeTracksMClabels(const ROframe& event)
count = 1;
}
}
track.setExternalClusterIndex(iCluster, event.getClusterExternalIndex(iCluster, index));
}

uint8_t patt{0};
// set fake clusters pattern
for (int ic{TrackITSExt::MaxClusters}; ic--;) {
auto clid = track.getClusterIndex(ic);
if (clid != constants::its::UnusedIndex) {
const MCCompLabel& currentLabel = event.getClusterLabels(ic, clid);
if (currentLabel != maxOccurrencesValue) {
patt |= 0x1 << ic; // if cluster label is different from main label
}
track.setExternalClusterIndex(ic, event.getClusterExternalIndex(ic, clid));
}
}

track.setUserField(patt);
if (isFakeTrack) {
maxOccurrencesValue.setFakeFlag();
}
Expand Down