Skip to content
Snippets Groups Projects
Commit f878982a authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'MuGirlMSTrack' into 'master'

Prevent MS track particles from being added to MuGirl muons

See merge request atlas/athena!20283
parents 56c56926 8896b69a
No related branches found
No related merge requests found
......@@ -969,7 +969,10 @@ namespace MuonCombined {
// muon.auxdata< ElementLink<xAOD::TrackParticleContainer> >("msTrackLink") = candidate.muonSpectrometerTrackLink();
// ATH_MSG_DEBUG("Added aux data element link, status = " << muon.auxdata< ElementLink<xAOD::TrackParticleContainer> >("msTrackLink").isValid());
// }
muon.setTrackParticleLink(xAOD::Muon::MuonSpectrometerTrackParticle, candidate.muonSpectrometerTrackLink() );
//case where we have a MuGirl muon that is also reconstructed by STACO: don't want to add this track as it is misleading
//however, we will still keep the MS-only extrapolated track (see below) for debugging purposes
if(muon.author()!=xAOD::Muon::MuGirl) muon.setTrackParticleLink(xAOD::Muon::MuonSpectrometerTrackParticle, candidate.muonSpectrometerTrackLink() );
// we need both the container and the extrapolated muon track to add the link
if( !outputData.extrapolatedTrackParticleContainer || (!candidate.extrapolatedTrack() && !meLink.isValid()) ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment