ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4ModifiedMidpoint Class Reference

#include <geant4/tree/geant4-10.6-release/source/geometry/magneticfield/include/G4ModifiedMidpoint.hh>

+ Collaboration diagram for G4ModifiedMidpoint:

Public Member Functions

 G4ModifiedMidpoint (G4EquationOfMotion *equation, G4int nvar=6, G4int steps=2)
 
 ~G4ModifiedMidpoint ()=default
 
void DoStep (const G4double yIn[], const G4double dydxIn[], G4double yOut[], G4double hstep) const
 
void DoStep (const G4double yIn[], const G4double dydxIn[], G4double yOut[], G4double hstep, G4double yMid[], G4double derivs[][G4FieldTrack::ncompSVEC]) const
 
void SetSteps (G4int steps)
 
G4int GetSteps () const
 
void SetEquationOfMotion (G4EquationOfMotion *equation)
 
G4EquationOfMotionGetEquationOfMotion ()
 
G4int GetNumberOfVariables () const
 

Private Member Functions

void copy (G4double dst[], const G4double src[]) const
 

Private Attributes

G4EquationOfMotionfEquation = nullptr
 
G4int fnvar = 0
 
G4int fsteps = 0
 

Detailed Description

Definition at line 41 of file G4ModifiedMidpoint.hh.

View newest version in sPHENIX GitHub at line 41 of file G4ModifiedMidpoint.hh

Constructor & Destructor Documentation

G4ModifiedMidpoint::G4ModifiedMidpoint ( G4EquationOfMotion equation,
G4int  nvar = 6,
G4int  steps = 2 
)

Definition at line 36 of file G4ModifiedMidpoint.cc.

View newest version in sPHENIX GitHub at line 36 of file G4ModifiedMidpoint.cc

References FatalException, and G4Exception().

+ Here is the call graph for this function:

G4ModifiedMidpoint::~G4ModifiedMidpoint ( )
default

Member Function Documentation

void G4ModifiedMidpoint::copy ( G4double  dst[],
const G4double  src[] 
) const
private

Definition at line 157 of file G4ModifiedMidpoint.cc.

View newest version in sPHENIX GitHub at line 157 of file G4ModifiedMidpoint.cc

References fnvar.

Referenced by DoStep().

+ Here is the caller graph for this function:

void G4ModifiedMidpoint::DoStep ( const G4double  yIn[],
const G4double  dydxIn[],
G4double  yOut[],
G4double  hstep 
) const

Definition at line 48 of file G4ModifiedMidpoint.cc.

View newest version in sPHENIX GitHub at line 48 of file G4ModifiedMidpoint.cc

References copy(), fEquation, fnvar, fsteps, Acts::UnitConstants::h, h2, G4FieldTrack::ncompSVEC, G4EquationOfMotion::RightHandSide(), field_utils::setValue(), and y1.

Referenced by G4BulirschStoer::try_step().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4ModifiedMidpoint::DoStep ( const G4double  yIn[],
const G4double  dydxIn[],
G4double  yOut[],
G4double  hstep,
G4double  yMid[],
G4double  derivs[][G4FieldTrack::ncompSVEC] 
) const

Definition at line 96 of file G4ModifiedMidpoint.cc.

View newest version in sPHENIX GitHub at line 96 of file G4ModifiedMidpoint.cc

References copy(), fEquation, fnvar, fsteps, Acts::UnitConstants::h, h2, G4FieldTrack::ncompSVEC, G4EquationOfMotion::RightHandSide(), field_utils::setValue(), and y1.

+ Here is the call graph for this function:

G4EquationOfMotion* G4ModifiedMidpoint::GetEquationOfMotion ( )
inline
G4int G4ModifiedMidpoint::GetNumberOfVariables ( ) const
inline
G4int G4ModifiedMidpoint::GetSteps ( ) const
inline
void G4ModifiedMidpoint::SetEquationOfMotion ( G4EquationOfMotion equation)
inline
void G4ModifiedMidpoint::SetSteps ( G4int  steps)
inline

Referenced by G4BulirschStoer::try_step().

+ Here is the caller graph for this function:

Member Data Documentation

G4EquationOfMotion* G4ModifiedMidpoint::fEquation = nullptr
private

Definition at line 70 of file G4ModifiedMidpoint.hh.

View newest version in sPHENIX GitHub at line 70 of file G4ModifiedMidpoint.hh

Referenced by DoStep().

G4int G4ModifiedMidpoint::fnvar = 0
private

Definition at line 71 of file G4ModifiedMidpoint.hh.

View newest version in sPHENIX GitHub at line 71 of file G4ModifiedMidpoint.hh

Referenced by copy(), and DoStep().

G4int G4ModifiedMidpoint::fsteps = 0
private

Definition at line 72 of file G4ModifiedMidpoint.hh.

View newest version in sPHENIX GitHub at line 72 of file G4ModifiedMidpoint.hh

Referenced by DoStep().


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