source: trunk/source/processes/hadronic/models/pre_equilibrium/exciton_model/src/G4GNASHTransitions.cc @ 1340

Last change on this file since 1340 was 1340, checked in by garnier, 14 years ago

update ti head

File size: 3.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// $Id: G4GNASHTransitions.cc,v 1.6 2010/08/20 07:42:19 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-03-ref-09 $
28//
29// 20.08.2010 V.Ivanchenko move constructor and destructor to the source
30
31#include "G4GNASHTransitions.hh"
32#include "G4PreCompoundParameters.hh"
33#include "G4HadronicException.hh"
34
35G4GNASHTransitions::G4GNASHTransitions()
36{}
37
38G4GNASHTransitions::~G4GNASHTransitions()
39{}
40
41G4double G4GNASHTransitions::
42CalculateProbability(const G4Fragment & aFragment)
43{
44  const G4double k = 135.0 * MeV*MeV*MeV;
45  G4double E = aFragment.GetExcitationEnergy();
46  G4double P = aFragment.GetNumberOfParticles();
47  G4double H = aFragment.GetNumberOfHoles();
48  G4double N = P + H;
49  G4double A = aFragment.GetA();
50
51  G4double theMatrixElement(k*N/(A*A*A*E));
52  G4double x = E/N;
53  if ( x < 2.0*MeV ) theMatrixElement *= x/std::sqrt(14.0*MeV*MeV);
54  else if ( x < 7.0*MeV ) x *= std::sqrt(x/7.0*MeV);
55  else if ( x < 15.0*MeV ) ;
56  else x *= std::sqrt(15.0*MeV/x);
57
58  // g = (6.0/pi2)*a*A
59  G4double g =  (6.0/pi2)*G4PreCompoundParameters::GetAddress()->GetLevelDensity()*A;
60
61  G4double Epauli = ((P+1.0)*(P+1.0) + (H+1.0)*(H+1.0) + (P+1.0) - 3.0*(H-1.0))/4.0;
62
63  G4double Probability = g*g*g *(E-Epauli)*(E-Epauli);
64  Probability /= 2.0*(N+1.0)*h_Planck;
65  Probability *= theMatrixElement;
66
67  return Probability;
68}
69
70void G4GNASHTransitions::PerformTransition(G4Fragment & result)
71{
72  result.SetNumberOfParticles(result.GetNumberOfParticles()+1);
73  result.SetNumberOfHoles(result.GetNumberOfHoles()+1);
74  if (G4UniformRand() <= result.GetZ()/result.GetA())
75    {
76      result.SetNumberOfCharged(result.GetNumberOfCharged()+1);
77    }
78
79  if (result.GetNumberOfParticles() < result.GetNumberOfCharged())
80    {
81      result.SetNumberOfCharged(result.GetNumberOfParticles());
82    }
83}
Note: See TracBrowser for help on using the repository browser.