Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4EquationOfMotion Class Referenceabstract

#include <G4EquationOfMotion.hh>

Inheritance diagram for G4EquationOfMotion:

Public Member Functions

 G4EquationOfMotion (G4Field *Field)
 
virtual ~G4EquationOfMotion ()
 
virtual void EvaluateRhsGivenB (const G4double y[], const G4double B[3], G4double dydx[]) const =0
 
virtual void SetChargeMomentumMass (G4ChargeState particleCharge, G4double MomentumXc, G4double MassXc2)=0
 
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)
 

Detailed Description

Definition at line 49 of file G4EquationOfMotion.hh.

Constructor & Destructor Documentation

G4EquationOfMotion::G4EquationOfMotion ( G4Field Field)
G4EquationOfMotion::~G4EquationOfMotion ( )
virtual

Definition at line 33 of file G4EquationOfMotion.cc.

34 {}

Member Function Documentation

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

Implemented in G4Mag_SpinEqRhs, G4Mag_UsualEqRhs, G4Mag_EqRhs, G4ErrorMag_UsualEqRhs, G4KM_NucleonEqRhs, and G4KM_OpticalEqRhs.

Here is the caller graph for this function:

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

Definition at line 37 of file G4EquationOfMotion.cc.

40 {
41  G4double PositionAndTime[4];
42 
43  // Position
44  PositionAndTime[0] = y[0];
45  PositionAndTime[1] = y[1];
46  PositionAndTime[2] = y[2];
47  // Global Time
48  PositionAndTime[3] = y[7]; // See G4FieldTrack::LoadFromArray
49 
50  GetFieldValue(PositionAndTime, Field) ;
51  EvaluateRhsGivenB( y, Field, dydx );
52 }
virtual void EvaluateRhsGivenB(const G4double y[], const G4double B[3], G4double dydx[]) const =0
void GetFieldValue(const G4double Point[4], G4double Field[]) const
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

Here is the caller graph for this function:

const G4Field* G4EquationOfMotion::GetFieldObj ( ) const
void G4EquationOfMotion::GetFieldValue ( const G4double  Point[4],
G4double  Field[] 
) const

Here is the caller graph for this function:

void G4EquationOfMotion::RightHandSide ( const G4double  y[],
G4double  dydx[] 
) const
inline
virtual void G4EquationOfMotion::SetChargeMomentumMass ( G4ChargeState  particleCharge,
G4double  MomentumXc,
G4double  MassXc2 
)
pure virtual
void G4EquationOfMotion::SetFieldObj ( G4Field pField)

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