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 // 20.08.2010 V.Ivanchenko move constructor and destructor to the source 00029 00030 #include "G4GNASHTransitions.hh" 00031 #include "G4PhysicalConstants.hh" 00032 #include "G4SystemOfUnits.hh" 00033 #include "G4PreCompoundParameters.hh" 00034 #include "G4HadronicException.hh" 00035 00036 G4GNASHTransitions::G4GNASHTransitions() 00037 {} 00038 00039 G4GNASHTransitions::~G4GNASHTransitions() 00040 {} 00041 00042 G4double G4GNASHTransitions:: 00043 CalculateProbability(const G4Fragment & aFragment) 00044 { 00045 const G4double k = 135.0 * MeV*MeV*MeV; 00046 G4double E = aFragment.GetExcitationEnergy(); 00047 G4double P = aFragment.GetNumberOfParticles(); 00048 G4double H = aFragment.GetNumberOfHoles(); 00049 G4double N = P + H; 00050 G4double A = aFragment.GetA(); 00051 00052 G4double theMatrixElement(k*N/(A*A*A*E)); 00053 G4double x = E/N; 00054 if ( x < 2.0*MeV ) theMatrixElement *= x/std::sqrt(14.0*MeV*MeV); 00055 else if ( x < 7.0*MeV ) x *= std::sqrt(x/7.0*MeV); 00056 else if ( x < 15.0*MeV ) ; 00057 else x *= std::sqrt(15.0*MeV/x); 00058 00059 // gg = (6.0/pi2)*a*A 00060 G4double gg = (6.0/pi2)*G4PreCompoundParameters::GetAddress()->GetLevelDensity()*A; 00061 00062 G4double Epauli = ((P+1.0)*(P+1.0) + (H+1.0)*(H+1.0) + (P+1.0) - 3.0*(H-1.0))/4.0; 00063 00064 G4double Probability = gg*gg*gg *(E-Epauli)*(E-Epauli); 00065 Probability /= 2.0*(N+1.0)*h_Planck; 00066 Probability *= theMatrixElement; 00067 00068 return Probability; 00069 } 00070 00071 void G4GNASHTransitions::PerformTransition(G4Fragment & result) 00072 { 00073 result.SetNumberOfParticles(result.GetNumberOfParticles()+1); 00074 result.SetNumberOfHoles(result.GetNumberOfHoles()+1); 00075 if (G4UniformRand() <= result.GetZ()/result.GetA()) 00076 { 00077 result.SetNumberOfCharged(result.GetNumberOfCharged()+1); 00078 } 00079 00080 if (result.GetNumberOfParticles() < result.GetNumberOfCharged()) 00081 { 00082 result.SetNumberOfCharged(result.GetNumberOfParticles()); 00083 } 00084 }