Skip to content

Commit

Permalink
Reset ITS track user field on output
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Nov 21, 2023
1 parent c5a234f commit d002f26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Detectors/GlobalTracking/src/MatchTPCITS.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ bool MatchTPCITS::prepareITSData()
if (mMCTruthON) {
mITSLblWork.emplace_back(mITSTrkLabels[it]);
}
trc.setUserField(0);
// cache work track index
int sector = o2::math_utils::angle2Sector(trc.getAlpha());
mITSSectIndexCache[sector].push_back(nWorkTracks);
Expand Down Expand Up @@ -1329,7 +1330,6 @@ bool MatchTPCITS::refitTrackTPCITS(int iTPC, int& iITS, pmr::vector<o2::dataform
iITS = tpcMatchRec.partnerID;
const auto& tITS = mITSWork[iITS];
const auto& itsTrOrig = mITSTracksArray[tITS.sourceID];

auto& trfit = matchedTracks.emplace_back(tTPC, tITS); // create a copy of TPC track at xRef
trfit.getParamOut().setUserField(0); // reset eventual clones flag
// in continuos mode the Z of TPC track is meaningless, unless it is CE crossing
Expand Down
2 changes: 2 additions & 0 deletions Detectors/ITSMFT/ITS/workflow/src/TrackerSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ void TrackerDPL::run(ProcessingContext& pc)
// Some conversions that needs to be moved in the tracker internals
for (unsigned int iTrk{0}; iTrk < tracks.size(); ++iTrk) {
auto& trc{tracks[iTrk]};
trc.setUserField(0);
trc.getParamOut().setUserField(0);
trc.setFirstClusterEntry(allClusIdx.size()); // before adding tracks, create final cluster indices
int ncl = trc.getNumberOfClusters(), nclf = 0;
for (int ic = TrackITSExt::MaxClusters; ic--;) { // track internally keeps in->out cluster indices, but we want to store the references as out->in!!!
Expand Down

0 comments on commit d002f26

Please sign in to comment.