diff --git a/Event/PyDumper/python/Dumpers.py b/Event/PyDumper/python/Dumpers.py index e6f20ac3ea175d82bbc674769ded715d45940eff..1b5be9bf8d2dfd1e98746d22663c99fc3912344c 100644 --- a/Event/PyDumper/python/Dumpers.py +++ b/Event/PyDumper/python/Dumpers.py @@ -1459,6 +1459,13 @@ def dump_surface (p, f): return +def dump_associatedSurface (p, f): + if not p.hasSurface(): + print >> f, None, + else: + dump_surface (p.associatedSurface(), f) + return + def dump_ParametersBase (info, f): dump_AmgVector (info.parameters(), f) @@ -1470,7 +1477,7 @@ def dump_ParametersBase (info, f): print >> f, '\n cov', dump_AmgMatrix (info.covariance(), f) print >> f, '\n sf', - dump_surface (info.associatedSurface(), f) + dump_associatedSurface (info, f) return @@ -1619,7 +1626,7 @@ def dump_MuonClusterOnTrack (p, f): def dump_CompetingMuonClustersOnTrack (p, f): dump_CompetingRIOsOnTrack (p, f) dump_AmgVector (p.globalPosition(), f) - dump_surface (p.associatedSurface(), f) + dump_associatedSurface (p, f) for r in p.containedROTs(): print >> f, '\n mc ', dump_MuonClusterOnTrack (r, f) @@ -1655,7 +1662,7 @@ def dump_CscClusterOnTrack (p, f): def dump_PseudoMeasurementOnTrack (p, f): dump_MeasurementBase (p, f) dump_AmgVector (p.globalPosition(), f) - dump_surface (p.associatedSurface(), f) + dump_associatedSurface (p, f) return @@ -1692,7 +1699,7 @@ def dump_measurement (p, f): def dump_MaterialEffectsBase (p, f): print >> f, p.dumpType(), p.thicknessInX0(), - dump_surface (p.associatedSurface(), f) + dump_associatedSurface (p, f) return