ATLAS Offline Software
Loading...
Searching...
No Matches
G4mplEqMagElectricFieldTool.cxx
Go to the documentation of this file.
1// class header
3
4// package headers
5#include "G4mplEqMagElectricField.hh"
6
7// Geant4 headers
8#include "G4Version.hh"
9#include "G4MagneticField.hh"
10#include "G4Mag_EqRhs.hh"
11
12//=============================================================================
13// Standard constructor, initializes variables
14//=============================================================================
16 const std::string& nam,const IInterface* parent )
17 : base_class ( type, nam , parent )
18{
19}
20
21G4Mag_EqRhs* G4mplEqMagElectricFieldTool::makeEquationOfMotion(G4MagneticField *emField) const
22{
23 //FIXME thread-safety aspect here?
24 return static_cast<G4Mag_EqRhs*>(new G4mplEqMagElectricField(emField));
25}
virtual G4Mag_EqRhs * makeEquationOfMotion(G4MagneticField *emField) const override final
Implements.
G4mplEqMagElectricFieldTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.