G4Field Class Reference

#include <G4Field.hh>

Inheritance diagram for G4Field:

G4ElectroMagneticField G4UniformGravityField G4ElectricField G4MagneticField G4UniformElectricField G4CachedMagneticField G4DELPHIMagField G4HarmonicPolMagField G4KM_DummyField G4LineCurrentMagField G4QuadrupoleMagField G4UniformMagField

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::G4Field ( G4bool  gravityOn = false  ) 

Definition at line 33 of file G4Field.cc.

00033                                  :
00034   fGravityActive( gravityOn )
00035 {
00036 }
 

G4Field::G4Field ( const G4Field  ) 

Definition at line 49 of file G4Field.cc.

00050   : fGravityActive(p.fGravityActive)
00051 {
00052 }

G4Field::~G4Field (  )  [virtual]

Definition at line 38 of file G4Field.cc.

00039 {
00040 }


Member Function Documentation

virtual G4bool G4Field::DoesFieldChangeEnergy (  )  const [pure virtual]

Implemented in G4ElectricField, G4ElectroMagneticField, G4MagneticField, and G4UniformGravityField.

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

virtual void G4Field::GetFieldValue ( const double  Point[4],
double *  fieldArr 
) const [pure virtual]

Implemented in G4CachedMagneticField, G4ElectricField, G4ElectroMagneticField, G4MagneticField, G4UniformElectricField, G4UniformGravityField, and G4UniformMagField.

Referenced by G4ErrorSurfaceTrajState::BuildErrorMatrix(), G4ErrorFreeTrajState::G4ErrorFreeTrajState(), G4SynchrotronRadiationInMat::GetMeanFreePath(), G4SynchrotronRadiation::GetMeanFreePath(), G4SynchrotronRadiationInMat::GetPhotonEnergy(), G4QSynchRad::GetRadius(), G4SynchrotronRadiationInMat::PostStepDoIt(), G4SynchrotronRadiation::PostStepDoIt(), G4ErrorMagFieldLimitProcess::PostStepGetPhysicalInteractionLength(), and G4ErrorFreeTrajState::PropagateError().

G4bool G4Field::IsGravityActive (  )  const [inline]

Definition at line 97 of file G4Field.hh.

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

00097 { return fGravityActive;}

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

Definition at line 42 of file G4Field.cc.

References fGravityActive.

00043 {
00044    if (&p == this) return *this;
00045    fGravityActive= p.fGravityActive;
00046    return *this;
00047 }

void G4Field::SetGravityActive ( G4bool  OnOffFlag  )  [inline]

Definition at line 104 of file G4Field.hh.

00105 { 
00106   fGravityActive= OnOffFlag; 
00107 } 


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:51:59 2013 for Geant4 by  doxygen 1.4.7