Geant4  10.02.p02
G4ExactHelixStepper.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 // $Id: G4ExactHelixStepper.hh 66356 2012-12-18 09:02:32Z gcosmo $
27 //
28 //
29 // class G4ExactHelixStepper
30 // -------------------
31 // Class description:
32 //
33 // Concrete class for particle motion in constant magnetic field.
34 
35 // History:
36 // - 28.Jan.05 J.Apostolakis Creation of new concrete class
37 // --------------------------------------------------------------------
38 
39 #ifndef G4ExactHelixStepper_hh
40 #define G4ExactHelixStepper_hh
41 
42 #include "G4Types.hh"
43 #include "G4ThreeVector.hh"
44 
46 #include "G4MagHelicalStepper.hh"
47 #include "G4Mag_EqRhs.hh"
48 
50 {
51  public: // with description
52 
55 
56  void Stepper( const G4double y[],
57  const G4double dydx[],
58  G4double h,
59  G4double yout[],
60  G4double yerr[] );
61  // Step 'integration' for step size 'h'
62  // Provides helix starting at y[0 to 6]
63  // Outputs yout[] and ZERO estimated error yerr[]=0.
64 
65  void DumbStepper( const G4double y[],
66  G4ThreeVector Bfld,
67  G4double h,
68  G4double yout[] );
69  // Performs a 'dump' Step without error calculation.
70 
71  G4double DistChord() const;
72  // Estimate maximum distance of curved solution and chord ...
73 
74  virtual G4int IntegratorOrder() const;
75 
76  private:
77 
80  // Private copy constructor and assignment operator.
81 
82  private:
83 
85  // Initial value of field at last step
87 };
88 
89 
90 
91 #endif /* G4ExactHelixStepper_hh */
void Stepper(const G4double y[], const G4double dydx[], G4double h, G4double yout[], G4double yerr[])
CLHEP::Hep3Vector G4ThreeVector
G4double DistChord() const
int G4int
Definition: G4Types.hh:78
G4Mag_EqRhs * fPtrMagEqOfMot
virtual G4int IntegratorOrder() const
G4ExactHelixStepper & operator=(const G4ExactHelixStepper &)
void DumbStepper(const G4double y[], G4ThreeVector Bfld, G4double h, G4double yout[])
double G4double
Definition: G4Types.hh:76
G4ExactHelixStepper(G4Mag_EqRhs *EqRhs)