[986] | 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 | // |
---|
[1196] | 26 | // $Id: G4SimpleMaterialStoppingICRU73.hh,v 1.8 2009/11/09 16:51:07 vnivanch Exp $ |
---|
| 27 | // GEANT4 tag $Name: materials-V09-02-18 $ |
---|
[986] | 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 | // |
---|
[1196] | 40 | // in the framework of the ESA Technology Research Programme |
---|
| 41 | // (ESA contract 21435/08/NL/AT) |
---|
| 42 | // |
---|
[986] | 43 | // Modifications: |
---|
[1196] | 44 | // 03.11.2009 A. Lechner: Added new methods BuildPhysicsVector according |
---|
| 45 | // to interface changes in base class G4VIonDEDXTable. |
---|
[986] | 46 | // |
---|
| 47 | //---------------------------------------------------------------------------- |
---|
| 48 | // |
---|
| 49 | // Class Description: |
---|
| 50 | // |
---|
| 51 | // Data on Stopping Powers from the ICRU73 report |
---|
| 52 | // |
---|
| 53 | |
---|
| 54 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | #include "globals.hh" |
---|
[1058] | 58 | #include "G4VIonDEDXTable.hh" |
---|
[986] | 59 | #include "G4LPhysicsFreeVector.hh" |
---|
| 60 | #include <vector> |
---|
[1058] | 61 | #include <utility> |
---|
| 62 | #include <map> |
---|
[986] | 63 | |
---|
[1058] | 64 | |
---|
| 65 | class G4SimpleMaterialStoppingICRU73 : public G4VIonDEDXTable |
---|
[986] | 66 | { |
---|
| 67 | public: |
---|
| 68 | |
---|
| 69 | G4SimpleMaterialStoppingICRU73(G4bool splineFlag = true); |
---|
| 70 | |
---|
| 71 | ~G4SimpleMaterialStoppingICRU73(); |
---|
| 72 | |
---|
[1196] | 73 | G4bool BuildPhysicsVector(G4int ionZ, |
---|
| 74 | const G4String& matName); |
---|
| 75 | |
---|
| 76 | G4bool BuildPhysicsVector(G4int ionZ, |
---|
| 77 | G4int matZ); |
---|
| 78 | |
---|
[1058] | 79 | G4bool IsApplicable(G4int ionZ, |
---|
| 80 | G4int matZ); |
---|
[986] | 81 | |
---|
[1058] | 82 | G4bool IsApplicable(G4int ionZ, |
---|
| 83 | const G4String& matName); |
---|
[986] | 84 | |
---|
[1058] | 85 | G4PhysicsVector* GetPhysicsVector(G4int ionZ, |
---|
| 86 | G4int matZ); |
---|
[986] | 87 | |
---|
[1058] | 88 | G4PhysicsVector* GetPhysicsVector(G4int ionZ, |
---|
| 89 | const G4String& matName); |
---|
[986] | 90 | |
---|
[1058] | 91 | G4double GetDEDX(G4double kinEnergyPerNucleon, |
---|
| 92 | G4int ionZ, |
---|
| 93 | const G4String& matName); |
---|
[986] | 94 | |
---|
[1058] | 95 | G4double GetDEDX(G4double kinEnergyPerNucleon, |
---|
| 96 | G4int ionZ, |
---|
| 97 | G4int matZ); |
---|
[986] | 98 | |
---|
| 99 | private: |
---|
[1058] | 100 | // Function for creating a physics vector |
---|
| 101 | G4PhysicsVector* CreatePhysicsVector(G4double* energy, |
---|
| 102 | G4double* stoppower, |
---|
| 103 | G4double factor); |
---|
[986] | 104 | |
---|
[1058] | 105 | // Assignment operator and copy constructor |
---|
| 106 | G4SimpleMaterialStoppingICRU73 & |
---|
| 107 | operator=(const G4SimpleMaterialStoppingICRU73 &right); |
---|
| 108 | G4SimpleMaterialStoppingICRU73(const G4SimpleMaterialStoppingICRU73&); |
---|
[986] | 109 | |
---|
[1058] | 110 | // Flag indicating the use of spline interpolation for dE/dx vectors |
---|
| 111 | G4bool spline; |
---|
[986] | 112 | |
---|
[1058] | 113 | // Minimum and maximum atomic number |
---|
| 114 | G4int minIonAtomicNmb; |
---|
| 115 | G4int maxIonAtomicNmb; |
---|
[986] | 116 | |
---|
[1058] | 117 | // Vectors containing the atomic numbers and names of the materials |
---|
| 118 | std::vector<G4int> atomicNumbersMat; |
---|
| 119 | std::vector<G4String> namesMat; |
---|
[986] | 120 | |
---|
[1058] | 121 | // Keys (ion atomic number and material names) corresponding to created |
---|
| 122 | // dE/dx vectors |
---|
| 123 | typedef std::pair<G4int, G4String> DEDXKey; |
---|
| 124 | std::vector<DEDXKey> dedxKeys; |
---|
[986] | 125 | |
---|
[1058] | 126 | // Vector of dE/dx vectors |
---|
| 127 | std::vector<G4PhysicsVector*> dedx; |
---|
[986] | 128 | }; |
---|
| 129 | |
---|
| 130 | |
---|
| 131 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
| 132 | |
---|
| 133 | #endif |
---|