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 theconst S* m_surface
,on top it was using aconst_cast
. Instead of lazy init, the ctor now creates the surface. Hopefully it will work on theCI
. 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