Skip to content

static thread checker for TrkParameters and TrkParametersBase, avoid const_cast and remove a static.

static thread checker for TrkParameters and TrkParametersBase.

The main issues were :

  • const S& CurvilinearParametersT<DIM,T,S>::associatedSurface() const was doing a lazy initialisation of the const S* m_surface ,on top it was using a const_cast. Instead of lazy init, the ctor now creates the surface. Hopefully it will work on the CI. Otherwise we will need some cache or so ...

  • a static variable --> make it plain local one.

  • I took the opportunity to add a few override \ override final

Edited by Christos Anastopoulos

Merge request reports