tracking tools magnets addition simplify
The following discussion from !291 (merged) should be addressed:
-
@akorneev started a discussion:
// register the magnets
std::vector<Magnet::Generic*> magnets = {magnet01, magnet02, magnet03};
factory->RegisterNewMagnet(magnet01->GetMagnetName(), magnet01);
factory->RegisterNewMagnet(magnet02->GetMagnetName(), magnet02);
factory->RegisterNewMagnet(magnet03->GetMagnetName(), magnet03);
Suggestion to simplify a bit tracking tools setup - function which can register several magnets:
factory->RegisterNewMagnets(magnets);
Edited by Anton Karneyeu