#include <G4HelixSimpleRunge.hh>
Inheritance diagram for G4HelixSimpleRunge:
Public Member Functions | |
G4HelixSimpleRunge (G4Mag_EqRhs *EqRhs) | |
~G4HelixSimpleRunge () | |
void | DumbStepper (const G4double y[], G4ThreeVector Bfld, G4double h, G4double yout[]) |
G4int | IntegratorOrder () const |
Definition at line 48 of file G4HelixSimpleRunge.hh.
G4HelixSimpleRunge::G4HelixSimpleRunge | ( | G4Mag_EqRhs * | EqRhs | ) | [inline] |
G4HelixSimpleRunge::~G4HelixSimpleRunge | ( | ) | [inline] |
void G4HelixSimpleRunge::DumbStepper | ( | const G4double | y[], | |
G4ThreeVector | Bfld, | |||
G4double | h, | |||
G4double | yout[] | |||
) | [virtual] |
Implements G4MagHelicalStepper.
Definition at line 44 of file G4HelixSimpleRunge.cc.
References G4MagHelicalStepper::AdvanceHelix(), and G4MagHelicalStepper::MagFieldEvaluate().
00048 { 00049 const G4int nvar = 6 ; 00050 G4double yTemp[nvar]; // , yAdd[nvar]; 00051 G4ThreeVector Bfld_midpoint; 00052 00053 AdvanceHelix( yIn, Bfld, 0.5 * h, yTemp); 00054 00055 // now obtain the new field value at the new point 00056 MagFieldEvaluate(yTemp, Bfld_midpoint); 00057 00058 AdvanceHelix( yIn, Bfld_midpoint, h, yOut); 00059 00060 // NormaliseTangentVector( yOut ); 00061 }
G4int G4HelixSimpleRunge::IntegratorOrder | ( | ) | const [inline, virtual] |