gfields
|
Factory class for creating and managing multipole magnetic fields. More...
#include <gfield_multipoles.h>
Public Member Functions | |
GField_MultipolesFactory () | |
Default constructor for the GField_MultipolesFactory class. More... | |
void | GetFieldValue (const G4double pos[4], G4double *bfield) const override |
Calculates the magnetic field at a given position. More... | |
void | load_field_definitions (GFieldDefinition gfd) override |
Sets the field definition for the field. More... | |
![]() | |
GField ()=default | |
Default constructor. More... | |
virtual | ~GField ()=default |
Virtual destructor. More... | |
virtual void | GetFieldValue (const double x[3], double *bfield) const =0 |
Pure virtual function to get the magnetic field value. More... | |
G4FieldManager * | create_FieldManager () |
Creates the G4FieldManager for the field. More... | |
void | gFLogMessage (std::string message) |
Logs a message with the field context. More... | |
int | get_field_parameter_int (std::string key) |
double | get_field_parameter_double (std::string key) |
Additional Inherited Members | |
![]() | |
static GField * | instantiate (const dlhandle handle) |
![]() | |
GFieldDefinition | gfield_definitions |
This class represents a specific implementation of a magnetic field characterized by multipoles. It inherits from the GField base class.
Definition at line 13 of file gfield_multipoles.h.
|
inline |
Definition at line 19 of file gfield_multipoles.h.
|
override |
pos | Array containing the position (x, y, z, time). |
bfield | Output array to store the magnetic field vector (Bx, By, Bz). |
Definition at line 26 of file gfield_multipoles.cc.
|
overridevirtual |
gfd | Field definition to set. |
Reimplemented from GField.
Definition at line 84 of file gfield_multipoles.cc.