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 // 00030 // $Id$ 00031 // 00032 // ClassName: G4LowEIonFragmentation 00033 // 00034 // Author: H.P. Wellisch 00035 // 00036 // Modified: 00037 // 01.06.2010 V.Ivanchenko moved constructor and destructor to the source 00038 // 00039 00040 #ifndef G4LowEIonFragmentation_h 00041 #define G4LowEIonFragmentation_h 1 00042 00043 00044 #include "G4PreCompoundModel.hh" 00045 #include "G4HadronicInteraction.hh" 00046 #include "G4ExcitationHandler.hh" 00047 00048 class G4ParticleDefinition; 00049 00050 class G4LowEIonFragmentation : public G4HadronicInteraction 00051 { 00052 public: 00053 00054 G4LowEIonFragmentation(G4ExcitationHandler * const value); 00055 00056 G4LowEIonFragmentation(); 00057 00058 virtual ~G4LowEIonFragmentation(); 00059 00060 virtual G4HadFinalState * ApplyYourself(const G4HadProjectile & thePrimary, 00061 G4Nucleus & theNucleus); 00062 00063 static G4double GetCrossSection() 00064 { 00065 // clog << "area/millibarn = "<<area/millibarn<<G4endl; 00066 // clog << "hits = "<<hits<<G4endl; 00067 // clog << "totalTries = "<<totalTries<<G4endl; 00068 return area*hits/(static_cast<G4double>(totalTries)*CLHEP::millibarn); 00069 } 00070 00071 private: 00072 00073 G4LowEIonFragmentation(const G4LowEIonFragmentation &); 00074 const G4LowEIonFragmentation& operator=(const G4LowEIonFragmentation &right); 00075 G4bool operator==(const G4LowEIonFragmentation &right) const; 00076 G4bool operator!=(const G4LowEIonFragmentation &right) const; 00077 00078 // Members 00079 00080 G4HadFinalState theResult; 00081 const G4ParticleDefinition* proton; 00082 00083 G4PreCompoundModel * theModel; 00084 G4ExcitationHandler * theHandler; 00085 00086 private: 00087 00088 static G4int hits; 00089 static G4int totalTries; 00090 static G4double area; 00091 00092 }; 00093 00094 00095 #endif 00096 00097