|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <G4ElectroMagneticField.hh>
Public Member Functions | |
| G4ElectroMagneticField () | |
| ~G4ElectroMagneticField () override=default | |
| G4ElectroMagneticField (const G4ElectroMagneticField &r)=default | |
| G4ElectroMagneticField & | operator= (const G4ElectroMagneticField &p) |
| void | GetFieldValue (const G4double Point[4], G4double *Bfield) const override=0 |
| G4bool | DoesFieldChangeEnergy () const override=0 |
| G4FieldType | GetFieldType () const override |
| Public Member Functions inherited from G4Field | |
| G4Field (G4bool gravityOn=false) | |
| virtual | ~G4Field ()=default |
| G4Field (const G4Field &p)=default | |
| G4Field & | operator= (const G4Field &p) |
| G4bool | IsGravityActive () const |
| void | SetGravityActive (G4bool OnOffFlag) |
| virtual G4Field * | Clone () const |
Additional Inherited Members | |
| Static Public Attributes inherited from G4Field | |
| static constexpr G4int | MAX_NUMBER_OF_COMPONENTS = 24 |
Definition at line 52 of file G4ElectroMagneticField.hh.
| G4ElectroMagneticField::G4ElectroMagneticField | ( | ) |
Constructor and default Destructor.
Definition at line 33 of file G4ElectroMagneticField.cc.
Referenced by G4ElectroMagneticField(), and operator=().
|
overridedefault |
|
default |
Copy constructor and assignment operator.
|
overridepure virtual |
For field with an electric component it should return true. For pure magnetic field it should return false. Alternative: default safe implementation is to return true.
Implements G4Field.
Implemented in G4ElectricField.
|
inlineoverridevirtual |
Returns the field type-ID, "kElectroMagnetic".
Reimplemented from G4Field.
Definition at line 86 of file G4ElectroMagneticField.hh.
|
overridepure virtual |
Interface for returning the field value 'Bfield' on given time 'Point'. Returns as Bfield[0], [1], [2] the magnetic field x, y & z components and as Bfield[3], [4], [5] the electric field x, y & z components.
Implements G4Field.
Implemented in G4ElectricField, and G4UniformElectricField.
| G4ElectroMagneticField & G4ElectroMagneticField::operator= | ( | const G4ElectroMagneticField & | p | ) |
Definition at line 39 of file G4ElectroMagneticField.cc.
Referenced by G4ElectricField::operator=().