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 // $Id$ 00028 // 00029 // Geant4 Hadron Elastic Scattering Process -- header file 00030 // 00031 // Created 21 April 2006 V.Ivanchenko 00032 // 00033 // Modified: 00034 // 26.09.06 V.Ivanchenko add lowestEnergy 00035 // 17.10.11 V.Ivanchenko move to process sub-library and cleaned up 00036 // 00037 00038 // Class Description 00039 // Process for hadron nuclear elastic scattering using optimal 00040 // combination of Geant4 models 00041 // Class Description - End 00042 00043 #ifndef G4WHadronElasticProcess_h 00044 #define G4WHadronElasticProcess_h 1 00045 00046 #include "globals.hh" 00047 #include "G4HadronicProcess.hh" 00048 00049 class G4ParticleDefinition; 00050 class G4CrossSectionDataStore; 00051 00052 class G4WHadronElasticProcess : public G4HadronicProcess 00053 { 00054 public: 00055 00056 G4WHadronElasticProcess(const G4String& procName = "hadElastic"); 00057 00058 virtual ~G4WHadronElasticProcess(); 00059 00060 virtual G4VParticleChange* PostStepDoIt(const G4Track& aTrack, 00061 const G4Step& aStep); 00062 00063 inline void SetLowestEnergy(G4double); 00064 00065 inline void SetLowestEnergyNeutron(G4double); 00066 00067 virtual void Description() const; 00068 00069 private: 00070 00071 // hide assignment operator as private 00072 G4WHadronElasticProcess& operator=(const G4WHadronElasticProcess &right); 00073 G4WHadronElasticProcess(const G4WHadronElasticProcess& ); 00074 00075 const G4ParticleDefinition* theNeutron; 00076 00077 G4double lowestEnergy; 00078 G4double lowestEnergyNeutron; 00079 }; 00080 00081 inline void 00082 G4WHadronElasticProcess::SetLowestEnergy(G4double val) 00083 { 00084 lowestEnergy = val; 00085 } 00086 00087 inline void 00088 G4WHadronElasticProcess::SetLowestEnergyNeutron(G4double val) 00089 { 00090 lowestEnergyNeutron = val; 00091 } 00092 00093 00094 #endif