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

#include <G4Field.hh>

+ Inheritance diagram for G4Field:

Public Member Functions

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 64 of file G4Field.hh.

Constructor & Destructor Documentation

◆ G4Field() [1/2]

G4Field::G4Field ( G4bool  gravityOn = false)

Definition at line 33 of file G4Field.cc.

33 :
34 fGravityActive( gravityOn )
35{
36}

◆ G4Field() [2/2]

G4Field::G4Field ( const G4Field p)

Definition at line 49 of file G4Field.cc.

50 : fGravityActive(p.fGravityActive)
51{
52}

◆ ~G4Field()

G4Field::~G4Field ( )
virtual

Definition at line 38 of file G4Field.cc.

39{
40}

Member Function Documentation

◆ DoesFieldChangeEnergy()

virtual G4bool G4Field::DoesFieldChangeEnergy ( ) const
pure virtual

◆ GetFieldValue()

◆ IsGravityActive()

G4bool G4Field::IsGravityActive ( ) const
inline

◆ operator=()

G4Field & G4Field::operator= ( const G4Field p)
inline

Definition at line 42 of file G4Field.cc.

43{
44 if (&p == this) return *this;
45 fGravityActive= p.fGravityActive;
46 return *this;
47}

◆ SetGravityActive()

void G4Field::SetGravityActive ( G4bool  OnOffFlag)
inline

Definition at line 104 of file G4Field.hh.

105{
106 fGravityActive= OnOffFlag;
107}

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