[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 | // |
---|
[962] | 26 | // $Id: G4VPreCompoundFragment.cc,v 1.12 2009/02/10 16:01:37 vnivanch Exp $ |
---|
| 27 | // GEANT4 tag $Name: geant4-09-02-ref-02 $ |
---|
[819] | 28 | // |
---|
[962] | 29 | // J. M. Quesada (August 2008). |
---|
| 30 | // Based on previous work by V. Lara |
---|
[819] | 31 | // |
---|
| 32 | |
---|
| 33 | #include "G4VPreCompoundFragment.hh" |
---|
| 34 | #include "G4PreCompoundParameters.hh" |
---|
| 35 | |
---|
| 36 | G4VPreCompoundFragment:: |
---|
| 37 | G4VPreCompoundFragment(const G4VPreCompoundFragment & right) |
---|
| 38 | { |
---|
| 39 | theA = right.theA; |
---|
| 40 | theZ = right.theZ; |
---|
| 41 | theRestNucleusA = right.theRestNucleusA; |
---|
| 42 | theRestNucleusZ = right.theRestNucleusZ; |
---|
| 43 | theCoulombBarrier = right.theCoulombBarrier; |
---|
| 44 | theCoulombBarrierPtr = right.theCoulombBarrierPtr; |
---|
| 45 | theMaximalKineticEnergy = right.theMaximalKineticEnergy; |
---|
| 46 | theEmissionProbability = right.theEmissionProbability; |
---|
| 47 | theMomentum = right.theMomentum; |
---|
| 48 | theFragmentName = right.theFragmentName; |
---|
| 49 | theStage = right.theStage; |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | G4VPreCompoundFragment:: |
---|
| 53 | G4VPreCompoundFragment(const G4double anA, |
---|
| 54 | const G4double aZ, |
---|
| 55 | G4VCoulombBarrier* aCoulombBarrier, |
---|
| 56 | const G4String & aName): |
---|
| 57 | theA(anA),theZ(aZ), |
---|
| 58 | theRestNucleusA(0.0),theRestNucleusZ(0.0),theCoulombBarrier(0.0), |
---|
| 59 | theCoulombBarrierPtr(aCoulombBarrier), |
---|
| 60 | theBindingEnergy(0.0), theMaximalKineticEnergy(-1.0), |
---|
| 61 | theEmissionProbability(0.0), theMomentum(0.0,0.0,0.0,0.0), |
---|
| 62 | theFragmentName(aName),theStage(0) |
---|
| 63 | {} |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | G4VPreCompoundFragment::~G4VPreCompoundFragment() |
---|
| 68 | { |
---|
| 69 | } |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | const G4VPreCompoundFragment & G4VPreCompoundFragment:: |
---|
| 73 | operator= (const G4VPreCompoundFragment & right) |
---|
| 74 | { |
---|
| 75 | if (this != &right) { |
---|
| 76 | theA = right.theA; |
---|
| 77 | theZ = right.theZ; |
---|
| 78 | theRestNucleusA = right.theRestNucleusA; |
---|
| 79 | theRestNucleusZ = right.theRestNucleusZ; |
---|
| 80 | theCoulombBarrier = right.theCoulombBarrier; |
---|
| 81 | theCoulombBarrierPtr = right.theCoulombBarrierPtr; |
---|
| 82 | theMaximalKineticEnergy = right.theMaximalKineticEnergy; |
---|
| 83 | theEmissionProbability = right.theEmissionProbability; |
---|
| 84 | theMomentum = right.theMomentum; |
---|
| 85 | theFragmentName = right.theFragmentName; |
---|
| 86 | theStage = right.theStage; |
---|
| 87 | } |
---|
| 88 | return *this; |
---|
| 89 | } |
---|
| 90 | |
---|
| 91 | G4int G4VPreCompoundFragment::operator==(const G4VPreCompoundFragment & right) const |
---|
| 92 | { |
---|
| 93 | return (this == (G4VPreCompoundFragment *) &right); |
---|
| 94 | } |
---|
| 95 | |
---|
| 96 | G4int G4VPreCompoundFragment::operator!=(const G4VPreCompoundFragment & right) const |
---|
| 97 | { |
---|
| 98 | return (this != (G4VPreCompoundFragment *) &right); |
---|
| 99 | } |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | std::ostream& |
---|
| 103 | operator << (std::ostream &out, const G4VPreCompoundFragment &theFragment) |
---|
| 104 | { |
---|
| 105 | out << &theFragment; |
---|
| 106 | return out; |
---|
| 107 | } |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | std::ostream& |
---|
| 111 | operator << (std::ostream &out, const G4VPreCompoundFragment *theFragment) |
---|
| 112 | { |
---|
| 113 | std::ios::fmtflags old_floatfield = out.flags(); |
---|
| 114 | out.setf(std::ios::floatfield); |
---|
| 115 | |
---|
| 116 | out |
---|
| 117 | << "PreCompound Model Emitted Fragment: A = " |
---|
| 118 | << std::setprecision(3) << theFragment->theA |
---|
| 119 | << ", Z = " << std::setprecision(3) << theFragment->theZ; |
---|
| 120 | out.setf(std::ios::scientific,std::ios::floatfield); |
---|
| 121 | // out |
---|
| 122 | // << ", U = " << theFragment->theExcitationEnergy/MeV |
---|
| 123 | // << " MeV" << endl |
---|
| 124 | // << " P = (" |
---|
| 125 | // << theFragment->theMomentum.x()/MeV << "," |
---|
| 126 | // << theFragment->theMomentum.y()/MeV << "," |
---|
| 127 | // << theFragment->theMomentum.z()/MeV |
---|
| 128 | // << ") MeV E = " |
---|
| 129 | // << theFragment->theMomentum.t()/MeV << " MeV"; |
---|
| 130 | |
---|
| 131 | out.setf(old_floatfield,std::ios::floatfield); |
---|
| 132 | |
---|
| 133 | return out; |
---|
| 134 | } |
---|
| 135 | |
---|
| 136 | |
---|
| 137 | void G4VPreCompoundFragment:: |
---|
| 138 | Initialize(const G4Fragment & aFragment) |
---|
| 139 | { |
---|
| 140 | theRestNucleusA = aFragment.GetA() - theA; |
---|
| 141 | theRestNucleusZ = aFragment.GetZ() - theZ; |
---|
| 142 | |
---|
| 143 | if ((theRestNucleusA < theRestNucleusZ) || |
---|
| 144 | (theRestNucleusA < theA) || |
---|
[962] | 145 | (theRestNucleusZ < theZ)) |
---|
[819] | 146 | { |
---|
| 147 | // In order to be sure that emission probability will be 0. |
---|
| 148 | theMaximalKineticEnergy = 0.0; |
---|
| 149 | return; |
---|
| 150 | } |
---|
| 151 | |
---|
| 152 | |
---|
| 153 | // Calculate Coulomb barrier |
---|
| 154 | theCoulombBarrier = theCoulombBarrierPtr-> |
---|
| 155 | GetCoulombBarrier(static_cast<G4int>(theRestNucleusA),static_cast<G4int>(theRestNucleusZ), |
---|
| 156 | aFragment.GetExcitationEnergy()); |
---|
[962] | 157 | |
---|
| 158 | |
---|
[819] | 159 | // Compute Binding Energies for fragments |
---|
| 160 | // (needed to separate a fragment from the nucleus) |
---|
| 161 | |
---|
| 162 | theBindingEnergy = G4NucleiProperties::GetMassExcess(static_cast<G4int>(theA),static_cast<G4int>(theZ)) + |
---|
| 163 | G4NucleiProperties::GetMassExcess(static_cast<G4int>(theRestNucleusA),static_cast<G4int>(theRestNucleusZ)) - |
---|
| 164 | G4NucleiProperties::GetMassExcess(static_cast<G4int>(aFragment.GetA()),static_cast<G4int>(aFragment.GetZ())); |
---|
| 165 | |
---|
| 166 | // Compute Maximal Kinetic Energy which can be carried by fragments after separation |
---|
[962] | 167 | // This is the true (assimptotic) maximal kinetic energy |
---|
[819] | 168 | G4double m = aFragment.GetMomentum().m(); |
---|
| 169 | G4double rm = GetRestNuclearMass(); |
---|
| 170 | G4double em = GetNuclearMass(); |
---|
| 171 | theMaximalKineticEnergy = ((m - rm)*(m + rm) + em*em)/(2.0*m) - em; |
---|
[962] | 172 | |
---|
[819] | 173 | |
---|
| 174 | return; |
---|
| 175 | } |
---|
| 176 | |
---|
| 177 | |
---|
| 178 | |
---|
| 179 | |
---|