G4ExactHelixStepper.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 // $Id: G4ExactHelixStepper.hh 69786 2013-05-15 09:38:51Z gcosmo $ 
00027 //
00028 //
00029 // class G4ExactHelixStepper
00030 //       -------------------
00031 // Class description:
00032 //
00033 // Concrete class for particle motion in constant magnetic field.
00034 
00035 // History:
00036 // - 28.Jan.05  J.Apostolakis   Creation of new concrete class
00037 // --------------------------------------------------------------------
00038 
00039 #ifndef G4ExactHelixStepper_hh
00040 #define G4ExactHelixStepper_hh
00041 
00042 #include "G4Types.hh"
00043 #include "G4ThreeVector.hh"
00044 
00045 #include "G4MagIntegratorStepper.hh"
00046 #include "G4MagHelicalStepper.hh"
00047 #include "G4Mag_EqRhs.hh"
00048 
00049 class G4ExactHelixStepper : public G4MagHelicalStepper
00050 {
00051   public:  // with description
00052 
00053     G4ExactHelixStepper(G4Mag_EqRhs *EqRhs);
00054     ~G4ExactHelixStepper();
00055   
00056     void Stepper( const G4double y[],
00057                   const G4double dydx[],
00058                         G4double h,
00059                         G4double yout[],
00060                         G4double yerr[]  );
00061       // Step 'integration' for step size 'h'
00062       // Provides helix starting at y[0 to 6]
00063       // Outputs yout[] and ZERO estimated error yerr[]=0.
00064   
00065     void DumbStepper( const G4double y[],
00066                             G4ThreeVector   Bfld,
00067                             G4double  h,
00068                             G4double yout[] );
00069       // Performs a 'dump' Step without error calculation.
00070   
00071     G4double DistChord() const;
00072       // Estimate maximum distance of curved solution and chord ... 
00073 
00074     virtual G4int IntegratorOrder() const;
00075 
00076   private:
00077 
00078     G4ExactHelixStepper(const G4ExactHelixStepper&);
00079     G4ExactHelixStepper& operator=(const G4ExactHelixStepper&);
00080       // Private copy constructor and assignment operator.
00081    
00082   private:
00083 
00084     G4ThreeVector    fBfieldValue;
00085       //  Initial value of field at last step
00086     G4Mag_EqRhs*  fPtrMagEqOfMot;
00087 };
00088 
00089 
00090 
00091 #endif  /* G4ExactHelixStepper_hh */

Generated on Mon May 27 17:48:13 2013 for Geant4 by  doxygen 1.4.7