G4EqGravityField.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 // 
00027 // class G4EqGravityField
00028 //
00029 // Class description:
00030 //
00031 // This is the right-hand side of equation of motion in a 
00032 // gravity field.
00033 //
00034 // History:
00035 // - 14.06.11 P.Gumplinger, Created.
00036 // -------------------------------------------------------------------
00037 // Adopted from G4EqMagElectricField.hh
00038 //
00039 // Thanks to Peter Fierlinger (PSI) and
00040 // A. Capra and A. Fontana (INFN Pavia)
00041 // -------------------------------------------------------------------
00042 
00043 #ifndef G4EQGRAVITYFIELD_hh
00044 #define G4EQGRAVITYFIELD_hh
00045 
00046 #include "G4EquationOfMotion.hh"
00047 #include "G4UniformGravityField.hh"
00048 
00049 class G4EqGravityField : public G4EquationOfMotion
00050 {
00051   public:  // with description
00052 
00053     G4EqGravityField(G4UniformGravityField *gField ) 
00054       : G4EquationOfMotion( gField ) {;}
00055 
00056     ~G4EqGravityField() {;}
00057 
00058     void SetChargeMomentumMass(G4double particleCharge, // in e+ units
00059                                G4double MomentumXc,
00060                                G4double mass);
00061 
00062     void EvaluateRhsGivenB( const G4double y[],
00063                             const G4double Field[],
00064                             G4double dydx[] ) const;
00065       // Given the value of the gravitational field, this function
00066       // calculates the value of the derivative dydx.
00067 
00068   private:
00069 
00070     G4double  fMass;
00071 
00072 };
00073 
00074 #endif /* G4EQGRAVITYFIELD */

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