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

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

update ti head

File size: 5.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: G4VPreCompoundFragment.cc,v 1.13 2010/08/28 15:16:55 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-03-ref-09 $
28//
29// J. M. Quesada (August 2008).  Based  on previous work by V. Lara
30//
31// Modified:
32// 20.08.2010 V.Ivanchenko added G4Pow and G4PreCompoundParameters pointers
33//                         use int Z and A and cleanup
34
35#include "G4VPreCompoundFragment.hh"
36#include "G4PreCompoundParameters.hh"
37#include "G4NucleiProperties.hh"
38
39G4VPreCompoundFragment::G4VPreCompoundFragment(
40  const G4ParticleDefinition* part, G4VCoulombBarrier* aCoulombBarrier)
41  : particle(part), theCoulombBarrierPtr(aCoulombBarrier),
42    theRestNucleusA(0),theRestNucleusZ(0),theBindingEnergy(0.0), 
43    theMaximalKineticEnergy(-MeV),theRestNucleusMass(0.0),
44    theReducedMass(0.0),theMomentum(0.,0.,0.,0.),
45    theEmissionProbability(0.0),theCoulombBarrier(0.0)
46{
47  theA = particle->GetBaryonNumber();
48  theZ = G4int(particle->GetPDGCharge()/eplus + 0.1);
49  theMass = particle->GetPDGMass();
50  theParameters = G4PreCompoundParameters::GetAddress();
51  g4pow = G4Pow::GetInstance();
52}
53
54G4VPreCompoundFragment::~G4VPreCompoundFragment()
55{}
56
57std::ostream& 
58operator << (std::ostream &out, const G4VPreCompoundFragment &theFragment)
59{
60  out << &theFragment;
61  return out; 
62}
63
64std::ostream& 
65operator << (std::ostream &out, const G4VPreCompoundFragment *theFragment)
66{
67  std::ios::fmtflags old_floatfield = out.flags();
68  out.setf(std::ios::floatfield);
69   
70  out
71    << "PreCompoundModel Emitted Fragment: A = " 
72    << std::setprecision(3) << theFragment->theA
73    << ", Z = " << std::setprecision(3) << theFragment->theZ;
74    out.setf(std::ios::scientific,std::ios::floatfield);
75    //   out
76    //     << ", U = " << theFragment->theExcitationEnergy/MeV
77    //     << " MeV" << endl
78    //     << "          P = ("
79    //     << theFragment->theMomentum.x()/MeV << ","
80    //     << theFragment->theMomentum.y()/MeV << ","
81    //     << theFragment->theMomentum.z()/MeV
82    //     << ") MeV   E = "
83    //     << theFragment->theMomentum.t()/MeV << " MeV";
84   
85    out.setf(old_floatfield,std::ios::floatfield);
86    return out;
87}
88
89void G4VPreCompoundFragment::
90Initialize(const G4Fragment & aFragment)
91{
92  theRestNucleusA = aFragment.GetA_asInt() - theA;
93  theRestNucleusZ = aFragment.GetZ_asInt() - theZ;
94  theRestNucleusA13 = g4pow->Z13(theRestNucleusA);
95
96  if ((theRestNucleusA < theRestNucleusZ) ||
97      (theRestNucleusA < theA) ||
98      (theRestNucleusZ < theZ)) 
99    {
100      // In order to be sure that emission probability will be 0.
101      theMaximalKineticEnergy = 0.0;
102      return;
103    }
104   
105  // Calculate Coulomb barrier
106  theCoulombBarrier = theCoulombBarrierPtr->
107    GetCoulombBarrier(theRestNucleusA,theRestNucleusZ,
108                      aFragment.GetExcitationEnergy());
109
110  // Calculate masses
111  theRestNucleusMass = 
112    G4NucleiProperties::GetNuclearMass(theRestNucleusA, theRestNucleusZ);
113  theReducedMass = theRestNucleusMass*theMass/(theRestNucleusMass + theMass);
114
115  // Compute Binding Energies for fragments
116  // (needed to separate a fragment from the nucleus)
117  theBindingEnergy = theRestNucleusMass + theMass - aFragment.GetGroundStateMass();
118 
119  //theBindingEnergy = G4NucleiProperties::GetMassExcess(static_cast<G4int>(theA),static_cast<G4int>(theZ)) +
120  //G4NucleiProperties::GetMassExcess(static_cast<G4int>(theRestNucleusA),static_cast<G4int>(theRestNucleusZ)) -
121  //G4NucleiProperties::GetMassExcess(static_cast<G4int>(aFragment.GetA()),static_cast<G4int>(aFragment.GetZ()));
122 
123  // Compute Maximal Kinetic Energy which can be carried by fragments after separation
124  // This is the true (assimptotic) maximal kinetic energy
125  G4double m  = aFragment.GetMomentum().m();
126  G4double rm = theRestNucleusMass;
127  G4double em = theMass;
128  theMaximalKineticEnergy = ((m - rm)*(m + rm) + em*em)/(2.0*m) - em;
129 
130  return;
131}
Note: See TracBrowser for help on using the repository browser.