|
|
|||
File indexing completed on 2026-09-12 09:10:59
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 // G4InuclSpecialFunctions namespace 0027 // 0028 // Original Author: Aatos Heikkinen, 2002 0029 // -------------------------------------------------------------------- 0030 #ifndef G4INUCL_SPECIAL_FUNC_HH 0031 #define G4INUCL_SPECIAL_FUNC_HH 0032 0033 #include "globals.hh" 0034 #include "G4LorentzVector.hh" 0035 #include <algorithm> 0036 #include <vector> 0037 0038 template <int N> class G4CascadeInterpolator; 0039 0040 namespace G4InuclSpecialFunctions 0041 { 0042 G4double bindingEnergy(G4int A, G4int Z); 0043 0044 // NOTE: Used only by G4Fissioner 0045 G4double bindingEnergyAsymptotic(G4int A, G4int Z); 0046 0047 G4double FermiEnergy(G4int A, G4int Z, G4int ntype); 0048 0049 G4double getAL(G4int A); 0050 0051 G4double csNN(G4double e); 0052 0053 G4double csPN(G4double e); 0054 0055 G4double G4cbrt(G4double x); // Use std::cbrt from <cmath> 0056 G4double G4cbrt(G4int n); // Use G4Pow::powN() here for speedup 0057 0058 G4double randomInuclPowers(G4double ekin, // Power series in Ekin, S 0059 const G4double (&coeff)[4][4]); 0060 0061 G4double randomGauss(G4double sigma); // Gaussian distribution 0062 0063 G4double randomPHI(); 0064 0065 std::pair<G4double, G4double> randomCOS_SIN(); 0066 0067 G4double nucleiLevelDensity(G4int A); 0068 0069 // Optional mass argument will be used to fill G4LorentzVector correctly 0070 G4LorentzVector generateWithFixedTheta(G4double ct, G4double p, 0071 G4double mass=0.); 0072 0073 G4LorentzVector generateWithRandomAngles(G4double p, G4double mass=0.); 0074 0075 // This is an object to be instantiated by client code 0076 class paraMaker 0077 { 0078 public: 0079 0080 paraMaker(G4int verbose=0); 0081 ~paraMaker(); 0082 0083 paraMaker(const paraMaker& right) = delete; 0084 paraMaker& operator=(const paraMaker& right) = delete; 0085 0086 // NOTE: Passing Z as double here, to be used as interpolation argument 0087 void getParams(G4double Z, std::pair<std::vector<G4double>, 0088 std::vector<G4double> >& parms); 0089 0090 void getTruncated(G4double Z, std::pair<G4double, G4double>& parms); 0091 0092 private: 0093 0094 G4int verboseLevel; 0095 G4CascadeInterpolator<5>* interp; 0096 }; 0097 } 0098 0099 0100 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|