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.4 2006/08/20 01:07:40 dennis Exp $ |
---|
28 | // GEANT4 tag $Name: $ |
---|
29 | // |
---|
30 | // by V. Lara |
---|
31 | |
---|
32 | |
---|
33 | inline G4double G4VPreCompoundFragment::GetA() const |
---|
34 | { |
---|
35 | return theA; |
---|
36 | } |
---|
37 | |
---|
38 | inline G4double G4VPreCompoundFragment::GetZ() const |
---|
39 | { |
---|
40 | return theZ; |
---|
41 | } |
---|
42 | |
---|
43 | inline G4double G4VPreCompoundFragment::GetRestA() const |
---|
44 | { |
---|
45 | return theRestNucleusA; |
---|
46 | } |
---|
47 | |
---|
48 | inline G4double G4VPreCompoundFragment::GetRestZ() const |
---|
49 | { |
---|
50 | return theRestNucleusZ; |
---|
51 | } |
---|
52 | |
---|
53 | inline G4double G4VPreCompoundFragment::GetCoulombBarrier() const |
---|
54 | { |
---|
55 | return theCoulombBarrier; |
---|
56 | } |
---|
57 | |
---|
58 | inline G4double G4VPreCompoundFragment::GetBindingEnergy() const |
---|
59 | { |
---|
60 | return theBindingEnergy; |
---|
61 | } |
---|
62 | |
---|
63 | inline G4double G4VPreCompoundFragment::GetMaximalKineticEnergy() const |
---|
64 | { |
---|
65 | return theMaximalKineticEnergy; |
---|
66 | } |
---|
67 | |
---|
68 | inline G4double G4VPreCompoundFragment::GetEnergyThreshold() const |
---|
69 | { |
---|
70 | return theMaximalKineticEnergy - theCoulombBarrier; |
---|
71 | } |
---|
72 | |
---|
73 | inline G4double G4VPreCompoundFragment::GetEmissionProbability() const |
---|
74 | { |
---|
75 | return theEmissionProbability; |
---|
76 | } |
---|
77 | |
---|
78 | inline G4double G4VPreCompoundFragment::GetNuclearMass(void) const |
---|
79 | { |
---|
80 | return G4ParticleTable::GetParticleTable()-> |
---|
81 | GetIonTable()->GetIonMass(static_cast<G4int>(theZ),static_cast<G4int>(theA)); |
---|
82 | } |
---|
83 | |
---|
84 | |
---|
85 | inline G4double G4VPreCompoundFragment::GetRestNuclearMass() const |
---|
86 | { |
---|
87 | return G4ParticleTable::GetParticleTable()->GetIonTable()-> |
---|
88 | GetIonMass(static_cast<G4int>(theRestNucleusZ),static_cast<G4int>(theRestNucleusA)); |
---|
89 | } |
---|
90 | |
---|
91 | |
---|
92 | inline G4double G4VPreCompoundFragment::GetReducedMass() const |
---|
93 | { |
---|
94 | return GetRestNuclearMass()*GetNuclearMass()/ |
---|
95 | (GetNuclearMass()+GetRestNuclearMass()); |
---|
96 | } |
---|
97 | |
---|
98 | |
---|
99 | inline const G4LorentzVector G4VPreCompoundFragment:: |
---|
100 | GetMomentum() const |
---|
101 | { |
---|
102 | return theMomentum; |
---|
103 | } |
---|
104 | |
---|
105 | |
---|
106 | inline void G4VPreCompoundFragment:: |
---|
107 | SetMomentum(const G4LorentzVector & value) |
---|
108 | { |
---|
109 | theMomentum = value; |
---|
110 | } |
---|
111 | |
---|
112 | inline void G4VPreCompoundFragment:: |
---|
113 | SetFragmentName(const G4String& aName) |
---|
114 | { |
---|
115 | theFragmentName = aName; |
---|
116 | } |
---|
117 | |
---|
118 | inline const G4String G4VPreCompoundFragment:: |
---|
119 | GetName() const |
---|
120 | { |
---|
121 | return theFragmentName; |
---|
122 | } |
---|
123 | |
---|
124 | inline void G4VPreCompoundFragment::ResetStage() |
---|
125 | { |
---|
126 | theStage = 1; |
---|
127 | } |
---|
128 | |
---|
129 | inline G4int G4VPreCompoundFragment::GetStage() const |
---|
130 | { |
---|
131 | return theStage; |
---|
132 | } |
---|
133 | |
---|
134 | inline void G4VPreCompoundFragment::IncrementStage() |
---|
135 | { |
---|
136 | theStage++; |
---|
137 | } |
---|
138 | |
---|