10#include "G4MagneticField.hh"
23 ISvcLocator* pSvcLocator)
24 : base_class(name, pSvcLocator)
36 static thread_local std::unique_ptr<G4MagneticField> field{
makeField()};
G4MagFieldSvcBase(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.
G4MagneticField * getField() override final
Retrieve a G4 magnetic field object.
virtual G4MagneticField * makeField()=0
This method must be overridden by concrete tools to create a new field.