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: G4SimpleMaterialStoppingICRU73.hh,v 1.6 2009/03/18 10:14:49 alechner Exp $ |
---|
27 | // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ |
---|
28 | |
---|
29 | #ifndef G4SimpleMaterialStoppingICRU73_h |
---|
30 | #define G4SimpleMaterialStoppingICRU73_h 1 |
---|
31 | |
---|
32 | //--------------------------------------------------------------------------- |
---|
33 | // |
---|
34 | // ClassName: G4SimpleMaterialStoppingICRU73 |
---|
35 | // |
---|
36 | // Description: Data on stopping powers for light ions in compounds |
---|
37 | // |
---|
38 | // Author: Ivantchenko 10.07.2008 |
---|
39 | // |
---|
40 | // Modifications: |
---|
41 | // |
---|
42 | //---------------------------------------------------------------------------- |
---|
43 | // |
---|
44 | // Class Description: |
---|
45 | // |
---|
46 | // Data on Stopping Powers from the ICRU73 report |
---|
47 | // |
---|
48 | |
---|
49 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
50 | |
---|
51 | |
---|
52 | #include "globals.hh" |
---|
53 | #include "G4VIonDEDXTable.hh" |
---|
54 | #include "G4LPhysicsFreeVector.hh" |
---|
55 | #include <vector> |
---|
56 | #include <utility> |
---|
57 | #include <map> |
---|
58 | |
---|
59 | |
---|
60 | class G4SimpleMaterialStoppingICRU73 : public G4VIonDEDXTable |
---|
61 | { |
---|
62 | public: |
---|
63 | |
---|
64 | G4SimpleMaterialStoppingICRU73(G4bool splineFlag = true); |
---|
65 | |
---|
66 | ~G4SimpleMaterialStoppingICRU73(); |
---|
67 | |
---|
68 | G4bool IsApplicable(G4int ionZ, |
---|
69 | G4int matZ); |
---|
70 | |
---|
71 | G4bool IsApplicable(G4int ionZ, |
---|
72 | const G4String& matName); |
---|
73 | |
---|
74 | G4PhysicsVector* GetPhysicsVector(G4int ionZ, |
---|
75 | G4int matZ); |
---|
76 | |
---|
77 | G4PhysicsVector* GetPhysicsVector(G4int ionZ, |
---|
78 | const G4String& matName); |
---|
79 | |
---|
80 | G4double GetDEDX(G4double kinEnergyPerNucleon, |
---|
81 | G4int ionZ, |
---|
82 | const G4String& matName); |
---|
83 | |
---|
84 | G4double GetDEDX(G4double kinEnergyPerNucleon, |
---|
85 | G4int ionZ, |
---|
86 | G4int matZ); |
---|
87 | |
---|
88 | private: |
---|
89 | // Function for creating a physics vector |
---|
90 | G4PhysicsVector* CreatePhysicsVector(G4double* energy, |
---|
91 | G4double* stoppower, |
---|
92 | G4double factor); |
---|
93 | |
---|
94 | // Assignment operator and copy constructor |
---|
95 | G4SimpleMaterialStoppingICRU73 & |
---|
96 | operator=(const G4SimpleMaterialStoppingICRU73 &right); |
---|
97 | G4SimpleMaterialStoppingICRU73(const G4SimpleMaterialStoppingICRU73&); |
---|
98 | |
---|
99 | // Flag indicating the use of spline interpolation for dE/dx vectors |
---|
100 | G4bool spline; |
---|
101 | |
---|
102 | // Minimum and maximum atomic number |
---|
103 | G4int minIonAtomicNmb; |
---|
104 | G4int maxIonAtomicNmb; |
---|
105 | |
---|
106 | // Vectors containing the atomic numbers and names of the materials |
---|
107 | std::vector<G4int> atomicNumbersMat; |
---|
108 | std::vector<G4String> namesMat; |
---|
109 | |
---|
110 | // Keys (ion atomic number and material names) corresponding to created |
---|
111 | // dE/dx vectors |
---|
112 | typedef std::pair<G4int, G4String> DEDXKey; |
---|
113 | std::vector<DEDXKey> dedxKeys; |
---|
114 | |
---|
115 | // Vector of dE/dx vectors |
---|
116 | std::vector<G4PhysicsVector*> dedx; |
---|
117 | }; |
---|
118 | |
---|
119 | |
---|
120 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
121 | |
---|
122 | #endif |
---|