|
||||
File indexing completed on 2025-01-18 09:58:31
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 0027 #ifndef G4IonICRU73Data_h 0028 #define G4IonICRU73Data_h 1 0029 0030 //--------------------------------------------------------------------------- 0031 // 0032 // ClassName: G4IonICRU73Data 0033 // 0034 // Description: Data on stopping power 0035 // 0036 // Author: Vladimir Ivanchenko 0037 // 0038 // Creation date: 23.10.2021 0039 // 0040 // Class Description: 0041 // 0042 // Container for parameterised data on ion stopping power 0043 // 0044 0045 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0046 0047 #include <vector> 0048 #include <iostream> 0049 #include "globals.hh" 0050 0051 class G4PhysicsLogVector; 0052 class G4PhysicsFreeVector; 0053 class G4Material; 0054 0055 class G4IonICRU73Data 0056 { 0057 public: 0058 0059 explicit G4IonICRU73Data(); 0060 0061 ~G4IonICRU73Data(); 0062 0063 // should be called before each run 0064 void Initialise(); 0065 0066 // Z - atomic number of the projectile 0067 // e - energy per nucleon, loge = log(e) 0068 // if data for a given combination Z/material exist the DEDX > 0. 0069 G4double GetDEDX(const G4Material*, const G4int Z, 0070 const G4double e, const G4double loge) const; 0071 0072 // hide assignment operator 0073 G4IonICRU73Data & operator = (const G4IonICRU73Data &right) = delete; 0074 G4IonICRU73Data(const G4IonICRU73Data&) = delete; 0075 0076 private: 0077 0078 void ReadMaterialData(const G4Material* mat, const G4double fact, 0079 const G4bool type); 0080 0081 void ReadElementData(const G4Material* mat, G4bool type); 0082 0083 G4PhysicsLogVector* FindOrBuildElementData(const G4int Z, 0084 const G4int Z1, 0085 G4bool useICRU90); 0086 0087 G4PhysicsLogVector* RetrieveVector(std::ostringstream& in, 0088 G4bool warn); 0089 0090 G4double fEmin; 0091 G4double fEmax; 0092 0093 std::vector<G4int> fMatIndex; 0094 // projectile (3<= Z <= 80), target element (1 <= Z <= 92) 0095 const G4int ZPROJMAX = 80; 0096 const G4int ZTARGMAX = 92; 0097 std::vector<G4PhysicsLogVector*>* fMatData[81] = {nullptr}; 0098 G4PhysicsLogVector* fElmData[81][93] = {{nullptr}}; 0099 G4PhysicsFreeVector* fVector = nullptr; 0100 0101 G4int fNbins = 0; 0102 G4int fNbinsPerDecade = 10; 0103 G4int fVerbose = 0; 0104 G4bool fSpline = false; 0105 G4String fDataDirectory = ""; 0106 }; 0107 0108 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0109 0110 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |