Skip to content

Commit 87651ae

Browse files
[PWGLF] Fix missing update of the TPCdrift manager (#15194)
1 parent 92f0a57 commit 87651ae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PWGLF/Utils/strangenessBuilderModule.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,9 @@ class BuilderModule
897897

898898
// handle TPC-only tracks properly (photon conversions)
899899
if (v0BuilderOpts.moveTPCOnlyTracks) {
900+
if (collision.has_bc()) {
901+
mVDriftMgr.update(collision.template bc_as<aod::BCsWithTimestamps>().timestamp());
902+
}
900903
if (isPosTPCOnly) {
901904
// Nota bene: positive is TPC-only -> this entire V0 merits treatment as photon candidate
902905
posTrackPar.setPID(o2::track::PID::Electron);
@@ -1368,6 +1371,9 @@ class BuilderModule
13681371
pvX = collision.posX();
13691372
pvY = collision.posY();
13701373
pvZ = collision.posZ();
1374+
if (v0BuilderOpts.moveTPCOnlyTracks && collision.has_bc()) {
1375+
mVDriftMgr.update(collision.template bc_as<aod::BCsWithTimestamps>().timestamp());
1376+
}
13711377
}
13721378
auto const& posTrack = tracks.rawIteratorAt(v0.posTrackId);
13731379
auto const& negTrack = tracks.rawIteratorAt(v0.negTrackId);

0 commit comments

Comments
 (0)