Geant4-11
Public Member Functions | Private Attributes | Static Private Attributes
G4Mag_EqRhs Class Referenceabstract

#include <G4Mag_EqRhs.hh>

Inheritance diagram for G4Mag_EqRhs:
G4EquationOfMotion G4KM_NucleonEqRhs G4KM_OpticalEqRhs G4Mag_SpinEqRhs G4Mag_UsualEqRhs G4ErrorMag_UsualEqRhs G4TMagFieldEquation< T_Field >

Public Member Functions

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

Private Attributes

G4double fCof_val = 0.0
 
G4FielditsField = nullptr
 

Static Private Attributes

static const G4double fUnitConstant = 0.299792458 * (GeV/(tesla*m))
 

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

Definition at line 44 of file G4Mag_EqRhs.cc.

45{
46}

Member Function Documentation

◆ EvaluateRhsGivenB()

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

◆ EvaluateRhsReturnB()

void G4EquationOfMotion::EvaluateRhsReturnB ( const G4double  y[],
G4double  dydx[],
G4double  Field[] 
) const
inlineinherited

◆ FCof()

G4double G4Mag_EqRhs::FCof ( ) const
inline

◆ GetFieldObj() [1/2]

G4Field * G4EquationOfMotion::GetFieldObj ( )
inlineinherited

◆ GetFieldObj() [2/2]

const G4Field * G4EquationOfMotion::GetFieldObj ( ) const
inlineinherited

Referenced by G4NystromRK4::GetField().

◆ GetFieldValue()

void G4EquationOfMotion::GetFieldValue ( const G4double  Point[4],
G4double  Field[] 
) const
inlineinherited

◆ RightHandSide()

void G4EquationOfMotion::RightHandSide ( const G4double  y[],
G4double  dydx[] 
) const
inlineinherited

◆ SetChargeMomentumMass()

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

Implements G4EquationOfMotion.

Reimplemented in G4Mag_SpinEqRhs, G4Mag_UsualEqRhs, G4KM_NucleonEqRhs, and G4KM_OpticalEqRhs.

Definition at line 49 of file G4Mag_EqRhs.cc.

52{
53 G4double pcharge = particleCharge.GetCharge();
54 fCof_val = pcharge*eplus*c_light ; // B must be in Tesla
55 // fCof_val = fUnitConstant*pcharge/MomentumXc; // B must be in Tesla
56 // fMass = particleMass;
57}
static constexpr double eplus
Definition: G4SIunits.hh:184
double G4double
Definition: G4Types.hh:83
G4double GetCharge() const
float c_light
Definition: hepunit.py:256

References source.hepunit::c_light, eplus, fCof_val, and G4ChargeState::GetCharge().

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

◆ SetFieldObj()

void G4EquationOfMotion::SetFieldObj ( G4Field pField)
inlineinherited

Field Documentation

◆ fCof_val

G4double G4Mag_EqRhs::fCof_val = 0.0
private

Definition at line 69 of file G4Mag_EqRhs.hh.

Referenced by FCof(), and SetChargeMomentumMass().

◆ fUnitConstant

const G4double G4Mag_EqRhs::fUnitConstant = 0.299792458 * (GeV/(tesla*m))
staticprivate

Definition at line 71 of file G4Mag_EqRhs.hh.

◆ itsField

G4Field* G4EquationOfMotion::itsField = nullptr
privateinherited

Definition at line 90 of file G4EquationOfMotion.hh.


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