source: trunk/source/processes/hadronic/models/pre_equilibrium/exciton_model/src/G4PreCompoundNucleon.cc @ 962

Last change on this file since 962 was 962, checked in by garnier, 15 years ago

update processes

File size: 3.8 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26//
27// $Id: G4PreCompoundNucleon.cc,v 1.13 2009/02/11 18:06:00 vnivanch Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30// -------------------------------------------------------------------
31//
32// GEANT4 Class file
33//
34//
35// File name:     G4PreCompoundNucleon
36//
37// Author:         V.Lara
38//
39// Modified: 
40// 10.02.2009 J. M. Quesada cleanup
41//
42
43#include "G4PreCompoundNucleon.hh"
44#include "G4PreCompoundParameters.hh"
45
46G4bool G4PreCompoundNucleon::IsItPossible(const G4Fragment& aFragment) 
47{
48  G4int pplus = aFragment.GetNumberOfCharged();   
49  G4int pneut = aFragment.GetNumberOfParticles()-pplus;
50  return (pneut >= (GetA()-GetZ()) && pplus >= GetZ());
51}
52
53G4double G4PreCompoundNucleon::
54ProbabilityDistributionFunction(const G4double eKin, 
55                                const G4Fragment& aFragment)
56{
57  if ( !IsItPossible(aFragment) ) return 0.0;
58
59  G4double U = aFragment.GetExcitationEnergy();
60  G4double P = aFragment.GetNumberOfParticles();
61  G4double H = aFragment.GetNumberOfHoles();
62  G4double N = P + H;
63 
64  G4double g0 = (6.0/pi2)*aFragment.GetA() * 
65    G4PreCompoundParameters::GetAddress()->GetLevelDensity();
66 
67  G4double g1 = (6.0/pi2)*GetRestA() * 
68    G4PreCompoundParameters::GetAddress()->GetLevelDensity();
69
70  G4double A0 = ((P*P+H*H+P-H)/4.0 - H/2.0)/g0;
71
72  G4double A1 = (A0 - P/2.0)/g1;
73 
74  G4double E0 = std::max(0.0,U - A0);
75  if (E0 == 0.0) return 0.0;
76  G4double E1 = std::max(0.0,U - eKin - GetBindingEnergy() - A1);
77  if (E1 == 0.0) return 0.0;
78
79
80  G4double Probability = 1.0/pi2*2.0/(hbarc*hbarc*hbarc) * GetReducedMass()
81    * GetRj(aFragment.GetNumberOfParticles(), aFragment.GetNumberOfCharged()) 
82    * eKin*CrossSection(eKin)*millibarn * P*(N-1.0) * std::pow(g1*E1/(g0*E0),N-2.0)/E0 * g1/(g0*g0);
83
84  if (GetRj(aFragment.GetNumberOfParticles(), aFragment.GetNumberOfCharged())<0.0 
85      || CrossSection(eKin) <0) { 
86    std::ostringstream errOs;
87    G4cout<<"WARNING:  NEGATIVE VALUES "<<G4endl;     
88    errOs << "Rj=" << GetRj(aFragment.GetNumberOfParticles(), aFragment.GetNumberOfCharged())
89          <<G4endl;
90    errOs <<"  xsec("<<eKin<<" MeV) ="<<CrossSection(eKin)<<G4endl;
91    errOs <<"  A="<<GetA()<<"  Z="<<GetZ()<<G4endl;
92    throw G4HadronicException(__FILE__, __LINE__, errOs.str());
93  }
94
95  return Probability;
96}
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Note: See TracBrowser for help on using the repository browser.