|
||||
File indexing completed on 2025-01-18 09:58:14
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 G4ESTARStopping_h 0028 #define G4ESTARStopping_h 1 0029 0030 //--------------------------------------------------------------------------- 0031 // 0032 // ClassName: G4ESTARStopping 0033 // 0034 // Description: Data on stopping power 0035 // 0036 // Author: Anton Ivantchenko 18.04.2006 0037 // 0038 // Organisation: QinetiQ Ltd, UK 0039 // Customer: ESA/ESTEC, NOORDWIJK 0040 // Contract: CSMAN-5288 0041 // 0042 // Modifications: 0043 // 0044 //---------------------------------------------------------------------------- 0045 // 0046 // Class Description: 0047 // 0048 // Data on Stopping Powers from the NIST Data Base 0049 // http://physics.nist.gov/PhysRefData/STAR/Text/ESTAR.html 0050 // 0051 0052 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 0053 0054 0055 #include "globals.hh" 0056 #include "G4PhysicsFreeVector.hh" 0057 #include <vector> 0058 0059 class G4Material; 0060 0061 class G4ESTARStopping 0062 { 0063 public: 0064 0065 explicit G4ESTARStopping(const G4String& datatype = ""); 0066 0067 ~G4ESTARStopping(); 0068 0069 G4int GetIndex(const G4Material*); 0070 0071 G4double GetElectronicDEDX(G4int idx, G4double energy); 0072 0073 inline G4double GetElectronicDEDX(const G4Material*, G4double energy); 0074 0075 // hide assignment operator 0076 G4ESTARStopping & operator=(const G4ESTARStopping &right) = delete; 0077 G4ESTARStopping(const G4ESTARStopping&) = delete; 0078 0079 private: 0080 0081 void Initialise(); 0082 0083 void AddData(const G4double* energy, const G4double* xs, G4int idx); 0084 0085 const G4Material* currentMaterial = nullptr; 0086 0087 G4int type = 0; 0088 G4int matIndex = -1; 0089 std::vector<G4PhysicsFreeVector*> sdata; 0090 std::vector<G4String> name; 0091 }; 0092 0093 inline G4double G4ESTARStopping::GetElectronicDEDX(const G4Material* mat, 0094 G4double energy) 0095 { 0096 return GetElectronicDEDX(GetIndex(mat), energy); 0097 } 0098 0099 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |