Trk::Track Use the new type functionality from surfaces to avoid dynamic_casts
- There are now methods to deduce directly the
surfaceType
(without inspecting the associated ptr) - So we can use the type (we have specific bounded number of types)
- Also make sure we return the ptr (from a DataVector so not owned ) in the cachedValue only if it is Valid, otherwise nullptr (this seems to never happen ...)
RunTier0 seems fine RunTier0Tests.log