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

Constructor & Destructor Documentation

◆ G4ElectricField() [1/2]

G4ElectricField::G4ElectricField ( )
default

◆ ~G4ElectricField()

G4ElectricField::~G4ElectricField ( )
overridedefault

◆ G4ElectricField() [2/2]

G4ElectricField::G4ElectricField ( const G4ElectricField & r)
default

Member Function Documentation

◆ DoesFieldChangeEnergy()

G4bool G4ElectricField::DoesFieldChangeEnergy ( ) const
inlineoverridevirtual

Implements G4ElectroMagneticField.

Definition at line 52 of file G4ElectricField.hh.

52{ return true; }

◆ GetFieldValue()

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

Implements G4ElectroMagneticField.

Implemented in G4UniformElectricField.

◆ operator=()

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

Definition at line 39 of file G4ElectricField.cc.

40{
41 if (&p == this) { return *this; }
43 return *this;
44}
G4ElectroMagneticField & operator=(const G4ElectroMagneticField &p)

Referenced by G4UniformElectricField::operator=().


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