Skip to content

Use propagation without geometry access when possible

The TrackMasterExtrapolator accesses the geometry if it is called with a LHCb::State, but not when it is called with a LHCb::StateVector. Given that geometry accesses are expensive and the SimplifiedGeometry is not available with DD4Hep (for now), make sure the State method is only used if the uncertainty / covariance is actually needed.

A quick search reveals the use with a LHCb::State in (only listing the non-monitoring / checking algorithms / tools, and the list is not exhaustive):

@cmarinbe @wouter @mveghel @peilian

Edited by Michel De Cian