Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4Mag_EqRhs Class Referenceabstract

#include <G4Mag_EqRhs.hh>

+ Inheritance diagram for G4Mag_EqRhs:

Public Member Functions

 G4Mag_EqRhs (G4MagneticField *magField)
 
 ~G4Mag_EqRhs () override
 
void EvaluateRhsGivenB (const G4double y[], const G4double B[3], G4double dydx[]) const override=0
 
G4double FCof () const
 
void SetChargeMomentumMass (G4ChargeState particleCharge, G4double MomentumXc, G4double mass) override
 
- Public Member Functions inherited from G4EquationOfMotion
 G4EquationOfMotion (G4Field *Field)
 
virtual ~G4EquationOfMotion ()
 
void RightHandSide (const G4double y[], G4double dydx[]) const
 
void EvaluateRhsReturnB (const G4double y[], G4double dydx[], G4double Field[]) const
 
void GetFieldValue (const G4double Point[4], G4double Field[]) const
 
const G4FieldGetFieldObj () const
 
G4FieldGetFieldObj ()
 
void SetFieldObj (G4Field *pField)
 

Detailed Description

Definition at line 46 of file G4Mag_EqRhs.hh.

Constructor & Destructor Documentation

◆ G4Mag_EqRhs()

G4Mag_EqRhs::G4Mag_EqRhs ( G4MagneticField * magField)

Definition at line 39 of file G4Mag_EqRhs.cc.

40 : G4EquationOfMotion(magField)
41{
42}
G4EquationOfMotion(G4Field *Field)

◆ ~G4Mag_EqRhs()

G4Mag_EqRhs::~G4Mag_EqRhs ( )
overridedefault

Member Function Documentation

◆ EvaluateRhsGivenB()

void G4Mag_EqRhs::EvaluateRhsGivenB ( const G4double y[],
const G4double B[3],
G4double dydx[] ) const
overridepure virtual

◆ FCof()

◆ SetChargeMomentumMass()

void G4Mag_EqRhs::SetChargeMomentumMass ( G4ChargeState particleCharge,
G4double MomentumXc,
G4double mass )
overridevirtual

Implements G4EquationOfMotion.

Reimplemented in G4Mag_SpinEqRhs, and G4Mag_UsualEqRhs.

Definition at line 47 of file G4Mag_EqRhs.cc.

50{
51 G4double pcharge = particleCharge.GetCharge();
52 fCof_val = pcharge*eplus*c_light ; // B must be in Tesla
53 // fCof_val = fUnitConstant*pcharge/MomentumXc; // B must be in Tesla
54 // fMass = particleMass;
55}
double G4double
Definition G4Types.hh:83
G4double GetCharge() const

Referenced by G4Mag_SpinEqRhs::SetChargeMomentumMass(), and G4Mag_UsualEqRhs::SetChargeMomentumMass().


The documentation for this class was generated from the following files: