k4SimGeant4
Loading...
Searching...
No Matches
ISimG4MagneticFieldTool.h
Go to the documentation of this file.
1#ifndef SIMG4INTERFACE_ISIMG4MAGNETICFIELDTOOL_H
2#define SIMG4INTERFACE_ISIMG4MAGNETICFIELDTOOL_H
3
4// from Gaudi
5#include "GaudiKernel/IAlgTool.h"
6
7// Geant 4:
8#include "G4MagneticField.hh"
9
18// FIXME this tool should rather be a MagneticFieldSvc since it deals with G4 singletons
19
20class ISimG4MagneticFieldTool : virtual public IAlgTool {
21public:
23
27 virtual const G4MagneticField* field() const = 0;
28};
29
30#endif /* SIMG4INTERFACE_ISIM4MAGNETICFIELDTOOL_H */
Abstract interface to Geant4 field classes.
Definition ISimG4MagneticFieldTool.h:20
virtual const G4MagneticField * field() const =0
get initialization hook for the magnetic field
DeclareInterfaceID(ISimG4MagneticFieldTool, 1, 0)