[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: G4VPreCompoundFragment.cc,v 1.13 2010/08/28 15:16:55 vnivanch Exp $ |
---|
| 27 | // GEANT4 tag $Name: geant4-09-03-ref-09 $ |
---|
[819] | 28 | // |
---|
[1340] | 29 | // J. M. Quesada (August 2008). Based on previous work by V. Lara |
---|
[819] | 30 | // |
---|
[1340] | 31 | // Modified: |
---|
| 32 | // 20.08.2010 V.Ivanchenko added G4Pow and G4PreCompoundParameters pointers |
---|
| 33 | // use int Z and A and cleanup |
---|
| 34 | |
---|
[819] | 35 | #include "G4VPreCompoundFragment.hh" |
---|
| 36 | #include "G4PreCompoundParameters.hh" |
---|
[1340] | 37 | #include "G4NucleiProperties.hh" |
---|
[819] | 38 | |
---|
[1340] | 39 | G4VPreCompoundFragment::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) |
---|
[819] | 46 | { |
---|
[1340] | 47 | theA = particle->GetBaryonNumber(); |
---|
| 48 | theZ = G4int(particle->GetPDGCharge()/eplus + 0.1); |
---|
| 49 | theMass = particle->GetPDGMass(); |
---|
| 50 | theParameters = G4PreCompoundParameters::GetAddress(); |
---|
| 51 | g4pow = G4Pow::GetInstance(); |
---|
[819] | 52 | } |
---|
| 53 | |
---|
[1340] | 54 | G4VPreCompoundFragment::~G4VPreCompoundFragment() |
---|
[819] | 55 | {} |
---|
| 56 | |
---|
| 57 | std::ostream& |
---|
| 58 | operator << (std::ostream &out, const G4VPreCompoundFragment &theFragment) |
---|
| 59 | { |
---|
| 60 | out << &theFragment; |
---|
| 61 | return out; |
---|
| 62 | } |
---|
| 63 | |
---|
| 64 | std::ostream& |
---|
| 65 | operator << (std::ostream &out, const G4VPreCompoundFragment *theFragment) |
---|
| 66 | { |
---|
| 67 | std::ios::fmtflags old_floatfield = out.flags(); |
---|
| 68 | out.setf(std::ios::floatfield); |
---|
| 69 | |
---|
| 70 | out |
---|
[1340] | 71 | << "PreCompoundModel Emitted Fragment: A = " |
---|
[819] | 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 | |
---|
| 89 | void G4VPreCompoundFragment:: |
---|
| 90 | Initialize(const G4Fragment & aFragment) |
---|
| 91 | { |
---|
[1340] | 92 | theRestNucleusA = aFragment.GetA_asInt() - theA; |
---|
| 93 | theRestNucleusZ = aFragment.GetZ_asInt() - theZ; |
---|
| 94 | theRestNucleusA13 = g4pow->Z13(theRestNucleusA); |
---|
[819] | 95 | |
---|
| 96 | if ((theRestNucleusA < theRestNucleusZ) || |
---|
| 97 | (theRestNucleusA < theA) || |
---|
[962] | 98 | (theRestNucleusZ < theZ)) |
---|
[819] | 99 | { |
---|
| 100 | // In order to be sure that emission probability will be 0. |
---|
| 101 | theMaximalKineticEnergy = 0.0; |
---|
| 102 | return; |
---|
| 103 | } |
---|
[1340] | 104 | |
---|
[819] | 105 | // Calculate Coulomb barrier |
---|
| 106 | theCoulombBarrier = theCoulombBarrierPtr-> |
---|
[1340] | 107 | GetCoulombBarrier(theRestNucleusA,theRestNucleusZ, |
---|
[819] | 108 | aFragment.GetExcitationEnergy()); |
---|
[962] | 109 | |
---|
[1340] | 110 | // Calculate masses |
---|
| 111 | theRestNucleusMass = |
---|
| 112 | G4NucleiProperties::GetNuclearMass(theRestNucleusA, theRestNucleusZ); |
---|
| 113 | theReducedMass = theRestNucleusMass*theMass/(theRestNucleusMass + theMass); |
---|
[962] | 114 | |
---|
[819] | 115 | // Compute Binding Energies for fragments |
---|
| 116 | // (needed to separate a fragment from the nucleus) |
---|
[1340] | 117 | theBindingEnergy = theRestNucleusMass + theMass - aFragment.GetGroundStateMass(); |
---|
[819] | 118 | |
---|
[1340] | 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())); |
---|
[819] | 122 | |
---|
| 123 | // Compute Maximal Kinetic Energy which can be carried by fragments after separation |
---|
[962] | 124 | // This is the true (assimptotic) maximal kinetic energy |
---|
[1340] | 125 | G4double m = aFragment.GetMomentum().m(); |
---|
| 126 | G4double rm = theRestNucleusMass; |
---|
| 127 | G4double em = theMass; |
---|
[819] | 128 | theMaximalKineticEnergy = ((m - rm)*(m + rm) + em*em)/(2.0*m) - em; |
---|
[962] | 129 | |
---|
[819] | 130 | return; |
---|
| 131 | } |
---|