|
|
|||
File indexing completed on 2026-08-01 09:07:26
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 // ---------------------------------------------------------------------------- 0028 // 0029 // GEANT4 Class header file 0030 // 0031 // File name: G4GSPWACorrections 0032 // 0033 // Author: Mihaly Novak 0034 // 0035 // Creation date: 17.10.2017 0036 // 0037 // Modifications: 0038 // 0039 // Class description: class to describe and store correction factors to the 0040 // integrated quantities of G4GoudsmitSaundersonMscModel (screening parameter, 0041 // first and second moments) derived by using accurate Dirac-PWA based 0042 // integrated quantities. 0043 // 0044 // References: 0045 // M. Novak: https://arxiv.org/abs/2410.13361 0046 // 0047 // ---------------------------------------------------------------------------- 0048 0049 #ifndef G4GSPWACorrections_h 0050 #define G4GSPWACorrections_h 1 0051 0052 #include <CLHEP/Units/SystemOfUnits.h> 0053 0054 #include "globals.hh" 0055 0056 #include <vector> 0057 #include <string> 0058 #include <sstream> 0059 0060 class G4Material; 0061 class G4Element; 0062 0063 0064 class G4GSPWACorrections { 0065 public: 0066 G4GSPWACorrections(G4bool iselectron=true); 0067 0068 ~G4GSPWACorrections(); 0069 0070 void Initialise(); 0071 0072 void GetPWACorrectionFactors(G4double logekin, G4double beta2, G4int matindx, 0073 G4double &corToScr, G4double &corToQ1, G4double &corToG2PerG1); 0074 private: 0075 void InitDataPerElement(); 0076 0077 void InitDataPerMaterials(); 0078 0079 void LoadDataElement(const G4Element*); 0080 0081 void InitDataMaterial(const G4Material*); 0082 0083 void ClearDataPerElement(); 0084 0085 void ClearDataPerMaterial(); 0086 0087 // either per material or per Z 0088 struct DataPerMaterial { 0089 std::vector<G4double> fCorScreening; // correction factor to Moliere screening parameter 0090 std::vector<G4double> fCorFirstMoment; // correction factor to first moment 0091 std::vector<G4double> fCorSecondMoment; // correction factor to second 0092 }; 0093 0094 0095 // data members 0096 private: 0097 G4bool fIsElectron; 0098 static constexpr G4int gMaxZet = 98; // max. Z for which correction data were computed (98) 0099 static constexpr G4int gNumEkin = 31; // number of kinetic energy grid points for Mott correction 0100 static constexpr G4int gNumBeta2 = 16; // \beta^2 values between [fMinBeta2-fMaxBeta2] 0101 static constexpr G4double gMinEkin = 1.*CLHEP::keV; // minimum kinetic energy value 0102 static constexpr G4double gMidEkin = 100.*CLHEP::keV; // kinetic energy at the border of the E_{kin}-\beta^2 grids 0103 static constexpr G4double gMaxBeta2 = 0.9999; // maximum \beta^2 value 0104 // 0105 G4double fMaxEkin; // from max fMaxBeta2 = 0.9999 (~50.5889 [MeV]) 0106 G4double fLogMinEkin; // \ln[fMinEkin] 0107 G4double fInvLogDelEkin; // 1/[\ln(fMidEkin/fMinEkin)/(fNumEkin-fNumBeta2)] 0108 G4double fMinBeta2; // <= E_{kin}=100 [keV] (~0.300546) 0109 G4double fInvDelBeta2; // 1/[(fMaxBeta2-fMinBeta2)/(fNumBeta2-1)] 0110 // 0111 static const std::string gElemSymbols[]; 0112 // 0113 std::vector<DataPerMaterial*> fDataPerElement; // size will be gMaxZet+1; won't be null only at used Z indices 0114 std::vector<DataPerMaterial*> fDataPerMaterial; // size will #materials; won't be null only at used mat. indices 0115 0116 }; 0117 0118 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|