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 | // |
---|
28 | // Hadronic Process: Nuclear De-excitations |
---|
29 | // by V. Lara (Nov 1998) |
---|
30 | |
---|
31 | #include "G4FermiBreakUp.hh" |
---|
32 | #include "G4HadronicException.hh" |
---|
33 | |
---|
34 | G4FermiBreakUp::G4FermiBreakUp() |
---|
35 | { |
---|
36 | } |
---|
37 | |
---|
38 | G4FermiBreakUp::G4FermiBreakUp(const G4FermiBreakUp &) : G4VFermiBreakUp() |
---|
39 | { |
---|
40 | throw G4HadronicException(__FILE__, __LINE__, "G4FermiBreakUp::copy_constructor meant to not be accessable"); |
---|
41 | } |
---|
42 | |
---|
43 | |
---|
44 | G4FermiBreakUp::~G4FermiBreakUp() |
---|
45 | { |
---|
46 | } |
---|
47 | |
---|
48 | |
---|
49 | const G4FermiBreakUp & G4FermiBreakUp::operator=(const G4FermiBreakUp &) |
---|
50 | { |
---|
51 | throw G4HadronicException(__FILE__, __LINE__, "G4FermiBreakUp::operator= meant to not be accessable"); |
---|
52 | return *this; |
---|
53 | } |
---|
54 | |
---|
55 | |
---|
56 | G4bool G4FermiBreakUp::operator==(const G4FermiBreakUp &) const |
---|
57 | { |
---|
58 | return false; |
---|
59 | } |
---|
60 | |
---|
61 | G4bool G4FermiBreakUp::operator!=(const G4FermiBreakUp &) const |
---|
62 | { |
---|
63 | return true; |
---|
64 | } |
---|
65 | |
---|
66 | |
---|
67 | |
---|
68 | G4FragmentVector * G4FermiBreakUp::BreakItUp(const G4Fragment &theNucleus) |
---|
69 | { |
---|
70 | // CHECK that Excitation Energy > 0 |
---|
71 | if (theNucleus.GetExcitationEnergy() <= 0) |
---|
72 | { |
---|
73 | G4FragmentVector * theResult = new G4FragmentVector; |
---|
74 | theResult->push_back(new G4Fragment(theNucleus)); |
---|
75 | return theResult; |
---|
76 | } |
---|
77 | |
---|
78 | // Total energy of nucleus in nucleus rest frame |
---|
79 | G4double TotalEnergyRF = theNucleus.GetMomentum().m(); |
---|
80 | // G4double TotalEnergyRF = theNucleus.GetExcitationEnergy() + |
---|
81 | // G4ParticleTable::GetParticleTable()->GetIonTable()-> |
---|
82 | // GetIonMass(static_cast<G4int>(theNucleus.GetZ()),static_cast<G4int>(theNucleus.GetA())); |
---|
83 | |
---|
84 | |
---|
85 | G4FermiConfigurationList theConfigurationList; |
---|
86 | |
---|
87 | |
---|
88 | // Split the nucleus |
---|
89 | G4bool Split = theConfigurationList.Initialize(static_cast<G4int>(theNucleus.GetA()), |
---|
90 | static_cast<G4int>(theNucleus.GetZ()), |
---|
91 | TotalEnergyRF); |
---|
92 | if ( !Split ) |
---|
93 | { |
---|
94 | G4FragmentVector * theResult = new G4FragmentVector; |
---|
95 | theResult->push_back(new G4Fragment(theNucleus)); |
---|
96 | |
---|
97 | return theResult; |
---|
98 | } |
---|
99 | |
---|
100 | // Chose a configuration |
---|
101 | G4FermiConfiguration theConfiguration(theConfigurationList.ChooseConfiguration()); |
---|
102 | |
---|
103 | |
---|
104 | // Get the fragments corresponding to chosen configuration. |
---|
105 | G4FragmentVector * theResult = theConfiguration.GetFragments(theNucleus); |
---|
106 | #ifdef PRECOMPOUND_TEST |
---|
107 | for (G4FragmentVector::iterator i = theResult->begin(); i != theResult->end(); i++) |
---|
108 | { |
---|
109 | (*i)->SetCreatorModel("G4FermiBreakUp"); |
---|
110 | } |
---|
111 | #endif |
---|
112 | return theResult; |
---|
113 | |
---|
114 | } |
---|
115 | |
---|
116 | |
---|