Geant4 9.6.0
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 ()
 
virtual ~G4ElectroMagneticField ()
 
 G4ElectroMagneticField (const G4ElectroMagneticField &r)
 
G4ElectroMagneticFieldoperator= (const G4ElectroMagneticField &p)
 
virtual void GetFieldValue (const G4double Point[4], G4double *Bfield) const =0
 
virtual G4bool DoesFieldChangeEnergy () const =0
 
- Public Member Functions inherited from G4Field
virtual void GetFieldValue (const double Point[4], double *fieldArr) const =0
 
 G4Field (G4bool gravityOn=false)
 
 G4Field (const G4Field &)
 
virtual ~G4Field ()
 
G4Fieldoperator= (const G4Field &p)
 
virtual G4bool DoesFieldChangeEnergy () const =0
 
G4bool IsGravityActive () const
 
void SetGravityActive (G4bool OnOffFlag)
 

Detailed Description

Definition at line 62 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}

◆ ~G4ElectroMagneticField()

G4ElectroMagneticField::~G4ElectroMagneticField ( )
virtual

Definition at line 38 of file G4ElectroMagneticField.cc.

39{
40}

◆ G4ElectroMagneticField() [2/2]

G4ElectroMagneticField::G4ElectroMagneticField ( const G4ElectroMagneticField r)

Definition at line 42 of file G4ElectroMagneticField.cc.

43 : G4Field( r.IsGravityActive() ) // To allow extension to joint EM & g field
44{
45}
G4bool IsGravityActive() const
Definition: G4Field.hh:97

Member Function Documentation

◆ DoesFieldChangeEnergy()

virtual G4bool G4ElectroMagneticField::DoesFieldChangeEnergy ( ) const
pure virtual

Implements G4Field.

Implemented in G4ElectricField, and G4MagneticField.

◆ GetFieldValue()

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

◆ operator=()

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

Definition at line 48 of file G4ElectroMagneticField.cc.

49{
50 if (&p == this) return *this;
51 *this = p; return *this;
52}

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