Skip to content

Introduce ParametersCommon to factorize the relation between PatternTrackParameters and ParametersBase

Introduce ParametersCommon to factorize the relation between PatternTrackParameters and ParametersBase

The issue starts due to

class PatternTrackParameters final : public ParametersBase<5, Trk::Charged>{

but we have convertors

// Convertors
std::unique_ptr<ParametersBase<5, Trk::Charged>> convert(bool) const;
bool production(const ParametersBase<5, Trk::Charged>*);

PatternTrackParameters is not a kind of ParametersBase .

There are some common parts we should try to factorize thus the ParametersCommon

In principle if this succeeds we should follow up with a a bit of more cleanup.

ping @sroe

Edited by Christos Anastopoulos

Merge request reports