#include <G4CachedMagneticField.hh>
Definition at line 47 of file G4CachedMagneticField.hh.
 
  
  
      
        
          | G4CachedMagneticField::~G4CachedMagneticField  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
Definition at line 70 of file G4CachedMagneticField.cc.
   73   fpMagneticField= rightCMF.fpMagneticField;  
 
   74   fDistanceConst = rightCMF.fDistanceConst;
 
   75   fLastLocation  = rightCMF.fLastLocation;
 
   76   fLastValue     = rightCMF.fLastValue;
 
 
 
 
  
  
      
        
          | void G4CachedMagneticField::ClearCounts  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | G4Field * G4CachedMagneticField::Clone  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Reimplemented from G4Field.
Definition at line 47 of file G4CachedMagneticField.cc.
   53   cloned->fLastLocation = fLastLocation;
 
   54   cloned->fLastValue = fLastValue;
 
virtual G4Field * Clone() const 
 
G4CachedMagneticField(G4MagneticField *, G4double distanceConst)
 
 
 
 
  
  
      
        
          | G4double G4CachedMagneticField::GetConstDistance  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | G4int G4CachedMagneticField::GetCountCalls  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | G4int G4CachedMagneticField::GetCountEvaluations  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
Implements G4MagneticField.
Definition at line 93 of file G4CachedMagneticField.cc.
  100   G4double      distSq= (newLocation-fLastLocation).mag2();
 
  102   if( distSq < fDistanceConst*fDistanceConst ) { 
 
  103      Bfield[0] = fLastValue.
x();
 
  104      Bfield[1] = fLastValue.
y();
 
  105      Bfield[2] = fLastValue.
z();
 
  112      fLastLocation= 
G4ThreeVector( Point[0],  Point[1],  Point[2] );
 
  114      fLastValue=    
G4ThreeVector( Bfield[0], Bfield[1], Bfield[2] );
 
CLHEP::Hep3Vector G4ThreeVector
 
virtual void GetFieldValue(const G4double Point[4], G4double *Bfield) const =0
 
 
 
 
Definition at line 80 of file G4CachedMagneticField.cc.
   82   if (&p == 
this) 
return *
this;
 
   84   fpMagneticField= p.fpMagneticField;  
 
   85   fDistanceConst = p.fDistanceConst;
 
   86   fLastLocation  = p.fLastLocation;
 
   87   fLastValue     = p.fLastValue;
 
G4MagneticField & operator=(const G4MagneticField &p)
 
 
 
 
      
        
          | void G4CachedMagneticField::ReportStatistics  | 
          ( | 
           | ) | 
           | 
        
      
 
 
  
  
      
        
          | void G4CachedMagneticField::SetConstDistance  | 
          ( | 
          G4double  | 
          dist | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | G4int G4CachedMagneticField::fCountCalls | 
         
       
   | 
  
mutableprotected   | 
  
 
 
  
  
      
        
          | G4int G4CachedMagneticField::fCountEvaluations | 
         
       
   | 
  
mutableprotected   | 
  
 
 
The documentation for this class was generated from the following files: