Skip to content
Snippets Groups Projects
Commit 90b360a9 authored by Nicolas Köhler's avatar Nicolas Köhler
Browse files

fix input Trk::SegmentCollection name when running on old ESDs

parent 4cda231e
No related branches found
No related tags found
No related merge requests found
......@@ -526,6 +526,10 @@ def MuonTrackBuildingCfg(flags, name = "MuPatTrackBuilder"):
acc = MuonTrackSteeringCfg(flags)
track_steering = acc.getPrimary()
result.merge(acc)
# release 21 ESDs contain a Trk::SegmentCollection named 'MuonSegments' instead of 'TrackMuonSegments', the following 2 lines account for that
from MuonConfig.MuonSegmentNameFixConfig import MuonSegmentNameFixCfg
result.merge(MuonSegmentNameFixCfg(flags))
track_builder = MuPatTrackBuilder(name=name, TrackSteering = track_steering, MuonSegmentCollection="TrackMuonSegments", SpectrometerTrackOutputLocation="MuonSpectrometerTracks" )
......
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