Geant4  10.02.p01
G4MagErrorStepper.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 // $Id: G4MagErrorStepper.hh 66356 2012-12-18 09:02:32Z gcosmo $
28 //
29 //
30 // class G4MagErrorStepper
31 //
32 // Class description:
33 //
34 // Abstract base class for integrator of particle's equation of motion,
35 // used in tracking in space dependent magnetic field.
36 
37 // History:
38 // 09.12.97 W.Wander <wwc@mit.edu> Created G4MagErrorStepper
39 // --------------------------------------------------------------------
40 
41 #ifndef G4MAGERRORSTEPPER_HH
42 #define G4MAGERRORSTEPPER_HH
43 
44 #include "G4Types.hh"
46 #include "G4Mag_EqRhs.hh"
47 #include "G4ThreeVector.hh"
48 
50 {
51  public: // with description
52 
53  G4MagErrorStepper(G4EquationOfMotion *EqRhs, G4int numberOfVariables, G4int numStateVariables=12);
54  virtual ~G4MagErrorStepper();
55 
56  void Stepper( const G4double y[],
57  const G4double dydx[],
58  G4double h,
59  G4double yout[],
60  G4double yerr[] );
61  // The stepper for the Runge Kutta integration. The stepsize
62  // is fixed, with the Step size given by h.
63  // Integrates ODE starting values y[0 to 6].
64  // Outputs yout[] and its estimated error yerr[].
65 
66  virtual void DumbStepper( const G4double y[],
67  const G4double dydx[],
68  G4double h,
69  G4double yout[] ) = 0;
70  // Performs a 'dump' Step without error calculation.
71 
72  G4double DistChord() const;
73 
74  private:
75 
78  // Private copy constructor and assignment operator.
79 
80  private:
81 
82  // STATE
84  // Data stored in order to find the chord
85 
86  // Dependent Objects, owned --- part of the STATE
88  // The following arrays are used only for temporary storage
89  // they are allocated at the class level only for efficiency -
90  // so that calls to new and delete are not made in Stepper().
91 };
92 
93 #include "G4MagErrorStepper.icc"
94 
95 #endif /* G4MAGERRORSTEPPER_HH */
G4ThreeVector fFinalPoint
CLHEP::Hep3Vector G4ThreeVector
virtual void DumbStepper(const G4double y[], const G4double dydx[], G4double h, G4double yout[])=0
G4MagErrorStepper(G4EquationOfMotion *EqRhs, G4int numberOfVariables, G4int numStateVariables=12)
int G4int
Definition: G4Types.hh:78
G4ThreeVector fInitialPoint
virtual ~G4MagErrorStepper()
G4double DistChord() const
G4MagErrorStepper & operator=(const G4MagErrorStepper &)
G4ThreeVector fMidPoint
double G4double
Definition: G4Types.hh:76
void Stepper(const G4double y[], const G4double dydx[], G4double h, G4double yout[], G4double yerr[])