Geant4 11.2.2
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 ()
 
 ~G4MagneticField () override
 
 G4MagneticField (const G4MagneticField &r)
 
G4MagneticFieldoperator= (const G4MagneticField &p)
 
G4bool DoesFieldChangeEnergy () const override
 
void GetFieldValue (const G4double Point[4], G4double *Bfield) const override=0
 
- 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 G4MagneticField.hh.

Constructor & Destructor Documentation

◆ G4MagneticField() [1/2]

G4MagneticField::G4MagneticField ( )

Definition at line 33 of file G4MagneticField.cc.

34 : G4Field( false ) // No gravitational field (default)
35{
36}
G4Field(G4bool gravityOn=false)
Definition G4Field.cc:33

◆ ~G4MagneticField()

G4MagneticField::~G4MagneticField ( )
overridedefault

◆ G4MagneticField() [2/2]

G4MagneticField::G4MagneticField ( const G4MagneticField & r)

Definition at line 40 of file G4MagneticField.cc.

41 : G4Field( false )
42{
43}

Member Function Documentation

◆ DoesFieldChangeEnergy()

G4bool G4MagneticField::DoesFieldChangeEnergy ( ) const
inlineoverridevirtual

Implements G4Field.

Definition at line 52 of file G4MagneticField.hh.

52{ return false; }

◆ GetFieldValue()

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

◆ operator=()

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

Definition at line 45 of file G4MagneticField.cc.

46{
47 if (&p == this) { return *this; }
49 return *this;
50}
G4Field & operator=(const G4Field &p)
Definition G4Field.cc:40

Referenced by G4CachedMagneticField::operator=(), and G4UniformMagField::operator=().


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