Geant4  10.00.p03
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)
 
virtual G4FieldClone () const
 

Private Attributes

G4bool fGravityActive
 

Detailed Description

Definition at line 65 of file G4Field.hh.

Constructor & Destructor Documentation

G4Field::G4Field ( G4bool  gravityOn = false)

Definition at line 33 of file G4Field.cc.

G4Field::G4Field ( const G4Field p)

Definition at line 49 of file G4Field.cc.

G4Field::~G4Field ( )
virtual

Definition at line 38 of file G4Field.cc.

Member Function Documentation

G4Field * G4Field::Clone ( ) const
virtual

Reimplemented in G4UniformMagField, G4UniformGravityField, G4CachedMagneticField, G4QuadrupoleMagField, G4UniformElectricField, G4DELPHIMagField, G4HarmonicPolMagField, G4LineCurrentMagField, and G4KM_DummyField.

Definition at line 54 of file G4Field.cc.

References FatalException, and G4Exception().

Referenced by G4CachedMagneticField::Clone(), and G4FieldManager::Clone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual G4bool G4Field::DoesFieldChangeEnergy ( ) const
pure virtual

Implemented in F04GlobalField, G4ElectroMagneticField, G4UniformGravityField, G4MagneticField, G4ElectricField, EMField, and F05Field.

Referenced by G4FieldManager::G4FieldManager(), and G4FieldManager::SetDetectorField().

+ Here is the caller graph for this function:

G4bool G4Field::IsGravityActive ( ) const
inline

Definition at line 98 of file G4Field.hh.

References fGravityActive.

Referenced by G4Transportation::AlongStepGetPhysicalInteractionLength(), G4CoupledTransportation::AlongStepGetPhysicalInteractionLength(), and G4RepleteEofM::G4RepleteEofM().

+ Here is the caller graph for this function:

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

Definition at line 42 of file G4Field.cc.

References fGravityActive.

void G4Field::SetGravityActive ( G4bool  OnOffFlag)
inline

Definition at line 108 of file G4Field.hh.

References fGravityActive.

Member Data Documentation

G4bool G4Field::fGravityActive
private

Definition at line 105 of file G4Field.hh.

Referenced by IsGravityActive(), operator=(), and SetGravityActive().


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