G4HelixSimpleRunge Class Reference

#include <G4HelixSimpleRunge.hh>

Inheritance diagram for G4HelixSimpleRunge:

G4MagHelicalStepper G4MagIntegratorStepper

Public Member Functions

 G4HelixSimpleRunge (G4Mag_EqRhs *EqRhs)
 ~G4HelixSimpleRunge ()
void DumbStepper (const G4double y[], G4ThreeVector Bfld, G4double h, G4double yout[])
G4int IntegratorOrder () const

Detailed Description

Definition at line 48 of file G4HelixSimpleRunge.hh.


Constructor & Destructor Documentation

G4HelixSimpleRunge::G4HelixSimpleRunge ( G4Mag_EqRhs EqRhs  )  [inline]

Definition at line 52 of file G4HelixSimpleRunge.hh.

00053       : G4MagHelicalStepper(EqRhs){}

G4HelixSimpleRunge::~G4HelixSimpleRunge (  )  [inline]

Definition at line 55 of file G4HelixSimpleRunge.hh.

00055 {}


Member Function Documentation

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]

Implements G4MagIntegratorStepper.

Definition at line 64 of file G4HelixSimpleRunge.hh.

00064 { return 2; }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:12 2013 for Geant4 by  doxygen 1.4.7