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 | // $Id: G4PreCompoundIon.hh,v 1.8 2010/08/28 15:16:55 vnivanch Exp $ |
---|
27 | // GEANT4 tag $Name: geant4-09-03-ref-09 $ |
---|
28 | // |
---|
29 | // J. M. Quesada (August 2008). |
---|
30 | // Based on previous work by V. Lara |
---|
31 | // |
---|
32 | // Modified: |
---|
33 | // 20.08.2010 V.Ivanchenko added int Z and A and cleanup; added |
---|
34 | // G4ParticleDefinition to constructor, |
---|
35 | // moved constructor and destructor to source, |
---|
36 | // added inline methods |
---|
37 | |
---|
38 | #ifndef G4PreCompoundIon_h |
---|
39 | #define G4PreCompoundIon_h 1 |
---|
40 | |
---|
41 | #include "G4PreCompoundFragment.hh" |
---|
42 | |
---|
43 | class G4PreCompoundIon : public G4PreCompoundFragment |
---|
44 | { |
---|
45 | public: |
---|
46 | |
---|
47 | G4PreCompoundIon(const G4ParticleDefinition*, |
---|
48 | G4VCoulombBarrier * aCoulombBarrier); |
---|
49 | |
---|
50 | virtual ~G4PreCompoundIon(); |
---|
51 | |
---|
52 | protected: |
---|
53 | |
---|
54 | virtual G4double |
---|
55 | ProbabilityDistributionFunction(G4double eKin, |
---|
56 | const G4Fragment& aFragment); |
---|
57 | |
---|
58 | virtual G4double CrossSection(G4double ekin) = 0; |
---|
59 | |
---|
60 | virtual G4double |
---|
61 | GetRj(G4int NumberParticles, G4int NumberCharged) = 0; |
---|
62 | |
---|
63 | virtual G4double FactorialFactor(G4int N, G4int P) = 0; |
---|
64 | |
---|
65 | virtual G4double CoalescenceFactor(G4int A) = 0; |
---|
66 | |
---|
67 | virtual G4double GetAlpha() = 0; |
---|
68 | |
---|
69 | inline G4double GetBeta(); |
---|
70 | |
---|
71 | inline G4double GetOpt0(G4double ekin); |
---|
72 | |
---|
73 | private: |
---|
74 | |
---|
75 | // default constructor |
---|
76 | G4PreCompoundIon(); |
---|
77 | // operators |
---|
78 | G4PreCompoundIon(const G4PreCompoundIon &right); |
---|
79 | const G4PreCompoundIon& |
---|
80 | operator= (const G4PreCompoundIon &right); |
---|
81 | G4int operator==(const G4PreCompoundIon &right) const; |
---|
82 | G4int operator!=(const G4PreCompoundIon &right) const; |
---|
83 | |
---|
84 | G4double fact; |
---|
85 | }; |
---|
86 | |
---|
87 | inline G4double G4PreCompoundIon::GetBeta() |
---|
88 | { |
---|
89 | return -GetCoulombBarrier(); |
---|
90 | } |
---|
91 | |
---|
92 | // *********************** OPT=0 : Dostrovski's cross section *************** |
---|
93 | inline G4double G4PreCompoundIon::GetOpt0(G4double K) |
---|
94 | { |
---|
95 | G4double r0 = theParameters->Getr0()*ResidualA13(); |
---|
96 | // cross section is now given in mb (r0 is in mm) for the sake of consistency |
---|
97 | //with the rest of the options |
---|
98 | return 1.e+25*CLHEP::pi*r0*r0*ResidualA13()*GetAlpha()*(1.+GetBeta()/K); |
---|
99 | } |
---|
100 | |
---|
101 | #endif |
---|