Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ElectroMagneticField Class Referenceabstract

#include <G4ElectroMagneticField.hh>

+ Inheritance diagram for G4ElectroMagneticField:

Public Member Functions

 G4ElectroMagneticField ()
 
 ~G4ElectroMagneticField () override
 
 G4ElectroMagneticField (const G4ElectroMagneticField &r)
 
G4ElectroMagneticFieldoperator= (const G4ElectroMagneticField &p)
 
void GetFieldValue (const G4double Point[4], G4double *Bfield) const override=0
 
G4bool DoesFieldChangeEnergy () const override=0
 
- Public Member Functions inherited from G4Field
 G4Field (G4bool gravityOn=false)
 
 G4Field (const G4Field &)
 
virtual ~G4Field ()
 
G4Fieldoperator= (const G4Field &p)
 
G4bool IsGravityActive () const
 
void SetGravityActive (G4bool OnOffFlag)
 
virtual G4FieldClone () const
 

Additional Inherited Members

- Static Public Attributes inherited from G4Field
static constexpr G4int MAX_NUMBER_OF_COMPONENTS = 24
 

Detailed Description

Definition at line 52 of file G4ElectroMagneticField.hh.

Constructor & Destructor Documentation

◆ G4ElectroMagneticField() [1/2]

G4ElectroMagneticField::G4ElectroMagneticField ( )

Definition at line 33 of file G4ElectroMagneticField.cc.

34 : G4Field( false ) // No gravitational field (default)
35{
36}
G4Field(G4bool gravityOn=false)
Definition G4Field.cc:33

◆ ~G4ElectroMagneticField()

G4ElectroMagneticField::~G4ElectroMagneticField ( )
overridedefault

◆ G4ElectroMagneticField() [2/2]

G4ElectroMagneticField::G4ElectroMagneticField ( const G4ElectroMagneticField & r)
default

Member Function Documentation

◆ DoesFieldChangeEnergy()

G4bool G4ElectroMagneticField::DoesFieldChangeEnergy ( ) const
overridepure virtual

Implements G4Field.

Implemented in G4ElectricField.

◆ GetFieldValue()

void G4ElectroMagneticField::GetFieldValue ( const G4double Point[4],
G4double * Bfield ) const
overridepure virtual

Implements G4Field.

Implemented in G4ElectricField, and G4UniformElectricField.

◆ operator=()

G4ElectroMagneticField & G4ElectroMagneticField::operator= ( const G4ElectroMagneticField & p)

Definition at line 44 of file G4ElectroMagneticField.cc.

45{
46 if (&p == this) { return *this; }
48 return *this;
49}
G4Field & operator=(const G4Field &p)
Definition G4Field.cc:40

Referenced by G4ElectricField::operator=().


The documentation for this class was generated from the following files: