Geant4  10.02.p03
G4Mag_EqRhs Class Referenceabstract

#include <G4Mag_EqRhs.hh>

Inheritance diagram for G4Mag_EqRhs:
Collaboration 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 (G4ChargeState particleCharge, G4double MomentumXc, G4double mass)
 
- 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
 
void SetFieldObj (G4Field *pField)
 

Private Attributes

G4double fCof_val
 

Static Private Attributes

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

Detailed Description

Definition at line 49 of file G4Mag_EqRhs.hh.

Constructor & Destructor Documentation

◆ G4Mag_EqRhs()

G4Mag_EqRhs::G4Mag_EqRhs ( G4MagneticField magField)

Definition at line 50 of file G4Mag_EqRhs.cc.

51  : G4EquationOfMotion(magField), fCof_val(0.)
52 {
53 }
G4EquationOfMotion(G4Field *Field)
G4double fCof_val
Definition: G4Mag_EqRhs.hh:73

◆ ~G4Mag_EqRhs()

G4Mag_EqRhs::~G4Mag_EqRhs ( )
virtual

Definition at line 66 of file G4Mag_EqRhs.cc.

66 { }

Member Function Documentation

◆ EvaluateRhsGivenB()

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

◆ FCof()

G4double G4Mag_EqRhs::FCof ( ) const
inline

Definition at line 84 of file G4Mag_EqRhs.hh.

85 {
86  return fCof_val;
87 }
G4double fCof_val
Definition: G4Mag_EqRhs.hh:73
Here is the caller graph for this function:

◆ SetChargeMomentumMass()

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

Implements G4EquationOfMotion.

Reimplemented in G4Mag_UsualEqRhs, G4Mag_SpinEqRhs, G4KM_NucleonEqRhs, and G4KM_OpticalEqRhs.

Definition at line 56 of file G4Mag_EqRhs.cc.

59 {
60  G4double pcharge = particleCharge.GetCharge();
61  fCof_val = pcharge*eplus*c_light ; // B must be in Tesla
62  // fCof_val = fUnitConstant*pcharge/MomentumXc; // B must be in Tesla
63  // fMass = particleMass;
64 }
G4double GetCharge() const
G4double fCof_val
Definition: G4Mag_EqRhs.hh:73
double G4double
Definition: G4Types.hh:76
static const double eplus
Definition: G4SIunits.hh:196
float c_light
Definition: hepunit.py:257
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ fCof_val

G4double G4Mag_EqRhs::fCof_val
private

Definition at line 73 of file G4Mag_EqRhs.hh.

◆ fUnitConstant

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

Definition at line 75 of file G4Mag_EqRhs.hh.


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