source: trunk/source/processes/hadronic/models/pre_equilibrium/exciton_model/src/G4PreCompoundIon.cc @ 1358

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

update ti head

File size: 4.7 KB
RevLine 
[819]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//
[1340]26// $Id: G4PreCompoundIon.cc,v 1.17 2010/08/28 15:16:55 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-03-ref-09 $
[962]28//
[1055]29// -------------------------------------------------------------------
30//
31// GEANT4 Class file
32//
33//
34// File name:     G4PreCompoundIon
35//
36// Author:         V.Lara
37//
38// Modified: 
39// 10.02.2009 J. M. Quesada fixed bug in density level of light fragments 
[1340]40// 20.08.2010 V.Ivanchenko added G4Pow and G4PreCompoundParameters pointers
41//                         use int Z and A and cleanup
[1055]42//
[819]43
44#include "G4PreCompoundIon.hh"
45
[1340]46G4PreCompoundIon::
47G4PreCompoundIon(const G4ParticleDefinition* part,
48                 G4VCoulombBarrier* aCoulombBarrier)
49  : G4PreCompoundFragment(part,aCoulombBarrier)
[1055]50{
[1340]51  G4double r0 = theParameters->Getr0();
52  fact = 0.75*CLHEP::millibarn/(CLHEP::pi*r0*r0*r0);
[1055]53}
[819]54
[1340]55G4PreCompoundIon::~G4PreCompoundIon()
56{}
57
[819]58G4double G4PreCompoundIon::
[1340]59ProbabilityDistributionFunction(G4double eKin, 
[819]60                                const G4Fragment& aFragment)
61{
[1340]62  if ( !IsItPossible(aFragment) ) { return 0.0; }
63  G4double efinal = eKin + GetBindingEnergy();
64  //G4cout << "Efinal= " << efinal << " Ekin= " << eKin << G4endl;
65  if(efinal <= 0.0 ) { return 0.0; } 
[819]66
67  G4double U = aFragment.GetExcitationEnergy();
[1340]68  G4int P = aFragment.GetNumberOfParticles();
69  G4int H = aFragment.GetNumberOfHoles();
70  G4int A = GetA();
71  G4int N = P + H;
[962]72
[1340]73  G4double g0 = (6.0/pi2)*aFragment.GetA_asInt()*theParameters->GetLevelDensity();
74  G4double g1 = (6.0/pi2)*GetRestA()*theParameters->GetLevelDensity();
[819]75
[1055]76  //JMQ 06/02/209  This is  THE BUG that was killing cluster emission
77  // G4double gj = (6.0/pi2)*GetA() *
78  //   G4PreCompoundParameters::GetAddress()->GetLevelDensity();
[819]79
[1055]80  G4double gj = g1;
81
[1340]82  G4double A0 = G4double(P*P+H*H+P-3*H)/(4.0*g0);
83  G4double A1 = std::max(0.0,(A0*g0 + A*(A-2*P-1)*0.25)/g1); 
[962]84
[1340]85  G4double E0 = U - A0;
86  //G4cout << "E0= " << E0 << G4endl;
87  if (E0 <= 0.0) { return 0.0; }
[962]88
[1340]89  G4double E1 = (std::max(0.0,GetMaximalKineticEnergy() - eKin - A1)); 
[962]90
[1340]91  G4double Aj = A*(A+1)/(4.0*gj); 
92  G4double Ej = std::max(0.0,efinal - Aj); 
[962]93
[1340]94  G4double rj = GetRj(P, aFragment.GetNumberOfCharged());
95  G4double xs = CrossSection(eKin);
[819]96
[1340]97  //G4cout << "rj= " << rj << " xs= " << xs << G4endl;
[819]98
[1055]99  // JMQ 10/02/09 reshaping of the formula (unnecessary std::pow elimitated)
[1340]100  /*
101  G4double r0 = theParameters->Getr0();
[1055]102  G4double pA = (3.0/4.0) * std::sqrt(std::max(0.0, 2.0/(GetReducedMass()*
[1340]103                (eKin+GetBindingEnergy()))))/(pi * r0 * r0 *r0* GetRestA())*
[1055]104                eKin*CrossSection(eKin)*millibarn*
[1340]105                CoalescenceFactor(aFragment.GetA_asInt()) * FactorialFactor(N,P)*
106       GetRj(aFragment.GetNumberOfParticles(), aFragment.GetNumberOfCharged());
[962]107
[819]108  G4double pB = std::pow((g1*E1)/(g0*E0),N-GetA()-1.0)*(g1/g0);
[962]109  G4double pC = std::pow((gj*Ej)/(g0*E0),GetA()-1.0)*(gj/g0)/E0;
[1340]110  pA *= pB * pC;
111  */
112 
113  G4double pA = fact*eKin*xs*rj
114    * CoalescenceFactor(aFragment.GetA_asInt()) * FactorialFactor(N,P)
115    * std::sqrt(2.0/(GetReducedMass()*efinal)) 
116    * g4pow->powN(g1*E1/(g0*E0), N-A-1)
117    * g4pow->powN(gj*Ej/(g0*E0), A-1)*gj*g1/(g0*g0*E0*GetRestA()); 
118   
119  return pA;
[819]120}
Note: See TracBrowser for help on using the repository browser.