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$ 00027 // 00028 // 00029 // G4 Model: Low energy elastic scattering -- header file 00030 // F.W. Jones, TRIUMF, 04-JUN-96 00031 // 00032 // For further comments see G4LElastic.cc. 00033 // 00034 // use -scheme for elastic scattering: HPW, 20th June 1997 00035 // most of the code comes from the old Low-energy Elastic class 00036 00037 #ifndef G4LElastic_h 00038 #define G4LElastic_h 1 00039 00040 // Class Description 00041 // Final state production model for hadron nuclear elastic scattering; 00042 // To be used in your physics list in case you need this physics. 00043 // In this case you want to register an object of this class with 00044 // the corresponding process. 00045 // Class Description - End 00046 00047 #include "globals.hh" 00048 #include "Randomize.hh" 00049 #include "G4Element.hh" 00050 #include "G4ElementVector.hh" 00051 #include "G4ElementTable.hh" 00052 #include "G4PhysicsTable.hh" 00053 #include "G4PhysicsVector.hh" 00054 #include "G4LPhysicsFreeVector.hh" 00055 #include "G4LightMedia.hh" 00056 #include "G4Step.hh" 00057 #include "G4TrackStatus.hh" 00058 #include "G4HadronicInteraction.hh" 00059 00060 00061 class G4LElastic : public G4HadronicInteraction 00062 { 00063 public: 00064 00065 G4LElastic(const G4String& name = "G4LElastic"); 00066 00067 ~G4LElastic() {}; 00068 00069 G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack, 00070 G4Nucleus& targetNucleus); 00071 00072 virtual void ModelDescription(std::ostream& outFile) const; 00073 00074 virtual const std::pair<G4double, G4double> GetFatalEnergyCheckLevels() const; 00075 00076 private: 00077 00078 G4LightMedia LightMedia; 00079 00080 G4int Rtmi(G4double* x, G4double xli, G4double xri, G4double eps, 00081 G4int iend, 00082 G4double aa, G4double bb, G4double cc, G4double dd, 00083 G4double rr); 00084 00085 G4double Fctcos(G4double t, 00086 G4double aa, G4double bb, G4double cc, G4double dd, 00087 G4double rr); 00088 00089 void Defs1(G4double p, G4double px, G4double py, G4double pz, 00090 G4double pxinc, G4double pyinc, G4double pzinc, 00091 G4double* pxnew, G4double* pynew, G4double* pznew); 00092 }; 00093 #endif