ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <geant4/tree/geant4-10.6-release/source/processes/transportation/include/G4Transportation.hh>
Static Public Member Functions | |
static G4bool | EnableMagneticMoment (G4bool useMoment=true) |
static G4bool | EnableGravity (G4bool useGravity=true) |
static void | SetSilenceLooperWarnings (G4bool val) |
static G4bool | GetSilenceLooperWarnings () |
static G4bool | EnableUseMagneticMoment (G4bool useMoment=true) |
Static Public Member Functions inherited from G4VProcess | |
static const G4String & | GetProcessTypeName (G4ProcessType) |
Protected Member Functions | |
G4bool | DoesAnyFieldExist () |
void | ReportMissingLogger (const char *methodName) |
Protected Member Functions inherited from G4VProcess | |
void | SubtractNumberOfInteractionLengthLeft (G4double previousStepSize) |
void | ClearNumberOfInteractionLengthLeft () |
Static Private Attributes | |
static G4bool | fUseMagneticMoment =false |
static G4bool | fUseGravity = false |
static G4bool | fSilenceLooperWarnings = false |
Friends | |
class | G4CoupledTransportation |
Definition at line 60 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 60 of file G4Transportation.hh
G4Transportation::G4Transportation | ( | G4int | verbosityLevel = 1 | ) |
Definition at line 69 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 69 of file G4Transportation.cc
References DoesAnyFieldExist(), fAnyFieldExists, fCurrentTouchableHandle, fFieldPropagator, fLinearNavigator, fParticleChange, fpLogger, fpSafetyHelper, fShortStepOptimisation, G4cout, G4endl, G4ThreadLocal, G4TransportationManager::GetNavigatorForTracking(), G4TransportationManager::GetPropagatorInField(), G4TransportationManager::GetSafetyHelper(), G4TransportationManager::GetTransportationManager(), G4VProcess::pParticleChange, PushThresholdsToLogger(), SetHighLooperThresholds(), G4VProcess::SetProcessSubType(), G4VProcess::SetVerboseLevel(), TRANSPORTATION, and G4VProcess::verboseLevel.
G4Transportation::~G4Transportation | ( | ) |
Definition at line 127 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 127 of file G4Transportation.cc
References fpLogger, fSumEnergyKilled, G4cout, and PrintStatistics().
|
virtual |
Implements G4VProcess.
Definition at line 536 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 536 of file G4Transportation.cc
References fAbandonUnstableTrials, fCandidateEndGlobalTime, fEndGlobalTimeComputed, fFieldPropagator, fMaxEnergyKilled, fMaxEnergyKilled_NonElecPDG, fMaxEnergyKilled_NonElectron, fMaxEnergyKilledPDG, fMaxEnergySaved, fMomentumChanged, fNoLooperTrials, fNumLoopersKilled, fNumLoopersKilled_NonElectron, fParticleChange, fParticleIsLooping, fpLogger, fSilenceLooperWarnings, fStopAndKill, fSumEnergyKilled, fSumEnergyKilled_NonElectron, fSumEnergySaved, fSumEnergyUnstableSaved, fSumEnerSqKilled, fSumEnerSqKilled_NonElectron, fThreshold_Important_Energy, fThreshold_Warning_Energy, fThresholdTrials, fTransportEndKineticEnergy, fTransportEndMomentumDir, fTransportEndPosition, fTransportEndSpin, G4cout, G4endl, G4ThreadLocal, G4Track::GetDynamicParticle(), G4Track::GetGlobalTime(), G4Track::GetLocalTime(), G4DynamicParticle::GetMass(), G4DynamicParticle::GetParticleDefinition(), G4ParticleDefinition::GetPDGStable(), G4Step::GetPreStepPoint(), G4Track::GetProperTime(), G4Track::GetStepLength(), G4Track::GetTotalEnergy(), G4StepPoint::GetVelocity(), G4PropagatorInField::GimmeTrajectoryVectorAndForgetIt(), G4ParticleChangeForTransport::Initialize(), max, G4ParticleChange::ProposeEnergy(), G4ParticleChange::ProposeGlobalTime(), G4ParticleChange::ProposeLocalTime(), G4ParticleChange::ProposeMomentumDirection(), G4ParticleChange::ProposePolarization(), G4ParticleChange::ProposePosition(), G4ParticleChange::ProposeProperTime(), G4VParticleChange::ProposeTrackStatus(), G4TransportationLogger::ReportLoopingTrack(), G4ParticleChangeForTransport::SetMomentumChanged(), G4ParticleChangeForTransport::SetPointerToVectorOfAuxiliaryPoints(), and G4VProcess::verboseLevel.
|
virtual |
Implements G4VProcess.
Definition at line 182 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 182 of file G4Transportation.cc
References CandidateForSelection, G4Navigator::ComputeSafety(), G4PropagatorInField::ComputeStep(), G4Navigator::ComputeStep(), G4FieldManager::ConfigureForTrack(), G4FieldManager::DoesFieldChangeEnergy(), false, fCandidateEndGlobalTime, fEndGlobalTimeComputed, fEndPointDistance, fFieldExertedForce, fFieldPropagator, fFirstStepInVolume, fGeometryLimitedStep, G4PropagatorInField::FindAndSetFieldManager(), fLastStepInVolume, fLinearNavigator, fMomentumChanged, fNewTrack, fParticleChange, fParticleIsLooping, fPreviousSafety, fPreviousSftOrigin, fpSafetyHelper, fShortStepOptimisation, fThreshold_Important_Energy, fTransportEndKineticEnergy, fTransportEndMomentumDir, fTransportEndPosition, fTransportEndSpin, fUseGravity, fUseMagneticMoment, G4cout, G4endl, G4Exception(), G4ThreadLocal, G4DynamicParticle::GetCharge(), G4PropagatorInField::GetCurrentEquationOfMotion(), G4PropagatorInField::GetCurrentFieldManager(), G4DynamicParticle::GetDefinition(), G4FieldManager::GetDetectorField(), G4Track::GetDynamicParticle(), G4Track::GetGlobalTime(), G4FieldTrack::GetKineticEnergy(), G4Track::GetKineticEnergy(), G4FieldTrack::GetLabTimeOfFlight(), G4DynamicParticle::GetMagneticMoment(), G4DynamicParticle::GetMass(), G4FieldTrack::GetMomentumDir(), G4DynamicParticle::GetMomentumDirection(), G4Track::GetMomentumDirection(), G4ParticleDefinition::GetPDGMagneticMoment(), G4ParticleDefinition::GetPDGSpin(), G4Track::GetPolarization(), G4FieldTrack::GetPosition(), G4Track::GetPosition(), G4FieldTrack::GetSpin(), G4DynamicParticle::GetTotalMomentum(), G4Track::GetVolume(), G4Field::IsGravityActive(), G4PropagatorInField::IsLastStepInVolume(), G4PropagatorInField::IsParticleLooping(), JustWarning, CLHEP::Hep3Vector::mag2(), message(), MeV, min, perMillion, perThousand, G4VParticleChange::ProposeFirstStepInVolume(), G4VParticleChange::ProposeTrueStepLength(), G4EquationOfMotion::SetChargeMomentumMass(), G4SafetyHelper::SetCurrentSafety(), sqr(), true, and G4VProcess::verboseLevel.
|
inlinevirtual |
Implements G4VProcess.
Definition at line 147 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 147 of file G4Transportation.hh
|
inlinevirtual |
Implements G4VProcess.
Definition at line 143 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 143 of file G4Transportation.hh
|
protected |
Definition at line 871 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 871 of file G4Transportation.cc
References fUseGravity, and G4CoupledTransportation::fUseGravity.
Referenced by ExUCNExtraPhysics::ConstructProcess(), and main().
Definition at line 860 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 860 of file G4Transportation.cc
References fUseMagneticMoment, and G4CoupledTransportation::fUseMagneticMoment.
Referenced by EnableUseMagneticMoment().
Definition at line 138 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 138 of file G4Transportation.hh
References EnableMagneticMoment().
|
inline |
Definition at line 96 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 96 of file G4Transportation.hh
References fFieldExertedForce.
|
inline |
G4PropagatorInField* G4Transportation::GetPropagatorInField | ( | ) |
|
static |
Definition at line 891 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 891 of file G4Transportation.cc
References fSilenceLooperWarnings.
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Implements G4VProcess.
Definition at line 696 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 696 of file G4Transportation.cc
References G4Navigator::EnteredDaughterVolume(), G4Navigator::ExitedMotherVolume(), fCurrentTouchableHandle, fFieldExertedForce, fFieldPropagator, fFirstStepInVolume, fGeometryLimitedStep, fLastStepInVolume, fLinearNavigator, fParticleChange, fStopAndKill, G4VPhysicalVolume::GetLogicalVolume(), G4MaterialCutsCouple::GetMaterial(), G4LogicalVolume::GetMaterial(), G4ProductionCutsTable::GetMaterialCutsCouple(), G4LogicalVolume::GetMaterialCutsCouple(), G4Track::GetMomentumDirection(), G4Track::GetPosition(), G4MaterialCutsCouple::GetProductionCuts(), G4ProductionCutsTable::GetProductionCutsTable(), G4LogicalVolume::GetSensitiveDetector(), G4Track::GetTouchableHandle(), G4Track::GetTrackStatus(), G4VTouchable::GetVolume(), G4PropagatorInField::IsLastStepInVolume(), G4Navigator::LocateGlobalPointWithinVolume(), G4VParticleChange::ProposeFirstStepInVolume(), G4VParticleChange::ProposeLastStepInVolume(), G4VParticleChange::ProposeTrackStatus(), G4Navigator::SetGeometricallyLimitedStep(), G4ParticleChangeForTransport::SetMaterialCutsCoupleInTouchable(), G4ParticleChangeForTransport::SetMaterialInTouchable(), G4ParticleChangeForTransport::SetSensitiveDetectorInTouchable(), G4ParticleChangeForTransport::SetTouchableHandle(), and true.
|
virtual |
Implements G4VProcess.
Definition at line 684 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 684 of file G4Transportation.cc
References DBL_MAX, fFieldExertedForce, and Forced.
void G4Transportation::PrintStatistics | ( | std::ostream & | outStr | ) | const |
Definition at line 139 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 139 of file G4Transportation.cc
References fMaxEnergyKilled, fMaxEnergyKilled_NonElecPDG, fMaxEnergyKilled_NonElectron, fMaxEnergyKilledPDG, fMaxEnergySaved, fNumLoopersKilled, fNumLoopersKilled_NonElectron, fSumEnergyKilled, fSumEnergyKilled_NonElectron, fSumEnergySaved, fSumEnergyUnstableSaved, G4endl, and CLHEP::MeV.
Referenced by ~G4Transportation().
|
virtual |
Reimplemented from G4VProcess.
Definition at line 950 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 950 of file G4Transportation.cc
References G4endl, and CLHEP::MeV.
void G4Transportation::PushThresholdsToLogger | ( | ) |
Referenced by G4Transportation(), ReportLooperThresholds(), SetHighLooperThresholds(), and SetLowLooperThresholds().
void G4Transportation::ReportLooperThresholds | ( | ) |
Definition at line 942 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 942 of file G4Transportation.cc
References fpLogger, PushThresholdsToLogger(), and G4TransportationLogger::ReportLooperThresholds().
Referenced by SetHighLooperThresholds(), and SetLowLooperThresholds().
|
protected |
Definition at line 931 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 931 of file G4Transportation.cc
References G4Exception(), JustWarning, and message().
void G4Transportation::SetHighLooperThresholds | ( | ) |
Definition at line 899 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 899 of file G4Transportation.cc
References CLHEP::MeV, PushThresholdsToLogger(), ReportLooperThresholds(), SetThresholdImportantEnergy(), SetThresholdTrials(), SetThresholdWarningEnergy(), and G4VProcess::verboseLevel.
Referenced by G4Transportation().
void G4Transportation::SetLowLooperThresholds | ( | ) |
Definition at line 915 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 915 of file G4Transportation.cc
References CLHEP::keV, CLHEP::MeV, PushThresholdsToLogger(), ReportLooperThresholds(), SetThresholdImportantEnergy(), SetThresholdTrials(), SetThresholdWarningEnergy(), and G4VProcess::verboseLevel.
void G4Transportation::SetPropagatorInField | ( | G4PropagatorInField * | pFieldPropagator | ) |
Definition at line 883 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 883 of file G4Transportation.cc
References fSilenceLooperWarnings.
Referenced by SetHighLooperThresholds(), and SetLowLooperThresholds().
Referenced by SetHighLooperThresholds(), and SetLowLooperThresholds().
Referenced by SetHighLooperThresholds(), and SetLowLooperThresholds().
Reimplemented from G4VProcess.
Definition at line 810 of file G4Transportation.cc.
View newest version in sPHENIX GitHub at line 810 of file G4Transportation.cc
References G4FieldManagerStore::ClearAllChordFindersState(), G4PropagatorInField::ClearPropagatorState(), DoesAnyFieldExist(), fAnyFieldExists, fCurrentTouchableHandle, fFieldPropagator, fFirstStepInVolume, fLastStepInVolume, fNewTrack, fNoLooperTrials, fPreviousSafety, fPreviousSftOrigin, G4FieldManagerStore::GetInstance(), G4Track::GetTouchableHandle(), G4PropagatorInField::PrepareNewTrack(), and G4VProcess::StartTracking().
|
friend |
Definition at line 240 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 240 of file G4Transportation.hh
|
private |
Definition at line 209 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 209 of file G4Transportation.hh
Referenced by AlongStepDoIt().
Definition at line 179 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 179 of file G4Transportation.hh
Referenced by G4Transportation(), and StartTracking().
|
private |
Definition at line 176 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 176 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and AlongStepGetPhysicalInteractionLength().
|
private |
Definition at line 191 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 191 of file G4Transportation.hh
Referenced by G4Transportation(), PostStepDoIt(), and StartTracking().
Definition at line 175 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 175 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and AlongStepGetPhysicalInteractionLength().
|
private |
Definition at line 200 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 200 of file G4Transportation.hh
Referenced by AlongStepGetPhysicalInteractionLength().
Definition at line 189 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 189 of file G4Transportation.hh
Referenced by AlongStepGetPhysicalInteractionLength(), FieldExertedForce(), PostStepDoIt(), and PostStepGetPhysicalInteractionLength().
|
private |
Definition at line 167 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 167 of file G4Transportation.hh
Referenced by AlongStepDoIt(), AlongStepGetPhysicalInteractionLength(), G4Transportation(), PostStepDoIt(), and StartTracking().
Definition at line 183 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 183 of file G4Transportation.hh
Referenced by AlongStepGetPhysicalInteractionLength(), PostStepDoIt(), and StartTracking().
Definition at line 186 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 186 of file G4Transportation.hh
Referenced by AlongStepGetPhysicalInteractionLength(), and PostStepDoIt().
Definition at line 184 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 184 of file G4Transportation.hh
Referenced by AlongStepGetPhysicalInteractionLength(), PostStepDoIt(), and StartTracking().
|
private |
Definition at line 166 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 166 of file G4Transportation.hh
Referenced by AlongStepGetPhysicalInteractionLength(), G4Transportation(), and PostStepDoIt().
|
private |
Definition at line 219 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 219 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and PrintStatistics().
|
private |
Definition at line 225 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 225 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and PrintStatistics().
|
private |
Definition at line 224 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 224 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and PrintStatistics().
|
private |
Definition at line 220 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 220 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and PrintStatistics().
|
private |
Definition at line 228 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 228 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and PrintStatistics().
Definition at line 174 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 174 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and AlongStepGetPhysicalInteractionLength().
Definition at line 182 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 182 of file G4Transportation.hh
Referenced by AlongStepGetPhysicalInteractionLength(), and StartTracking().
|
private |
Definition at line 213 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 213 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and StartTracking().
|
private |
Definition at line 221 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 221 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and PrintStatistics().
|
private |
Definition at line 226 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 226 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and PrintStatistics().
|
private |
Definition at line 197 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 197 of file G4Transportation.hh
Referenced by AlongStepDoIt(), AlongStepGetPhysicalInteractionLength(), G4Transportation(), and PostStepDoIt().
Definition at line 181 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 181 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and AlongStepGetPhysicalInteractionLength().
|
private |
Definition at line 236 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 236 of file G4Transportation.hh
Referenced by AlongStepDoIt(), G4Transportation(), ReportLooperThresholds(), and ~G4Transportation().
|
private |
Definition at line 194 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 194 of file G4Transportation.hh
Referenced by AlongStepGetPhysicalInteractionLength(), and StartTracking().
|
private |
Definition at line 193 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 193 of file G4Transportation.hh
Referenced by AlongStepGetPhysicalInteractionLength(), and StartTracking().
|
private |
Definition at line 235 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 235 of file G4Transportation.hh
Referenced by AlongStepGetPhysicalInteractionLength(), and G4Transportation().
|
private |
Definition at line 233 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 233 of file G4Transportation.hh
Referenced by AlongStepGetPhysicalInteractionLength(), and G4Transportation().
Definition at line 243 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 243 of file G4Transportation.hh
Referenced by AlongStepDoIt(), GetSilenceLooperWarnings(), and SetSilenceLooperWarnings().
|
private |
Definition at line 217 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 217 of file G4Transportation.hh
Referenced by AlongStepDoIt(), PrintStatistics(), and ~G4Transportation().
|
private |
Definition at line 222 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 222 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and PrintStatistics().
|
private |
Definition at line 227 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 227 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and PrintStatistics().
|
private |
Definition at line 229 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 229 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and PrintStatistics().
|
private |
Definition at line 218 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 218 of file G4Transportation.hh
Referenced by AlongStepDoIt().
|
private |
Definition at line 223 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 223 of file G4Transportation.hh
Referenced by AlongStepDoIt().
|
private |
Definition at line 205 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 205 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and AlongStepGetPhysicalInteractionLength().
|
private |
Definition at line 204 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 204 of file G4Transportation.hh
Referenced by AlongStepDoIt().
|
private |
Definition at line 206 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 206 of file G4Transportation.hh
Referenced by AlongStepDoIt().
|
private |
Definition at line 172 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 172 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and AlongStepGetPhysicalInteractionLength().
|
private |
Definition at line 171 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 171 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and AlongStepGetPhysicalInteractionLength().
|
private |
Definition at line 170 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 170 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and AlongStepGetPhysicalInteractionLength().
|
private |
Definition at line 173 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 173 of file G4Transportation.hh
Referenced by AlongStepDoIt(), and AlongStepGetPhysicalInteractionLength().
Definition at line 242 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 242 of file G4Transportation.hh
Referenced by AlongStepGetPhysicalInteractionLength(), EnableGravity(), and G4CoupledTransportation::EnableGravity().
Definition at line 241 of file G4Transportation.hh.
View newest version in sPHENIX GitHub at line 241 of file G4Transportation.hh
Referenced by AlongStepGetPhysicalInteractionLength(), EnableMagneticMoment(), and G4CoupledTransportation::EnableMagneticMoment().