Geant4 10.7.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
 G4Field (G4bool gravityOn=false)
 
 G4Field (const G4Field &)
 
virtual ~G4Field ()
 
G4Fieldoperator= (const G4Field &p)
 
virtual void GetFieldValue (const G4double Point[4], G4double *fieldArr) const =0
 
virtual G4bool DoesFieldChangeEnergy () const =0
 
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 40 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 52 of file G4ElectricField.hh.

52{ 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;
50 return *this;
51}
G4ElectroMagneticField & operator=(const G4ElectroMagneticField &p)

Referenced by G4UniformElectricField::operator=().


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