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

#include <G4ElectricField.hh>

+ Inheritance diagram for G4ElectricField:

Public Member Functions

 G4ElectricField ()
 
virtual ~G4ElectricField ()
 
 G4ElectricField (const G4ElectricField &r)
 
G4ElectricFieldoperator= (const G4ElectricField &p)
 
G4bool DoesFieldChangeEnergy () const
 
virtual void GetFieldValue (const G4double Point[4], G4double *Bfield) const =0
 
- Public Member Functions inherited from G4ElectroMagneticField
 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 45 of file G4ElectricField.hh.

Constructor & Destructor Documentation

◆ G4ElectricField() [1/2]

G4ElectricField::G4ElectricField ( )

Definition at line 33 of file G4ElectricField.cc.

34{
35}

◆ ~G4ElectricField()

G4ElectricField::~G4ElectricField ( )
virtual

Definition at line 37 of file G4ElectricField.cc.

38{
39}

◆ G4ElectricField() [2/2]

G4ElectricField::G4ElectricField ( const G4ElectricField r)

Definition at line 41 of file G4ElectricField.cc.

Member Function Documentation

◆ DoesFieldChangeEnergy()

G4bool G4ElectricField::DoesFieldChangeEnergy ( ) const
inlinevirtual

Implements G4ElectroMagneticField.

Definition at line 57 of file G4ElectricField.hh.

57{ return true; }

◆ GetFieldValue()

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

Implements G4ElectroMagneticField.

Implemented in G4UniformElectricField.

◆ operator=()

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

Definition at line 46 of file G4ElectricField.cc.

47{
48 if (&p == this) return *this; *this = p; return *this;
49}

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