source: trunk/source/processes/hadronic/models/pre_equilibrium/exciton_model/src/G4HETCFragment.cc @ 1228

Last change on this file since 1228 was 819, checked in by garnier, 16 years ago

import all except CVS

File size: 4.4 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// by V. Lara
27 
28#include "G4HETCFragment.hh"
29#include "G4PreCompoundParameters.hh"
30
31G4HETCFragment::
32G4HETCFragment(const G4HETCFragment & right) :
33  G4VPreCompoundFragment(right)
34{
35}
36
37G4HETCFragment::
38G4HETCFragment(const G4double anA,
39               const G4double aZ, 
40               G4VCoulombBarrier* aCoulombBarrier,
41               const G4String & aName) :
42  G4VPreCompoundFragment(anA,aZ,aCoulombBarrier,aName)
43{}
44
45G4HETCFragment::~G4HETCFragment()
46{
47}
48
49const G4HETCFragment & G4HETCFragment::
50operator= (const G4HETCFragment & right)
51{
52  if (&right != this) this->G4VPreCompoundFragment::operator=(right);
53  return *this;
54}
55
56G4int G4HETCFragment::operator==(const G4HETCFragment & right) const
57{
58  return G4VPreCompoundFragment::operator==(right);
59}
60
61G4int G4HETCFragment::operator!=(const G4HETCFragment & right) const
62{
63  return G4VPreCompoundFragment::operator!=(right);
64}
65
66
67
68G4double G4HETCFragment::
69CalcEmissionProbability(const G4Fragment & aFragment)
70{
71  if (GetEnergyThreshold() <= 0.0) 
72  {
73      theEmissionProbability = 0.0;
74      return 0.0;
75  }   
76  // Coulomb barrier is the lower limit
77  // of integration over kinetic energy
78  G4double LowerLimit = theCoulombBarrier;
79 
80  // Excitation energy of nucleus after fragment emission is the upper limit
81  // of integration over kinetic energy
82  G4double UpperLimit = this->GetMaximalKineticEnergy();
83 
84  theEmissionProbability = IntegrateEmissionProbability(LowerLimit,UpperLimit,aFragment);
85   
86  return theEmissionProbability;
87}
88
89G4double G4HETCFragment::
90IntegrateEmissionProbability(const G4double & Low, const G4double & Up,
91                             const G4Fragment & aFragment)
92{
93 
94  if ( !IsItPossible(aFragment) ) return 0.0;
95
96  const G4double r0 = G4PreCompoundParameters::GetAddress()->Getr0();
97   
98  G4double U = aFragment.GetExcitationEnergy();
99  G4double P = aFragment.GetNumberOfParticles();
100  G4double H = aFragment.GetNumberOfHoles();
101  G4double N = P + H;
102  G4double Pb = P - GetA();
103  G4double Nb = Pb + H;
104  if (Nb <= 0.0) return 0.0;
105 
106  G4double A = (P*P+H*H+P-3*H)/4.0;
107  G4double Ab = (Pb*Pb+H*H+Pb-3*H)/4.0;
108  U = std::max(U-A,0.0);
109  if (U <= 0.0) return 0.0;
110
111  G4double g = (6.0/pi2)*aFragment.GetA()*G4PreCompoundParameters::GetAddress()->GetLevelDensity();
112  G4double gb = (6.0/pi2)*GetRestA()*G4PreCompoundParameters::GetAddress()->GetLevelDensity();
113
114  G4double Pf = P;
115  G4double Hf = H;
116  G4double Nf = N-1.0;
117  for (G4int i = 1; i < GetA(); i++)
118    {
119      Pf *= (P-i);
120      Hf *= (H-i);
121      Nf *= (N-1-i);
122    }
123
124  G4double X = std::max(Up - Ab + GetBeta(),0.0);
125  G4double Y = std::max(Up - Ab - Low, 0.0);
126
127  G4double Probability = GetSpinFactor()/(pi*hbarc*hbarc*hbarc) * GetReducedMass() * GetAlpha() *
128    r0 * r0 * std::pow(GetRestA(),2.0/3.0)/std::pow(U,N-1) * (std::pow(gb,Nb)/std::pow(g,N)) * Pf * Hf * Nf * K(aFragment) *
129    std::pow(Y,Nb) * (X/Nb - Y/(Nb+1));
130
131  return Probability;
132}
Note: See TracBrowser for help on using the repository browser.