G4Mag_EqRhs Class Reference

#include <G4Mag_EqRhs.hh>

Inheritance diagram for G4Mag_EqRhs:

G4EquationOfMotion G4KM_NucleonEqRhs G4KM_OpticalEqRhs G4Mag_SpinEqRhs G4Mag_UsualEqRhs G4ErrorMag_UsualEqRhs

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)

Detailed Description

Definition at line 48 of file G4Mag_EqRhs.hh.


Constructor & Destructor Documentation

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]

Definition at line 65 of file G4Mag_EqRhs.cc.

00065 { }


Member Function Documentation

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().

00084 {
00085   return fCof_val;
00086 }

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 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:27 2013 for Geant4 by  doxygen 1.4.7