Geant4-11
|
#include <G4CachedMagneticField.hh>
Public Member Functions | |
void | ClearCounts () |
virtual G4Field * | Clone () const |
G4bool | DoesFieldChangeEnergy () const |
G4CachedMagneticField (const G4CachedMagneticField &r) | |
G4CachedMagneticField (G4MagneticField *, G4double distanceConst) | |
G4double | GetConstDistance () const |
G4int | GetCountCalls () const |
G4int | GetCountEvaluations () const |
virtual void | GetFieldValue (const G4double Point[4], G4double *Bfield) const |
G4bool | IsGravityActive () const |
G4CachedMagneticField & | operator= (const G4CachedMagneticField &p) |
void | ReportStatistics () |
void | SetConstDistance (G4double dist) |
void | SetGravityActive (G4bool OnOffFlag) |
virtual | ~G4CachedMagneticField () |
Static Public Attributes | |
static constexpr G4int | MAX_NUMBER_OF_COMPONENTS = 24 |
Protected Attributes | |
G4int | fCountCalls = 0 |
G4int | fCountEvaluations = 0 |
Private Attributes | |
G4double | fDistanceConst |
G4bool | fGravityActive = false |
G4ThreeVector | fLastLocation |
G4ThreeVector | fLastValue |
G4MagneticField * | fpMagneticField = nullptr |
Definition at line 41 of file G4CachedMagneticField.hh.
G4CachedMagneticField::G4CachedMagneticField | ( | G4MagneticField * | pMagField, |
G4double | distanceConst | ||
) |
Definition at line 33 of file G4CachedMagneticField.cc.
References ClearCounts().
Referenced by Clone().
|
virtual |
Definition at line 53 of file G4CachedMagneticField.cc.
G4CachedMagneticField::G4CachedMagneticField | ( | const G4CachedMagneticField & | r | ) |
Definition at line 65 of file G4CachedMagneticField.cc.
References ClearCounts(), fDistanceConst, fLastLocation, fLastValue, and fpMagneticField.
|
inline |
Definition at line 61 of file G4CachedMagneticField.hh.
References fCountCalls, and fCountEvaluations.
Referenced by G4CachedMagneticField(), and operator=().
|
virtual |
Reimplemented from G4Field.
Definition at line 41 of file G4CachedMagneticField.cc.
References G4Field::Clone(), fDistanceConst, fLastLocation, fLastValue, fpMagneticField, and G4CachedMagneticField().
|
inlinevirtualinherited |
Implements G4Field.
Definition at line 52 of file G4MagneticField.hh.
Referenced by export_G4MagneticField().
|
inline |
Definition at line 56 of file G4CachedMagneticField.hh.
References fDistanceConst.
Referenced by G4NystromRK4::GetDistanceForConstantField().
|
inline |
|
inline |
|
virtual |
Implements G4MagneticField.
Definition at line 90 of file G4CachedMagneticField.cc.
References fCountCalls, fCountEvaluations, fDistanceConst, fLastLocation, fLastValue, fpMagneticField, G4MagneticField::GetFieldValue(), CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
|
inlineinherited |
Definition at line 101 of file G4Field.hh.
References G4Field::fGravityActive.
Referenced by G4CoupledTransportation::AlongStepGetPhysicalInteractionLength(), and G4RepleteEofM::G4RepleteEofM().
G4CachedMagneticField & G4CachedMagneticField::operator= | ( | const G4CachedMagneticField & | p | ) |
Definition at line 77 of file G4CachedMagneticField.cc.
References ClearCounts(), fDistanceConst, fLastLocation, fLastValue, fpMagneticField, and G4MagneticField::operator=().
void G4CachedMagneticField::ReportStatistics | ( | ) |
Definition at line 58 of file G4CachedMagneticField.cc.
References fCountCalls, fCountEvaluations, G4cout, and G4endl.
|
inline |
Definition at line 57 of file G4CachedMagneticField.hh.
References fDistanceConst.
Referenced by G4NystromRK4::SetDistanceForConstantField().
|
inlineinherited |
Definition at line 106 of file G4Field.hh.
References G4Field::fGravityActive.
|
mutableprotected |
Definition at line 68 of file G4CachedMagneticField.hh.
Referenced by ClearCounts(), GetCountCalls(), GetFieldValue(), and ReportStatistics().
|
protected |
Definition at line 68 of file G4CachedMagneticField.hh.
Referenced by ClearCounts(), GetCountEvaluations(), GetFieldValue(), and ReportStatistics().
|
private |
Definition at line 73 of file G4CachedMagneticField.hh.
Referenced by Clone(), G4CachedMagneticField(), GetConstDistance(), GetFieldValue(), operator=(), and SetConstDistance().
|
privateinherited |
Definition at line 96 of file G4Field.hh.
Referenced by G4Field::IsGravityActive(), G4Field::operator=(), and G4Field::SetGravityActive().
|
mutableprivate |
Definition at line 78 of file G4CachedMagneticField.hh.
Referenced by Clone(), G4CachedMagneticField(), GetFieldValue(), and operator=().
|
mutableprivate |
Definition at line 79 of file G4CachedMagneticField.hh.
Referenced by Clone(), G4CachedMagneticField(), GetFieldValue(), and operator=().
|
private |
Definition at line 72 of file G4CachedMagneticField.hh.
Referenced by Clone(), G4CachedMagneticField(), GetFieldValue(), and operator=().
|
staticconstexprinherited |
Definition at line 92 of file G4Field.hh.
Referenced by G4BFieldIntegrationDriver::CurvatureRadius().