Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion PWGUD/TableProducer/upcCandProducerGlobalMuon.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,21 @@ struct UpcCandProducerGlobalMuon {
}

if (fUpcCuts.getUseFwdCuts()) {
auto pft = propagateToZero(track);
bool isGlobal = track.trackType() == o2::aod::fwdtrack::ForwardTrackTypeEnum::GlobalMuonTrack ||
track.trackType() == o2::aod::fwdtrack::ForwardTrackTypeEnum::GlobalForwardTrack;
o2::dataformats::GlobalFwdTrack pft;
if (isGlobal && fEnableMFT) {
// For global tracks, use MFT helix propagation to vertex instead of
// MCH extrapolation, which fails because the track z is upstream of
// the front absorber (z ~ -60 cm vs absorber at z ~ -90 cm)
o2::track::TrackParCovFwd trackPar = o2::aod::fwdtrackutils::getTrackParCovFwdShift(track, fZShift);
trackPar.propagateToZhelix(0., fBz);
pft.setParameters(trackPar.getParameters());
pft.setZ(trackPar.getZ());
pft.setCovariances(trackPar.getCovariances());
} else {
pft = propagateToZero(track);
}
bool pass = cut(pft, track);
if (!pass)
return false;
Expand Down
Loading