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.8 2010/08/28 15:16:55 vnivanch Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-03-ref-09 $ |
---|
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 | // 23.08.2010 V.Ivanchenko general cleanup, move constructor and destructor |
---|
37 | // the source, make GetReactionProduct() and IsItPossible inlined |
---|
38 | |
---|
39 | inline G4bool G4VPreCompoundFragment:: |
---|
40 | IsItPossible(const G4Fragment & aFragment) const |
---|
41 | { |
---|
42 | G4int pplus = aFragment.GetNumberOfCharged(); |
---|
43 | G4int pneut = aFragment.GetNumberOfParticles()-pplus; |
---|
44 | return ((pneut >= theA - theZ) && (pplus >= theZ) |
---|
45 | && (theMaximalKineticEnergy > 0)); |
---|
46 | } |
---|
47 | |
---|
48 | |
---|
49 | inline |
---|
50 | G4ReactionProduct * G4VPreCompoundFragment::GetReactionProduct() const |
---|
51 | { |
---|
52 | G4ReactionProduct * theReactionProduct = |
---|
53 | new G4ReactionProduct(const_cast<G4ParticleDefinition*>(particle)); |
---|
54 | theReactionProduct->SetMomentum(GetMomentum().vect()); |
---|
55 | theReactionProduct->SetTotalEnergy(GetMomentum().e()); |
---|
56 | return theReactionProduct; |
---|
57 | } |
---|
58 | |
---|
59 | inline G4int G4VPreCompoundFragment::GetA() const |
---|
60 | { |
---|
61 | return theA; |
---|
62 | } |
---|
63 | |
---|
64 | inline G4int G4VPreCompoundFragment::GetZ() const |
---|
65 | { |
---|
66 | return theZ; |
---|
67 | } |
---|
68 | |
---|
69 | inline G4int G4VPreCompoundFragment::GetRestA() const |
---|
70 | { |
---|
71 | return theRestNucleusA; |
---|
72 | } |
---|
73 | |
---|
74 | inline G4int G4VPreCompoundFragment::GetRestZ() const |
---|
75 | { |
---|
76 | return theRestNucleusZ; |
---|
77 | } |
---|
78 | |
---|
79 | inline G4double G4VPreCompoundFragment::ResidualA13() const |
---|
80 | { |
---|
81 | return theRestNucleusA13; |
---|
82 | } |
---|
83 | |
---|
84 | inline G4double G4VPreCompoundFragment::GetCoulombBarrier() const |
---|
85 | { |
---|
86 | return theCoulombBarrier; |
---|
87 | } |
---|
88 | |
---|
89 | inline G4double G4VPreCompoundFragment::GetBindingEnergy() const |
---|
90 | { |
---|
91 | return theBindingEnergy; |
---|
92 | } |
---|
93 | |
---|
94 | inline G4double G4VPreCompoundFragment::GetMaximalKineticEnergy() const |
---|
95 | { |
---|
96 | return theMaximalKineticEnergy; |
---|
97 | } |
---|
98 | |
---|
99 | inline G4double G4VPreCompoundFragment::GetEnergyThreshold() const |
---|
100 | { |
---|
101 | return theMaximalKineticEnergy - theCoulombBarrier; |
---|
102 | } |
---|
103 | |
---|
104 | inline G4double G4VPreCompoundFragment::GetEmissionProbability() const |
---|
105 | { |
---|
106 | return theEmissionProbability; |
---|
107 | } |
---|
108 | |
---|
109 | inline G4double G4VPreCompoundFragment::GetNuclearMass(void) const |
---|
110 | { |
---|
111 | return theMass; |
---|
112 | } |
---|
113 | |
---|
114 | inline G4double G4VPreCompoundFragment::GetRestNuclearMass() const |
---|
115 | { |
---|
116 | return theRestNucleusMass; |
---|
117 | } |
---|
118 | |
---|
119 | inline G4double G4VPreCompoundFragment::GetReducedMass() const |
---|
120 | { |
---|
121 | return theReducedMass; |
---|
122 | } |
---|
123 | |
---|
124 | inline |
---|
125 | const G4LorentzVector& G4VPreCompoundFragment::GetMomentum() const |
---|
126 | { |
---|
127 | return theMomentum; |
---|
128 | } |
---|
129 | |
---|
130 | inline |
---|
131 | void G4VPreCompoundFragment::SetMomentum(const G4LorentzVector & value) |
---|
132 | { |
---|
133 | theMomentum = value; |
---|
134 | } |
---|
135 | |
---|
136 | inline const G4String G4VPreCompoundFragment:: |
---|
137 | GetName() const |
---|
138 | { |
---|
139 | return particle->GetParticleName(); |
---|
140 | } |
---|
141 | |
---|
142 | //for inverse cross section choice |
---|
143 | inline void G4VPreCompoundFragment::SetOPTxs(G4int opt) |
---|
144 | { |
---|
145 | OPTxs=opt; |
---|
146 | } |
---|
147 | |
---|
148 | //for superimposed Coulomb Barrier for inverse cross sections |
---|
149 | inline void G4VPreCompoundFragment::UseSICB(G4bool use) |
---|
150 | { |
---|
151 | useSICB=use; |
---|
152 | } |
---|