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

#include <G4MagneticField.hh>

+ Inheritance diagram for G4MagneticField:

Public Member Functions

 G4MagneticField ()
 
virtual ~G4MagneticField ()
 
 G4MagneticField (const G4MagneticField &r)
 
G4MagneticFieldoperator= (const G4MagneticField &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 46 of file G4MagneticField.hh.

Constructor & Destructor Documentation

◆ G4MagneticField() [1/2]

G4MagneticField::G4MagneticField ( )

Definition at line 33 of file G4MagneticField.cc.

◆ ~G4MagneticField()

G4MagneticField::~G4MagneticField ( )
virtual

Definition at line 38 of file G4MagneticField.cc.

39{
40}

◆ G4MagneticField() [2/2]

G4MagneticField::G4MagneticField ( const G4MagneticField r)

Definition at line 42 of file G4MagneticField.cc.

43 : G4ElectroMagneticField( MagField )
44{
45}

Member Function Documentation

◆ DoesFieldChangeEnergy()

G4bool G4MagneticField::DoesFieldChangeEnergy ( ) const
inlinevirtual

Implements G4ElectroMagneticField.

Definition at line 58 of file G4MagneticField.hh.

58{ return false; }

◆ GetFieldValue()

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

◆ operator=()

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

Definition at line 47 of file G4MagneticField.cc.

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

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