Skip to content

Commit d002f26

Browse files
committed
Reset ITS track user field on output
1 parent c5a234f commit d002f26

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Detectors/GlobalTracking/src/MatchTPCITS.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ bool MatchTPCITS::prepareITSData()
683683
if (mMCTruthON) {
684684
mITSLblWork.emplace_back(mITSTrkLabels[it]);
685685
}
686+
trc.setUserField(0);
686687
// cache work track index
687688
int sector = o2::math_utils::angle2Sector(trc.getAlpha());
688689
mITSSectIndexCache[sector].push_back(nWorkTracks);
@@ -1329,7 +1330,6 @@ bool MatchTPCITS::refitTrackTPCITS(int iTPC, int& iITS, pmr::vector<o2::dataform
13291330
iITS = tpcMatchRec.partnerID;
13301331
const auto& tITS = mITSWork[iITS];
13311332
const auto& itsTrOrig = mITSTracksArray[tITS.sourceID];
1332-
13331333
auto& trfit = matchedTracks.emplace_back(tTPC, tITS); // create a copy of TPC track at xRef
13341334
trfit.getParamOut().setUserField(0); // reset eventual clones flag
13351335
// in continuos mode the Z of TPC track is meaningless, unless it is CE crossing

Detectors/ITSMFT/ITS/workflow/src/TrackerSpec.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ void TrackerDPL::run(ProcessingContext& pc)
299299
// Some conversions that needs to be moved in the tracker internals
300300
for (unsigned int iTrk{0}; iTrk < tracks.size(); ++iTrk) {
301301
auto& trc{tracks[iTrk]};
302+
trc.setUserField(0);
303+
trc.getParamOut().setUserField(0);
302304
trc.setFirstClusterEntry(allClusIdx.size()); // before adding tracks, create final cluster indices
303305
int ncl = trc.getNumberOfClusters(), nclf = 0;
304306
for (int ic = TrackITSExt::MaxClusters; ic--;) { // track internally keeps in->out cluster indices, but we want to store the references as out->in!!!

0 commit comments

Comments
 (0)