Skip to content

Commit

Permalink
Transfer source PID to TRD track before refit
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Dec 1, 2023
1 parent a71cc60 commit c8ae254
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Detectors/TRD/workflow/src/TRDGlobalTrackingSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ bool TRDGlobalTracking::refitITSTPCTRDTrack(TrackTRD& trk, float timeTRD, o2::gl
if (detRefs[GTrackID::ITS].isIndexSet()) { // this is ITS track
const auto& trkITS = mITSTracksArray[detRefs[GTrackID::ITS]];
outerParam = trkITS.getParamOut();
outerParam.setPID(recoCont->getTPCITSTrack(trk.getRefGlobalTrackId()).getPID());
nCl = trkITS.getNumberOfClusters();
clEntry = trkITS.getFirstClusterEntry();
chi2Out = trkITS.getChi2();
Expand All @@ -540,7 +541,7 @@ bool TRDGlobalTracking::refitITSTPCTRDTrack(TrackTRD& trk, float timeTRD, o2::gl
const auto& trkITSABref = mITSABRefsArray[detRefs[GTrackID::ITSAB]];
nCl = trkITSABref.getNClusters();
clEntry = trkITSABref.getFirstEntry();
outerParam = recoCont->getTPCITSTrack(trk.getRefGlobalTrackId()); // start from the inner kinematics of ITS-TPC
outerParam = recoCont->getTPCITSTrack(trk.getRefGlobalTrackId()); // start from the inner kinematics of ITS-TPC, no need to set PID, will be transferred from ITSTPC track
outerParam.resetCovariance(100); // reset covariance to something big
// refit
for (int icl = 0; icl < nCl; icl++) { // clusters are stored from inner to outer layers
Expand Down

0 comments on commit c8ae254

Please sign in to comment.