Skip to content

Added possibility to register magnets as vector in the detector factory

Henri Hugo Sieber requested to merge factory-init-08112022-patch into main

The DetectorFactory is modified to account for its new methods RegisterListOfMagnets. The argument is a std::vectorMagnet::Generic*&. Check of the unicity of the name in the private map member of magnets is still assert. Tested against a simple example of creating a factory and accessing its magnets. Also works for Magnet::Generic derived classes.

Merge request reports