Geant4  10.01.p03
G4CachedMagneticField Class Reference

#include <G4CachedMagneticField.hh>

+ Inheritance diagram for G4CachedMagneticField:
+ Collaboration diagram for G4CachedMagneticField:

Public Member Functions

 G4CachedMagneticField (G4MagneticField *, G4double distanceConst)
 
virtual ~G4CachedMagneticField ()
 
 G4CachedMagneticField (const G4CachedMagneticField &r)
 
G4CachedMagneticFieldoperator= (const G4CachedMagneticField &p)
 
virtual void GetFieldValue (const G4double Point[4], G4double *Bfield) const
 
G4double GetConstDistance () const
 
void SetConstDistance (G4double dist)
 
G4int GetCountCalls () const
 
G4int GetCountEvaluations () const
 
void ClearCounts ()
 
void ReportStatistics ()
 
virtual G4CachedMagneticFieldClone () const
 
- Public Member Functions inherited from G4MagneticField
 G4MagneticField ()
 
virtual ~G4MagneticField ()
 
 G4MagneticField (const G4MagneticField &r)
 
G4MagneticFieldoperator= (const G4MagneticField &p)
 
G4bool DoesFieldChangeEnergy () const
 
- Public Member Functions inherited from G4ElectroMagneticField
 G4ElectroMagneticField ()
 
virtual ~G4ElectroMagneticField ()
 
 G4ElectroMagneticField (const G4ElectroMagneticField &r)
 
G4ElectroMagneticFieldoperator= (const G4ElectroMagneticField &p)
 
- 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)
 

Protected Attributes

G4int fCountCalls
 
G4int fCountEvaluations
 

Private Attributes

G4MagneticFieldfpMagneticField
 
G4double fDistanceConst
 
G4ThreeVector fLastLocation
 
G4ThreeVector fLastValue
 

Detailed Description

Definition at line 47 of file G4CachedMagneticField.hh.

Constructor & Destructor Documentation

G4CachedMagneticField::G4CachedMagneticField ( G4MagneticField pMagField,
G4double  distanceConst 
)

Definition at line 33 of file G4CachedMagneticField.cc.

References ClearCounts(), fDistanceConst, and fpMagneticField.

Referenced by Clone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4CachedMagneticField::~G4CachedMagneticField ( )
virtual

Definition at line 58 of file G4CachedMagneticField.cc.

G4CachedMagneticField::G4CachedMagneticField ( const G4CachedMagneticField r)

Definition at line 70 of file G4CachedMagneticField.cc.

References ClearCounts(), fDistanceConst, fLastLocation, fLastValue, and fpMagneticField.

+ Here is the call graph for this function:

Member Function Documentation

void G4CachedMagneticField::ClearCounts ( )
inline

Definition at line 67 of file G4CachedMagneticField.hh.

References fCountCalls, and fCountEvaluations.

Referenced by G4CachedMagneticField().

+ Here is the caller graph for this function:

G4CachedMagneticField * G4CachedMagneticField::Clone ( ) const
virtual

Reimplemented from G4Field.

Definition at line 47 of file G4CachedMagneticField.cc.

References G4Field::Clone(), fDistanceConst, fLastLocation, fLastValue, fpMagneticField, and G4CachedMagneticField().

+ Here is the call graph for this function:

G4double G4CachedMagneticField::GetConstDistance ( ) const
inline

Definition at line 62 of file G4CachedMagneticField.hh.

References fDistanceConst.

G4int G4CachedMagneticField::GetCountCalls ( ) const
inline

Definition at line 65 of file G4CachedMagneticField.hh.

References fCountCalls.

G4int G4CachedMagneticField::GetCountEvaluations ( ) const
inline

Definition at line 66 of file G4CachedMagneticField.hh.

References fCountEvaluations.

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

Implements G4MagneticField.

Definition at line 86 of file G4CachedMagneticField.cc.

References fCountCalls, fCountEvaluations, fDistanceConst, fLastLocation, fLastValue, fpMagneticField, and G4MagneticField::GetFieldValue().

+ Here is the call graph for this function:

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

Definition at line 80 of file G4CachedMagneticField.cc.

void G4CachedMagneticField::ReportStatistics ( )

Definition at line 63 of file G4CachedMagneticField.cc.

References fCountCalls, fCountEvaluations, G4cout, and G4endl.

void G4CachedMagneticField::SetConstDistance ( G4double  dist)
inline

Definition at line 63 of file G4CachedMagneticField.hh.

References fDistanceConst.

Member Data Documentation

G4int G4CachedMagneticField::fCountCalls
mutableprotected
G4int G4CachedMagneticField::fCountEvaluations
mutableprotected
G4double G4CachedMagneticField::fDistanceConst
private
G4ThreeVector G4CachedMagneticField::fLastLocation
mutableprivate

Definition at line 77 of file G4CachedMagneticField.hh.

Referenced by Clone(), G4CachedMagneticField(), and GetFieldValue().

G4ThreeVector G4CachedMagneticField::fLastValue
mutableprivate

Definition at line 78 of file G4CachedMagneticField.hh.

Referenced by Clone(), G4CachedMagneticField(), and GetFieldValue().

G4MagneticField* G4CachedMagneticField::fpMagneticField
private

Definition at line 73 of file G4CachedMagneticField.hh.

Referenced by Clone(), G4CachedMagneticField(), and GetFieldValue().


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