Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4HelixSimpleRunge Class Reference

#include <G4HelixSimpleRunge.hh>

Inheritance diagram for G4HelixSimpleRunge:
Collaboration 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
 
- Public Member Functions inherited from G4MagHelicalStepper
 G4MagHelicalStepper (G4Mag_EqRhs *EqRhs)
 
virtual ~G4MagHelicalStepper ()
 
virtual void Stepper (const G4double y[], const G4double dydx[], G4double h, G4double yout[], G4double yerr[])
 
G4double DistChord () const
 
- Public Member Functions inherited from G4MagIntegratorStepper
 G4MagIntegratorStepper (G4EquationOfMotion *Equation, G4int numIntegrationVariables, G4int numStateVariables=12, bool isFSAL=false)
 
virtual ~G4MagIntegratorStepper ()
 
virtual void ComputeRightHandSide (const G4double y[], G4double dydx[])
 
void NormaliseTangentVector (G4double vec[6])
 
void NormalisePolarizationVector (G4double vec[12])
 
void RightHandSide (const double y[], double dydx[])
 
G4int GetNumberOfVariables () const
 
G4int GetNumberOfStateVariables () const
 
G4int IntegrationOrder ()
 
G4EquationOfMotionGetEquationOfMotion ()
 
void SetEquationOfMotion (G4EquationOfMotion *newEquation)
 
unsigned long GetfNoRHSCalls ()
 
void ResetfNORHSCalls ()
 
bool IsFSAL ()
 

Additional Inherited Members

- Protected Member Functions inherited from G4MagHelicalStepper
void LinearStep (const G4double yIn[], G4double h, G4double yHelix[]) const
 
void AdvanceHelix (const G4double yIn[], G4ThreeVector Bfld, G4double h, G4double yHelix[], G4double yHelix2[]=0)
 
void MagFieldEvaluate (const G4double y[], G4ThreeVector &Bfield)
 
G4double GetInverseCurve (const G4double Momentum, const G4double Bmag)
 
void SetAngCurve (const G4double Ang)
 
G4double GetAngCurve () const
 
void SetCurve (const G4double Curve)
 
G4double GetCurve () const
 
void SetRadHelix (const G4double Rad)
 
G4double GetRadHelix () const
 
- Protected Member Functions inherited from G4MagIntegratorStepper
void SetIntegrationOrder (int order)
 
void SetFSAL (bool flag=true)
 

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.

53  : G4MagHelicalStepper(EqRhs){}
G4MagHelicalStepper(G4Mag_EqRhs *EqRhs)
G4HelixSimpleRunge::~G4HelixSimpleRunge ( )
inline

Definition at line 55 of file G4HelixSimpleRunge.hh.

55 {}

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.

48 {
49  const G4int nvar = 6 ;
50  G4double yTemp[nvar]; // , yAdd[nvar];
51  G4ThreeVector Bfld_midpoint;
52 
53  AdvanceHelix( yIn, Bfld, 0.5 * h, yTemp);
54 
55  // now obtain the new field value at the new point
56  MagFieldEvaluate(yTemp, Bfld_midpoint);
57 
58  AdvanceHelix( yIn, Bfld_midpoint, h, yOut);
59 
60  // NormaliseTangentVector( yOut );
61 }
void AdvanceHelix(const G4double yIn[], G4ThreeVector Bfld, G4double h, G4double yHelix[], G4double yHelix2[]=0)
void MagFieldEvaluate(const G4double y[], G4ThreeVector &Bfield)
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

G4int G4HelixSimpleRunge::IntegratorOrder ( ) const
inlinevirtual

Implements G4MagIntegratorStepper.

Definition at line 64 of file G4HelixSimpleRunge.hh.

64 { return 2; }

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