Geant4 Cross Reference |
1 // 1 2 // ******************************************* 3 // * License and Disclaimer 4 // * 5 // * The Geant4 software is copyright of th 6 // * the Geant4 Collaboration. It is provided 7 // * conditions of the Geant4 Software License 8 // * LICENSE and available at http://cern.ch/ 9 // * include a list of copyright holders. 10 // * 11 // * Neither the authors of this software syst 12 // * institutes,nor the agencies providing fin 13 // * work make any representation or warran 14 // * regarding this software system or assum 15 // * use. Please see the license in the file 16 // * for the full disclaimer and the limitatio 17 // * 18 // * This code implementation is the result 19 // * technical work of the GEANT4 collaboratio 20 // * By using, copying, modifying or distri 21 // * any work based on the software) you ag 22 // * use in resulting scientific publicati 23 // * acceptance of all terms of the Geant4 Sof 24 // ******************************************* 25 // 26 // 27 // ------------------------------------------- 28 // 29 // GEANT4 Class header file 30 // 31 // File name: G4GSPWACorrections 32 // 33 // Author: Mihaly Novak 34 // 35 // Creation date: 17.10.2017 36 // 37 // Modifications: 38 // 39 // Class description: class to describe and st 40 // integrated quantities of G4GoudsmitSaunde 41 // first and second moments) derived by usin 42 // integrated quantities. 43 // 44 // ------------------------------------------- 45 46 #ifndef G4GSPWACorrections_h 47 #define G4GSPWACorrections_h 1 48 49 #include <CLHEP/Units/SystemOfUnits.h> 50 51 #include "globals.hh" 52 53 #include <vector> 54 #include <string> 55 #include <sstream> 56 57 class G4Material; 58 class G4Element; 59 60 61 class G4GSPWACorrections { 62 public: 63 G4GSPWACorrections(G4bool iselectron=true); 64 65 ~G4GSPWACorrections(); 66 67 void Initialise(); 68 69 void GetPWACorrectionFactors(G4double lo 70 G4double &c 71 private: 72 void InitDataPerElement(); 73 74 void InitDataPerMaterials(); 75 76 void LoadDataElement(const G4Element*); 77 78 void InitDataMaterial(const G4Material*) 79 80 void ClearDataPerElement(); 81 82 void ClearDataPerMaterial(); 83 84 // either per material or per Z 85 struct DataPerMaterial { 86 std::vector<G4double> fCorScreening; 87 std::vector<G4double> fCorFirstMoment; 88 std::vector<G4double> fCorSecondMoment; 89 }; 90 91 92 // data members 93 private: 94 G4bool fIsElectron; 95 static constexpr G4int gMaxZet = 98; 96 static constexpr G4int gNumEkin = 31; 97 static constexpr G4int gNumBeta2 = 16; 98 static constexpr G4double gMinEkin = 1. 99 static constexpr G4double gMidEkin = 100. 100 static constexpr G4double gMaxBeta2 = 0. 101 // 102 G4double fMaxEkin; 103 G4double fLogMinEkin; 104 G4double fInvLogDelEkin; 105 G4double fMinBeta2; 106 G4double fInvDelBeta2; 107 // 108 static const std::string gElemSymbols[]; 109 // 110 std::vector<DataPerMaterial*> fDataPerEleme 111 std::vector<DataPerMaterial*> fDataPerMater 112 113 }; 114 115 #endif 116