CMS 3D CMS Logo

FieldStepper.h
Go to the documentation of this file.
1 #ifndef SimG4Core_FieldStepper_H
2 #define SimG4Core_FieldStepper_H
3 
4 #include "G4MagIntegratorStepper.hh"
5 
6 class G4Mag_UsualEqRhs;
7 
8 namespace sim {
9  class FieldStepper : public G4MagIntegratorStepper
10  {
11  public:
12  FieldStepper(G4Mag_UsualEqRhs * eq, double del = 0.0);
13  ~FieldStepper() override;
14  void Stepper(const double y[],const double dydx[],double h,
15  double yout[],double yerr[]) override;
16  double DistChord() const override;
17  int IntegratorOrder() const override;
18  G4MagIntegratorStepper * select(const std::string & s);
19  private:
20  G4MagIntegratorStepper * theStepper;
21  G4Mag_UsualEqRhs * theEquation;
22  double delta;
23  };
24 }
25 
26 #endif
void Stepper(const double y[], const double dydx[], double h, double yout[], double yerr[]) override
Definition: FieldStepper.cc:26
double DistChord() const override
Definition: FieldStepper.cc:30
~FieldStepper() override
Definition: FieldStepper.cc:24
G4MagIntegratorStepper * theStepper
Definition: FieldStepper.h:20
FieldStepper(G4Mag_UsualEqRhs *eq, double del=0.0)
Definition: FieldStepper.cc:21
Definition: RunManager.h:28
int IntegratorOrder() const override
Definition: FieldStepper.cc:32
G4MagIntegratorStepper * select(const std::string &s)
Definition: FieldStepper.cc:35
G4Mag_UsualEqRhs * theEquation
Definition: FieldStepper.h:21