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: G4NucleonSampler.hh,v 1.1 2009/09/24 18:50:27 dennis Exp $ |
---|
27 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
28 | // |
---|
29 | // Author: D. H. Wright |
---|
30 | // Date: 10 September 2009 |
---|
31 | // |
---|
32 | |
---|
33 | #ifndef G4NucleonSampler_h |
---|
34 | #define G4NucleonSampler_h 1 |
---|
35 | |
---|
36 | // Class Description: |
---|
37 | // Samples partial cross sections, multiplicities and final state particle |
---|
38 | // types required for p and n scattering within a nucleus |
---|
39 | |
---|
40 | #include "G4FinalStateSampler.hh" |
---|
41 | |
---|
42 | class G4NucleonSampler : public G4FinalStateSampler |
---|
43 | { |
---|
44 | public: |
---|
45 | |
---|
46 | G4NucleonSampler(); |
---|
47 | |
---|
48 | ~G4NucleonSampler() |
---|
49 | { } |
---|
50 | |
---|
51 | void printCrossSections() const; |
---|
52 | |
---|
53 | G4int GetMultiplicityT1(G4double KE) const; // pp, nn |
---|
54 | G4int GetMultiplicityT0(G4double KE) const; // pn |
---|
55 | |
---|
56 | std::vector<G4int> |
---|
57 | GetFSPartTypesForT1(G4int mult, G4double KE, G4int tindex) const; |
---|
58 | std::vector<G4int> |
---|
59 | GetFSPartTypesForT0(G4int mult, G4double KE) const; |
---|
60 | |
---|
61 | std::vector<G4int> GetFSPartTypesForPP(G4int mult, G4double KE) const |
---|
62 | {return GetFSPartTypesForT1(mult, KE, 0); } |
---|
63 | |
---|
64 | std::vector<G4int> GetFSPartTypesForNN(G4int mult, G4double KE) const |
---|
65 | {return GetFSPartTypesForT1(mult, KE, 1); } |
---|
66 | |
---|
67 | std::vector<G4int> GetFSPartTypesForNP(G4int mult, G4double KE) const |
---|
68 | {return GetFSPartTypesForT0(mult, KE); } |
---|
69 | |
---|
70 | protected: |
---|
71 | |
---|
72 | G4int PPindex[8][2]; |
---|
73 | G4int NPindex[8][2]; |
---|
74 | |
---|
75 | G4int T1_2bfs[2][1][2]; |
---|
76 | G4int T1_3bfs[2][6][3]; |
---|
77 | G4int T1_4bfs[2][18][4]; |
---|
78 | G4int T1_5bfs[2][32][5]; |
---|
79 | G4int T1_6bfs[2][7][6]; |
---|
80 | G4int T1_7bfs[2][8][7]; |
---|
81 | G4int T1_8bfs[2][10][8]; |
---|
82 | G4int T1_9bfs[2][11][9]; |
---|
83 | |
---|
84 | G4int T0_2bfs[1][2]; |
---|
85 | G4int T0_3bfs[9][3]; |
---|
86 | G4int T0_4bfs[22][4]; |
---|
87 | G4int T0_5bfs[38][5]; |
---|
88 | G4int T0_6bfs[7][6]; |
---|
89 | G4int T0_7bfs[9][7]; |
---|
90 | G4int T0_8bfs[10][8]; |
---|
91 | G4int T0_9bfs[12][9]; |
---|
92 | |
---|
93 | G4double PPsummed[30]; |
---|
94 | G4double PPtot[30]; |
---|
95 | G4double NPsummed[30]; |
---|
96 | G4double NPtot[30]; |
---|
97 | G4double t1_dSigma_dMult[8][30]; |
---|
98 | G4double t0_dSigma_dMult[8][30]; |
---|
99 | |
---|
100 | G4float PPCrossSections[93][30]; |
---|
101 | G4float NPCrossSections[108][30]; |
---|
102 | |
---|
103 | private: |
---|
104 | |
---|
105 | void initCrossSections(); |
---|
106 | |
---|
107 | }; |
---|
108 | #endif |
---|