Skip to content

Commit

Permalink
propagating DeltaTime TOF-TPConlyTrack in TOF matching
Browse files Browse the repository at this point in the history
  • Loading branch information
noferini committed Dec 7, 2023
1 parent d4d2179 commit e239f95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Detectors/GlobalTracking/src/MatchTOF.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1056,9 +1056,10 @@ void MatchTOF::doMatchingForTPC(int sec)

int side = mSideTPC[sec][cacheTrk[itrk]];
// look at BC candidates for the track
double minTrkTime = (trackWork.second.getTimeStamp() - trackWork.second.getTimeStampError()) * 1.E6 + timeShift; // minimum time in ps
double tpctime = trackWork.second.getTimeStamp(); // in mus
double minTrkTime = (tpctime - trackWork.second.getTimeStampError()) * 1.E6 + timeShift; // minimum time in ps
minTrkTime = int(minTrkTime / BCgranularity) * BCgranularity; // align min to a BC
double maxTrkTime = (trackWork.second.getTimeStamp() + mExtraTPCFwdTime[sec][cacheTrk[itrk]]) * 1.E6 + timeShift; // maximum time in ps
double maxTrkTime = (tpctime + mExtraTPCFwdTime[sec][cacheTrk[itrk]]) * 1.E6 + timeShift; // maximum time in ps

if (mIsCosmics) {
for (double tBC = minTrkTime; tBC < maxTrkTime; tBC += BCgranularity) {
Expand Down Expand Up @@ -1329,7 +1330,7 @@ void MatchTOF::doMatchingForTPC(int sec)
foundCluster = true;
// set event indexes (to be checked)
int eventIndexTOFCluster = mTOFClusSectIndexCache[indices[0]][itof];
mMatchedTracksPairsSec[sec].emplace_back(cacheTrk[itrk], eventIndexTOFCluster, mTOFClusWork[cacheTOF[itof]].getTime(), chi2, trkLTInt[ibc][iPropagation], mTrackGid[sec][trkType::UNCONS][cacheTrk[itrk]], trkType::UNCONS, resZ / mTPCVDrift * side, trefTOF.getZ(), resX, resZ); // TODO: check if this is correct!
mMatchedTracksPairsSec[sec].emplace_back(cacheTrk[itrk], eventIndexTOFCluster, mTOFClusWork[cacheTOF[itof]].getTime(), chi2, trkLTInt[ibc][iPropagation], mTrackGid[sec][trkType::UNCONS][cacheTrk[itrk]], trkType::UNCONS, trefTOF.getTime() * 1E-6 - tpctime, trefTOF.getZ(), resX, resZ); // TODO: check if this is correct!
}
}
}
Expand Down

0 comments on commit e239f95

Please sign in to comment.