ATLAS Offline Software
Loading...
Searching...
No Matches
Simulation
G4Extensions
Monopole
src
G4mplEqMagElectricFieldTool.cxx
Go to the documentation of this file.
1
// class header
2
#include "
G4mplEqMagElectricFieldTool.h
"
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
//=============================================================================
15
G4mplEqMagElectricFieldTool::G4mplEqMagElectricFieldTool
(
const
std::string&
type
,
16
const
std::string& nam,
const
IInterface* parent )
17
: base_class (
type
, nam , parent )
18
{
19
}
20
21
G4Mag_EqRhs*
G4mplEqMagElectricFieldTool::makeEquationOfMotion
(G4MagneticField *emField)
const
22
{
23
//FIXME thread-safety aspect here?
24
return
static_cast<
G4Mag_EqRhs*
>
(
new
G4mplEqMagElectricField(emField));
25
}
G4mplEqMagElectricFieldTool.h
G4mplEqMagElectricFieldTool::makeEquationOfMotion
virtual G4Mag_EqRhs * makeEquationOfMotion(G4MagneticField *emField) const override final
Implements.
Definition
G4mplEqMagElectricFieldTool.cxx:21
G4mplEqMagElectricFieldTool::G4mplEqMagElectricFieldTool
G4mplEqMagElectricFieldTool(const std::string &type, const std::string &name, const IInterface *parent)
Standard constructor.
Definition
G4mplEqMagElectricFieldTool.cxx:15
type
Generated on
for ATLAS Offline Software by
1.14.0