#include <G4CachedMagneticField.hh>
Definition at line 48 of file G4CachedMagneticField.hh.
◆ G4CachedMagneticField() [1/2]
◆ ~G4CachedMagneticField()
G4CachedMagneticField::~G4CachedMagneticField |
( |
| ) |
|
|
virtual |
◆ G4CachedMagneticField() [2/2]
Definition at line 59 of file G4CachedMagneticField.cc.
61{
62 fpMagneticField= rightCMF.fpMagneticField;
63 fDistanceConst = rightCMF.fDistanceConst;
64 fLastLocation = rightCMF.fLastLocation;
65 fLastValue = rightCMF.fLastValue;
67}
◆ ClearCounts()
void G4CachedMagneticField::ClearCounts |
( |
| ) |
|
|
inline |
◆ GetConstDistance()
G4double G4CachedMagneticField::GetConstDistance |
( |
| ) |
const |
|
inline |
◆ GetCountCalls()
G4int G4CachedMagneticField::GetCountCalls |
( |
| ) |
const |
|
inline |
◆ GetCountEvaluations()
G4int G4CachedMagneticField::GetCountEvaluations |
( |
| ) |
const |
|
inline |
◆ GetFieldValue()
Implements G4MagneticField.
Definition at line 75 of file G4CachedMagneticField.cc.
77{
79
80
81
82 G4double distSq= (newLocation-fLastLocation).mag2();
84 if( distSq < fDistanceConst*fDistanceConst ) {
85 Bfield[0] = fLastValue.
x();
86 Bfield[1] = fLastValue.
y();
87 Bfield[2] = fLastValue.
z();
88 }else{
89
91
93
95
97 }
98}
CLHEP::Hep3Vector G4ThreeVector
virtual void GetFieldValue(const G4double Point[4], G4double *Bfield) const =0
◆ operator=()
◆ ReportStatistics()
void G4CachedMagneticField::ReportStatistics |
( |
| ) |
|
◆ SetConstDistance()
void G4CachedMagneticField::SetConstDistance |
( |
G4double |
dist | ) |
|
|
inline |
◆ fCountCalls
G4int G4CachedMagneticField::fCountCalls |
|
mutableprotected |
◆ fCountEvaluations
G4int G4CachedMagneticField::fCountEvaluations |
|
protected |
The documentation for this class was generated from the following files: