#include <G4Mag_EqRhs.hh>
Inheritance diagram for G4Mag_EqRhs:
Public Member Functions | |
G4Mag_EqRhs (G4MagneticField *magField) | |
virtual | ~G4Mag_EqRhs () |
virtual void | EvaluateRhsGivenB (const G4double y[], const G4double B[3], G4double dydx[]) const =0 |
G4double | FCof () const |
virtual void | SetChargeMomentumMass (G4double particleCharge, G4double MomentumXc, G4double mass) |
Definition at line 48 of file G4Mag_EqRhs.hh.
G4Mag_EqRhs::G4Mag_EqRhs | ( | G4MagneticField * | magField | ) |
Definition at line 50 of file G4Mag_EqRhs.cc.
00051 : G4EquationOfMotion(magField), fCof_val(0.) 00052 { 00053 }
G4Mag_EqRhs::~G4Mag_EqRhs | ( | ) | [virtual] |
virtual void G4Mag_EqRhs::EvaluateRhsGivenB | ( | const G4double | y[], | |
const G4double | B[3], | |||
G4double | dydx[] | |||
) | const [pure virtual] |
Implements G4EquationOfMotion.
Implemented in G4ErrorMag_UsualEqRhs, G4Mag_SpinEqRhs, G4Mag_UsualEqRhs, G4KM_NucleonEqRhs, and G4KM_OpticalEqRhs.
G4double G4Mag_EqRhs::FCof | ( | ) | const [inline] |
Definition at line 83 of file G4Mag_EqRhs.hh.
Referenced by G4MagHelicalStepper::AdvanceHelix(), G4NystromRK4::ComputeRightHandSide(), G4Mag_UsualEqRhs::EvaluateRhsGivenB(), G4Mag_SpinEqRhs::EvaluateRhsGivenB(), G4ErrorMag_UsualEqRhs::EvaluateRhsGivenB(), G4MagHelicalStepper::GetInverseCurve(), and G4ConstRK4::RightHandSideConst().
void G4Mag_EqRhs::SetChargeMomentumMass | ( | G4double | particleCharge, | |
G4double | MomentumXc, | |||
G4double | mass | |||
) | [virtual] |
Implements G4EquationOfMotion.
Reimplemented in G4Mag_SpinEqRhs, G4Mag_UsualEqRhs, G4KM_NucleonEqRhs, and G4KM_OpticalEqRhs.
Definition at line 56 of file G4Mag_EqRhs.cc.
Referenced by G4Mag_UsualEqRhs::SetChargeMomentumMass(), and G4Mag_SpinEqRhs::SetChargeMomentumMass().
00059 { 00060 fCof_val = particleCharge*eplus*c_light ; // B must be in Tesla 00061 // fCof_val = fUnitConstant*particleCharge/MomentumXc; // B must be in Tesla 00062 // fMass = particleMass; 00063 }