Skip to content

Commit 32ba552

Browse files
noferinidavidrohr
authored andcommitted
recover TPC-TOF matching perf in Pb-Pb sim
1 parent 3f70562 commit 32ba552

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

Detectors/GlobalTracking/src/MatchTOF.cxx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,7 @@ void MatchTOF::doMatchingForTPC(int sec)
11521152
std::vector<std::array<int, 2>> nStepsInsideSameStrip;
11531153

11541154
LOG(DEBUG) << "Trying to match %d tracks" << cacheTrk.size();
1155+
11551156
for (int itrk = 0; itrk < cacheTrk.size(); itrk++) {
11561157
auto& trackWork = mTracksWork[cacheTrk[itrk]];
11571158
auto& trefTrk = trackWork.first;
@@ -1170,13 +1171,14 @@ void MatchTOF::doMatchingForTPC(int sec)
11701171

11711172
// printf("trk time %f - %f (max shift +/- %f cm)\n",minTrkTime,maxTrkTime,trackWork.second.getTimeStampError()*vdrift );
11721173

1173-
for (double tBC = minTrkTime; tBC < maxTrkTime; tBC += BCgranularity) {
1174-
unsigned long ibc = (unsigned long)(tBC * Geo::BC_TIME_INPS_INV);
1175-
BCcand.emplace_back(ibc);
1176-
nStripsCrossedInPropagation.emplace_back(0);
1174+
if (mIsCosmics) {
1175+
for (double tBC = minTrkTime; tBC < maxTrkTime; tBC += BCgranularity) {
1176+
unsigned long ibc = (unsigned long)(tBC * Geo::BC_TIME_INPS_INV);
1177+
BCcand.emplace_back(ibc);
1178+
nStripsCrossedInPropagation.emplace_back(0);
1179+
}
11771180
}
11781181

1179-
/*
11801182
for (auto itof = itof0; itof < nTOFCls; itof++) {
11811183
auto& trefTOF = mTOFClusWork[cacheTOF[itof]];
11821184

@@ -1212,7 +1214,7 @@ void MatchTOF::doMatchingForTPC(int sec)
12121214
nStripsCrossedInPropagation.emplace_back(0);
12131215
}
12141216
}
1215-
*/
1217+
12161218
// printf("BC = %ld\n",BCcand.size());
12171219

12181220
detId.clear();

0 commit comments

Comments
 (0)