ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4VPreCompoundFragment.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4VPreCompoundFragment.cc
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 // J. M. Quesada (August 2008). Based on previous work by V. Lara
28 //
29 // Modified:
30 // 20.08.2010 V.Ivanchenko added G4Pow and G4PreCompoundParameters pointers
31 // use int Z and A and cleanup
32 
34 #include "G4SystemOfUnits.hh"
35 #include "G4NucleiProperties.hh"
36 #include "G4NuclearLevelData.hh"
37 #include "G4DeexPrecoParameters.hh"
38 
40  const G4ParticleDefinition* part, G4VCoulombBarrier* aCoulombBarrier)
41  : particle(part), theCoulombBarrierPtr(aCoulombBarrier),
42  theMomentum(0.,0.,0.,0.),
43  theA(particle->GetBaryonNumber()),
44  theZ(G4lrint(particle->GetPDGCharge())),
45  theResA(0),theResZ(0),theFragA(0),theFragZ(0),theBindingEnergy(0.0),
46  theMinKinEnergy(0.0),theMaxKinEnergy(0.0),theResMass(0.0),
47  theReducedMass(0.0),
48  theEmissionProbability(0.0),theCoulombBarrier(0.0),
49  OPTxs(3),useSICB(true)
50 {
55  theResA13 = 0.0;
56 }
57 
59 {}
60 
61 std::ostream&
62 operator << (std::ostream &out, const G4VPreCompoundFragment &theFragment)
63 {
64  out << &theFragment;
65  return out;
66 }
67 
68 std::ostream&
69 operator << (std::ostream &out, const G4VPreCompoundFragment *theFragment)
70 {
71  out
72  << "PreCompoundModel Emitted Fragment: Z= " << theFragment->GetZ()
73  << " A= " << theFragment->GetA()
74  << " Mass(GeV)= " << theFragment->GetNuclearMass()/CLHEP::GeV;
75  return out;
76 }
77 
78 void
80 {
81  theFragA = aFragment.GetA_asInt();
82  theFragZ = aFragment.GetZ_asInt();
83  theResA = theFragA - theA;
84  theResZ = theFragZ - theZ;
85 
87  if ((theResA < theResZ) || (theResA < theA) || (theResZ < theZ)) {
88  return;
89  }
90 
93  GetCoulombBarrier(theResA,theResZ,aFragment.GetExcitationEnergy());
94 
95  G4double elim = (0 == OPTxs) ? theCoulombBarrier : theCoulombBarrier*0.5;
96 
97  // Calculate masses
100 
101  // Compute Binding Energies for fragments
102  // needed to separate a fragment from the nucleus
104 
105  // Compute Maximal Kinetic Energy which can be carried by fragments
106  // after separation - the true assimptotic value
107  G4double Ecm = aFragment.GetMomentum().m();
108  G4double twoEcm = Ecm + Ecm;
110  /twoEcm - theMass,0.0);
111  theMinKinEnergy = (elim == 0.0) ? 0.0 :
112  std::max(((theMass+elim)*(twoEcm-theMass-elim) +
113  theMass*theMass)/twoEcm - theMass,0.0);
114 }