|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4FieldSetup is a class for constructing magnetic, electromagnetic and gravity fields which strength is defined via G4Field. The equation of motion of a particle in a field and the integration method are set according to the selection in G4FieldParameters, as well as other accuracy parameters. More...
#include <G4FieldSetup.hh>
Public Member Functions | |
| G4FieldSetup (const G4FieldParameters ¶meters, G4Field *field, G4LogicalVolume *lv=nullptr) | |
| ~G4FieldSetup () | |
| G4FieldSetup ()=delete | |
| G4FieldSetup (const G4FieldSetup &right)=delete | |
| G4FieldSetup & | operator= (const G4FieldSetup &right)=delete |
| void | Clear () |
| void | Update () |
| void | PrintInfo (G4int verboseLevel, const G4String &about="created") |
| void | SetG4Field (G4Field *field) |
| G4Field * | GetG4Field () const |
| G4LogicalVolume * | GetLogicalVolume () const |
| G4EquationOfMotion * | GetEquation () const |
| G4MagIntegratorStepper * | GetStepper () const |
G4FieldSetup is a class for constructing magnetic, electromagnetic and gravity fields which strength is defined via G4Field. The equation of motion of a particle in a field and the integration method are set according to the selection in G4FieldParameters, as well as other accuracy parameters.
Definition at line 66 of file G4FieldSetup.hh.
| G4FieldSetup::G4FieldSetup | ( | const G4FieldParameters & | parameters, |
| G4Field * | field, | ||
| G4LogicalVolume * | lv = nullptr ) |
Standard constructor for G4FieldSetup.
| [in] | parameters | The field parameters. |
| [in] | field | Pointer to the field object. |
| [in] | lv | Optional logical volume where field applies; if null, global field applies. |
Definition at line 82 of file G4FieldSetup.cc.
Referenced by G4FieldSetup(), and operator=().
| G4FieldSetup::~G4FieldSetup | ( | ) |
Default Destructor.
Definition at line 107 of file G4FieldSetup.cc.
|
delete |
Default constructor, copy constructor and assignment operator not allowed.
|
delete |
| void G4FieldSetup::Clear | ( | ) |
Clears previously created setup.
Definition at line 480 of file G4FieldSetup.cc.
Referenced by Update().
|
inline |
Definition at line 121 of file G4FieldSetup.hh.
|
inline |
|
inline |
Definition at line 120 of file G4FieldSetup.hh.
|
inline |
Definition at line 122 of file G4FieldSetup.hh.
|
delete |
Prints information.
| [in] | verboseLevel | Verbosity level; if greater than 1, parameters are also printed out to standard output. |
| [in] | about | Optional string. |
Definition at line 520 of file G4FieldSetup.cc.
|
inline |
Setter for the field object.
Definition at line 114 of file G4FieldSetup.hh.
| void G4FieldSetup::Update | ( | ) |
Updates the field setup with new field parameters.
Definition at line 502 of file G4FieldSetup.cc.