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 | // Short description: CHIPS cross-sectons for Ion-Ion interactions |
---|
27 | // --------------------------------------------------------------- |
---|
28 | // |
---|
29 | // |
---|
30 | // GEANT4 tag $Name: geant4-09-03-cand-01 $ |
---|
31 | // |
---|
32 | // |
---|
33 | // GEANT4 physics class: G4QIonIonCrossSection -- header file |
---|
34 | // Created: M.V. Kossov, CERN/ITEP(Moscow), 19-Aug-07 |
---|
35 | // The last update: M.V. Kossov, CERN/ITEP (Moscow) 19-Aug-07 |
---|
36 | //----------------------------------------------------------------------------------------- |
---|
37 | // In this class, just as an experiment the real PDG codes (not CHIPS) are used |
---|
38 | //----------------------------------------------------------------------------------------- |
---|
39 | // |
---|
40 | // **************************************************************************************** |
---|
41 | // ********* This HEADER is temporary moved from the chips/interface directory ********* |
---|
42 | // ******* DO NOT MAKE ANY CHANGE! With time it'll move back to photolepton...(M.K.) ****** |
---|
43 | // **************************************************************************************** |
---|
44 | |
---|
45 | #ifndef G4QIonIonCrossSection_h |
---|
46 | #define G4QIonIonCrossSection_h 1 |
---|
47 | |
---|
48 | #include "G4ParticleTable.hh" |
---|
49 | #include "G4NucleiProperties.hh" |
---|
50 | #include <vector> |
---|
51 | #include "G4VQCrossSection.hh" |
---|
52 | #include "G4QPDGCode.hh" |
---|
53 | #include "G4QElasticCrossSection.hh" |
---|
54 | #include "G4QProtonNuclearCrossSection.hh" |
---|
55 | #include "G4QNeutronNuclearCrossSection.hh" |
---|
56 | |
---|
57 | |
---|
58 | class G4QIonIonCrossSection : public G4VQCrossSection |
---|
59 | { |
---|
60 | protected: |
---|
61 | |
---|
62 | G4QIonIonCrossSection() {} |
---|
63 | |
---|
64 | public: |
---|
65 | |
---|
66 | ~G4QIonIonCrossSection() {} |
---|
67 | |
---|
68 | static G4VQCrossSection* GetPointer(); // Gives a pointer to this singletone |
---|
69 | |
---|
70 | // At present momentum (pMom) must be in GeV(@@ Units),fCS=true:Inelastic, =false:Elastic |
---|
71 | virtual G4double GetCrossSection(G4bool fCS, G4double pMom, G4int Z, G4int N, G4int PDG); |
---|
72 | |
---|
73 | // Momentum=p/A (MeV/c) |
---|
74 | G4double CalculateCrossSection(G4bool fCS, G4int F, G4int I, G4int PDG, |
---|
75 | G4int tZ, G4int tN, G4double Momentum); |
---|
76 | |
---|
77 | G4double ThresholdMomentum(G4int pZ, G4int pN, G4int tZ, G4int tN);// P-Threshold(MeV/c) |
---|
78 | |
---|
79 | private: |
---|
80 | G4int GetFunctions(G4int pZ, G4int pN, G4int tZ, G4int tN, |
---|
81 | G4double* LI, G4double* HI, // Inelastic |
---|
82 | G4double* LE, G4double* HE); // Elastic |
---|
83 | |
---|
84 | G4double CalculateTotal(G4double pA, G4double tA, G4double Momentum); |
---|
85 | G4double CalculateElTot(G4double pA, G4double tA, G4double Momentum); |
---|
86 | // Momentum=p/A (MeV/c), first=InelasticCS, second=elasticCS (mb) |
---|
87 | std::pair<G4double,G4double> CalculateXS(G4int pZ,G4int pN,G4int tZ,G4int tN,G4double P); |
---|
88 | |
---|
89 | // Body |
---|
90 | private: |
---|
91 | static G4double* lastLENI;// Pointer to the last array of LowEnergy Inel cross sections |
---|
92 | static G4double* lastHENI;// Pointer to the last array of HighEnergy Inel cross sections |
---|
93 | static G4double* lastLENE;// Pointer to the last array of LowEnergy Elast cross sections |
---|
94 | static G4double* lastHENE;// Pointer to the last array of HighEnergy Elast cross sections |
---|
95 | static G4double lastE; // Last used in the cross section Energy |
---|
96 | static G4int lastPDG; // The last projectile PDG |
---|
97 | static G4int lastN; // The last N of calculated nucleus |
---|
98 | static G4int lastZ; // The last Z of calculated nucleus |
---|
99 | static G4double lastP; // Last used in the cross section Momentum |
---|
100 | static G4double lastTH; // Last value of the Momentum Threshold |
---|
101 | static G4double lastICS; // Last value of the Inelastic Cross Section |
---|
102 | static G4double lastECS; // Last value of the Elastic Cross Section |
---|
103 | static G4int lastI; // The last position in the DAMDB |
---|
104 | }; |
---|
105 | |
---|
106 | #endif |
---|