CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
sim::FieldStepper Class Reference

#include <FieldStepper.h>

Inheritance diagram for sim::FieldStepper:

Public Member Functions

virtual double DistChord () const
 
 FieldStepper (G4Mag_UsualEqRhs *eq)
 
virtual int IntegratorOrder () const
 
G4MagIntegratorStepper * select (const std::string &s)
 
virtual void Stepper (const double y[], const double dydx[], double h, double yout[], double yerr[])
 
 ~FieldStepper ()
 

Private Attributes

G4Mag_UsualEqRhs * theEquation
 
G4MagIntegratorStepper * theStepper
 

Detailed Description

Definition at line 9 of file FieldStepper.h.

Constructor & Destructor Documentation

FieldStepper::FieldStepper ( G4Mag_UsualEqRhs *  eq)

Definition at line 18 of file FieldStepper.cc.

18  :
19  G4MagIntegratorStepper(eq, 6), theEquation(eq) {}
G4Mag_UsualEqRhs * theEquation
Definition: FieldStepper.h:21
FieldStepper::~FieldStepper ( )

Definition at line 21 of file FieldStepper.cc.

21 {}

Member Function Documentation

double FieldStepper::DistChord ( ) const
virtual

Definition at line 27 of file FieldStepper.cc.

References theStepper.

27 { return theStepper->DistChord(); }
G4MagIntegratorStepper * theStepper
Definition: FieldStepper.h:20
int FieldStepper::IntegratorOrder ( ) const
virtual

Definition at line 29 of file FieldStepper.cc.

References theStepper.

30 { return theStepper->IntegratorOrder(); }
G4MagIntegratorStepper * theStepper
Definition: FieldStepper.h:20
G4MagIntegratorStepper * FieldStepper::select ( const std::string &  s)

Definition at line 32 of file FieldStepper.cc.

References gather_cfg::cout, theEquation, and theStepper.

Referenced by sim::FieldBuilder::configureFieldManager().

33 {
34  if (s == "G4ClassicalRK4") theStepper = new G4ClassicalRK4(theEquation);
35  else if (s == "G4SimpleRunge") theStepper = new G4SimpleRunge(theEquation);
36  else if (s == "G4SimpleHeum") theStepper = new G4SimpleHeum(theEquation);
37  else if (s == "G4CashKarpRKF45") theStepper = new G4CashKarpRKF45(theEquation);
38  else if (s == "G4RKG3_Stepper") theStepper = new G4RKG3_Stepper(theEquation);
39  else if (s == "G4ExplicitEuler") theStepper = new G4ExplicitEuler(theEquation);
40  else if (s == "G4ImplicitEuler") theStepper = new G4ImplicitEuler(theEquation);
41  else if (s == "G4HelixExplicitEuler") theStepper = new G4HelixExplicitEuler(theEquation);
42  else if (s == "G4HelixImplicitEuler") theStepper = new G4HelixImplicitEuler(theEquation);
43  else if (s == "G4HelixSimpleRunge") theStepper = new G4HelixSimpleRunge(theEquation);
44  else if (s == "G4HelixHeum") theStepper = new G4HelixHeum(theEquation);
45  else
46  {
47  std::cout << " FieldStepper invalid choice, defaulting to G4ClassicalRK4 " << std::endl;
48  theStepper = new G4ClassicalRK4(theEquation);
49  }
50  return theStepper;
51 }
G4MagIntegratorStepper * theStepper
Definition: FieldStepper.h:20
G4Mag_UsualEqRhs * theEquation
Definition: FieldStepper.h:21
tuple cout
Definition: gather_cfg.py:121
void FieldStepper::Stepper ( const double  y[],
const double  dydx[],
double  h,
double  yout[],
double  yerr[] 
)
virtual

Definition at line 23 of file FieldStepper.cc.

References theStepper.

25 { theStepper->Stepper(y,dydx,h,yout,yerr); }
G4MagIntegratorStepper * theStepper
Definition: FieldStepper.h:20
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4

Member Data Documentation

G4Mag_UsualEqRhs* sim::FieldStepper::theEquation
private

Definition at line 21 of file FieldStepper.h.

Referenced by select().

G4MagIntegratorStepper* sim::FieldStepper::theStepper
private

Definition at line 20 of file FieldStepper.h.

Referenced by DistChord(), IntegratorOrder(), select(), and Stepper().