00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef BDSDRIFTSTEPPER_HH
00026 #define BDSDRIFTSTEPPER_HH
00027 #include "globals.hh"
00028 #include "G4MagIntegratorStepper.hh"
00029
00030 #include "G4Mag_EqRhs.hh"
00031 #include "G4ThreeVector.hh"
00032 #include "G4Navigator.hh"
00033
00034 class BDSDriftStepper : public G4MagIntegratorStepper
00035 {
00036
00037 public:
00038
00039 BDSDriftStepper(G4Mag_EqRhs *EqRhs);
00040
00041 ~BDSDriftStepper();
00042
00043 void Stepper( const G4double y[],
00044 const G4double dydx[],
00045 const G4double h,
00046 G4double yout[],
00047 G4double yerr[] );
00048
00049
00050
00051
00052
00053
00054 void StepperName();
00055
00056 G4double DistChord()const;
00057
00058
00059
00060
00061
00062
00063
00064 public:
00065
00066 G4int IntegratorOrder()const { return 2; }
00067
00068 protected:
00069
00070
00071 void AdvanceHelix( const G4double yIn[],
00072 G4ThreeVector Bfld,
00073 G4double h,
00074 G4double yDrift[]);
00075
00076
00077 private:
00078
00079
00080 };
00081
00082
00083 inline void BDSDriftStepper::StepperName()
00084 {G4cout<<"BDSDriftStepper"<<G4endl;}
00085
00086 #endif