Remove charge cache in pattern parameters
Currently, we're storing the charge value of the pattern track parameters in a cached value, but this is not really necessary. Computing the charge is so trivial and fast (from the q/p value) that there really is no reason to cache this. We use the lazy binding behaviour of the charge method to simply recompute on the fly.
Showing
- Tracking/TrkEvent/TrkPatternParameters/TrkPatternParameters/PatternTrackParameters.h 7 additions, 30 deletions...nParameters/TrkPatternParameters/PatternTrackParameters.h
- Tracking/TrkEvent/TrkPatternParameters/src/PatternTrackParameters.cxx 12 additions, 41 deletions...Event/TrkPatternParameters/src/PatternTrackParameters.cxx
Loading
Please register or sign in to comment