CMS 3D CMS Logo

FieldStepper.h
Go to the documentation of this file.
1 #ifndef SimG4Core_MagneticField_FieldStepper_H
2 #define SimG4Core_MagneticField_FieldStepper_H
3 
4 #include "G4MagIntegratorStepper.hh"
5 
6 class G4Mag_UsualEqRhs;
7 
8 class FieldStepper : public G4MagIntegratorStepper {
9 public:
10  explicit FieldStepper(G4Mag_UsualEqRhs *eq, double del, const std::string &name);
11  ~FieldStepper() override;
12 
13  // Geant4 virtual methods
14  void Stepper(const G4double y[], const G4double dydx[], G4double h, G4double yout[], G4double yerr[]) override;
15  G4double DistChord() const override;
16  G4int IntegratorOrder() const override;
17 
18 private:
19  void selectStepper(const std::string &);
20 
21  G4MagIntegratorStepper *theStepper;
22  G4Mag_UsualEqRhs *theEquation;
23  double theDelta;
24 };
25 
26 #endif
G4int IntegratorOrder() const override
Definition: FieldStepper.cc:36
G4double DistChord() const override
Definition: FieldStepper.cc:34
~FieldStepper() override
Definition: FieldStepper.cc:28
FieldStepper(G4Mag_UsualEqRhs *eq, double del, const std::string &name)
Definition: FieldStepper.cc:23
G4MagIntegratorStepper * theStepper
Definition: FieldStepper.h:21
double theDelta
Definition: FieldStepper.h:23
void selectStepper(const std::string &)
Definition: FieldStepper.cc:38
G4Mag_UsualEqRhs * theEquation
Definition: FieldStepper.h:22
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
void Stepper(const G4double y[], const G4double dydx[], G4double h, G4double yout[], G4double yerr[]) override
Definition: FieldStepper.cc:30