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 | // $Id: G4VPreCompoundFragment.icc,v 1.7 2008/09/22 10:18:36 ahoward Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-02-ref-02 $ |
---|
29 | // |
---|
30 | // by V. Lara |
---|
31 | // |
---|
32 | // Modif (03 September 2008) by J. M. Quesada for external choice of inverse |
---|
33 | // cross section option |
---|
34 | // JMQ (06 September 2008) Also external choice has been added for: |
---|
35 | // - superimposed Coulomb barrier (if useSICB=true) |
---|
36 | |
---|
37 | inline G4double G4VPreCompoundFragment::GetA() const |
---|
38 | { |
---|
39 | return theA; |
---|
40 | } |
---|
41 | |
---|
42 | inline G4double G4VPreCompoundFragment::GetZ() const |
---|
43 | { |
---|
44 | return theZ; |
---|
45 | } |
---|
46 | |
---|
47 | inline G4double G4VPreCompoundFragment::GetRestA() const |
---|
48 | { |
---|
49 | return theRestNucleusA; |
---|
50 | } |
---|
51 | |
---|
52 | inline G4double G4VPreCompoundFragment::GetRestZ() const |
---|
53 | { |
---|
54 | return theRestNucleusZ; |
---|
55 | } |
---|
56 | |
---|
57 | inline G4double G4VPreCompoundFragment::GetCoulombBarrier() const |
---|
58 | { |
---|
59 | return theCoulombBarrier; |
---|
60 | } |
---|
61 | |
---|
62 | inline G4double G4VPreCompoundFragment::GetBindingEnergy() const |
---|
63 | { |
---|
64 | return theBindingEnergy; |
---|
65 | } |
---|
66 | |
---|
67 | inline G4double G4VPreCompoundFragment::GetMaximalKineticEnergy() const |
---|
68 | { |
---|
69 | return theMaximalKineticEnergy; |
---|
70 | } |
---|
71 | |
---|
72 | inline G4double G4VPreCompoundFragment::GetEnergyThreshold() const |
---|
73 | { |
---|
74 | return theMaximalKineticEnergy - theCoulombBarrier; |
---|
75 | } |
---|
76 | |
---|
77 | inline G4double G4VPreCompoundFragment::GetEmissionProbability() const |
---|
78 | { |
---|
79 | return theEmissionProbability; |
---|
80 | } |
---|
81 | |
---|
82 | inline G4double G4VPreCompoundFragment::GetNuclearMass(void) const |
---|
83 | { |
---|
84 | return G4ParticleTable::GetParticleTable()-> |
---|
85 | GetIonTable()->GetIonMass(static_cast<G4int>(theZ),static_cast<G4int>(theA)); |
---|
86 | } |
---|
87 | |
---|
88 | |
---|
89 | inline G4double G4VPreCompoundFragment::GetRestNuclearMass() const |
---|
90 | { |
---|
91 | return G4ParticleTable::GetParticleTable()->GetIonTable()-> |
---|
92 | GetIonMass(static_cast<G4int>(theRestNucleusZ),static_cast<G4int>(theRestNucleusA)); |
---|
93 | } |
---|
94 | |
---|
95 | |
---|
96 | inline G4double G4VPreCompoundFragment::GetReducedMass() const |
---|
97 | { |
---|
98 | return GetRestNuclearMass()*GetNuclearMass()/ |
---|
99 | (GetNuclearMass()+GetRestNuclearMass()); |
---|
100 | } |
---|
101 | |
---|
102 | |
---|
103 | inline const G4LorentzVector G4VPreCompoundFragment:: |
---|
104 | GetMomentum() const |
---|
105 | { |
---|
106 | return theMomentum; |
---|
107 | } |
---|
108 | |
---|
109 | |
---|
110 | inline void G4VPreCompoundFragment:: |
---|
111 | SetMomentum(const G4LorentzVector & value) |
---|
112 | { |
---|
113 | theMomentum = value; |
---|
114 | } |
---|
115 | |
---|
116 | inline void G4VPreCompoundFragment:: |
---|
117 | SetFragmentName(const G4String& aName) |
---|
118 | { |
---|
119 | theFragmentName = aName; |
---|
120 | } |
---|
121 | |
---|
122 | inline const G4String G4VPreCompoundFragment:: |
---|
123 | GetName() const |
---|
124 | { |
---|
125 | return theFragmentName; |
---|
126 | } |
---|
127 | |
---|
128 | inline void G4VPreCompoundFragment::ResetStage() |
---|
129 | { |
---|
130 | theStage = 1; |
---|
131 | } |
---|
132 | |
---|
133 | inline G4int G4VPreCompoundFragment::GetStage() const |
---|
134 | { |
---|
135 | return theStage; |
---|
136 | } |
---|
137 | |
---|
138 | inline void G4VPreCompoundFragment::IncrementStage() |
---|
139 | { |
---|
140 | theStage++; |
---|
141 | } |
---|
142 | |
---|
143 | //for inverse cross section choice |
---|
144 | inline void G4VPreCompoundFragment::SetOPTxs(G4int opt) |
---|
145 | { |
---|
146 | OPTxs=opt; |
---|
147 | return; |
---|
148 | } |
---|
149 | |
---|
150 | //for superimposed Coulomb Barrier for inverse cross sections |
---|
151 | inline void G4VPreCompoundFragment::UseSICB(G4bool use) |
---|
152 | { |
---|
153 | useSICB=use; |
---|
154 | return; |
---|
155 | } |
---|