source: trunk/source/materials/include/G4MaterialStoppingICRU73.hh @ 1059

Last change on this file since 1059 was 1058, checked in by garnier, 15 years ago

file release beta

File size: 4.2 KB
Line 
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: G4MaterialStoppingICRU73.hh,v 1.5 2009/03/18 10:14:49 alechner Exp $
27// GEANT4 tag $Name: geant4-09-03-beta-cand-01 $
28
29#ifndef G4MaterialStoppingICRU73_h
30#define G4MaterialStoppingICRU73_h 1
31
32//---------------------------------------------------------------------------
33//
34// ClassName:   G4MaterialStoppingICRU73
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
57
58class G4MaterialStoppingICRU73 : public G4VIonDEDXTable
59{
60public:
61
62  G4MaterialStoppingICRU73(G4bool splineFlag = true);
63
64  ~G4MaterialStoppingICRU73();
65
66  G4bool IsApplicable(G4int ionZ, 
67                      const G4String& matName);
68
69  G4bool IsApplicable(G4int ionZ, 
70                      G4int matZ);
71
72  G4PhysicsVector* GetPhysicsVector(G4int ionZ, 
73                                    const G4String& matName);
74
75  G4PhysicsVector* GetPhysicsVector(G4int ionZ, 
76                                    G4int matZ);
77
78  G4double GetDEDX(G4double kinEnergyPerNucleon,
79                   G4int ionZ,
80                   const G4String& matName);
81
82  G4double GetDEDX(G4double kinEnergyPerNucleon,
83                   G4int ionZ,
84                   G4int matZ);
85
86private:
87  // Function for creating a physics vector
88  G4PhysicsVector* CreatePhysicsVector(G4double* energy, 
89                                       G4double* stoppower, 
90                                       G4double factor);
91
92  // Assignment operator and copy constructor
93  G4MaterialStoppingICRU73 & 
94                       operator=(const G4MaterialStoppingICRU73 &right);
95  G4MaterialStoppingICRU73(const G4MaterialStoppingICRU73&);
96
97  // Flag indicating the use of spline interpolation for dE/dx vectors
98  G4bool spline;
99
100  // Minimum and maximum atomic number
101  G4int minIonAtomicNmb;
102  G4int maxIonAtomicNmb;
103
104  // Vector containing the names of the materials
105  std::vector<G4String> namesMat;
106
107  // Keys (ion atomic number and material names) corresponding to created
108  // dE/dx vectors
109  typedef std::pair<G4int, G4String> DEDXKey;
110  std::vector<DEDXKey> dedxKeys;
111
112  // Vector of dE/dx vectors
113  std::vector<G4PhysicsVector*> dedx;
114};
115
116
117//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
118
119#endif
Note: See TracBrowser for help on using the repository browser.