File indexing completed on 2025-01-18 09:58:55
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 #ifndef G4PhotoNuclearCrossSection_h
0032 #define G4PhotoNuclearCrossSection_h 1
0033
0034 #include "G4VCrossSectionDataSet.hh"
0035 #include "G4DynamicParticle.hh"
0036 #include "G4Element.hh"
0037 #include "G4ParticleTable.hh"
0038 #include "G4NucleiProperties.hh"
0039 #include "G4NistManager.hh"
0040 #include <vector>
0041
0042 class G4PhotoNuclearCrossSection : public G4VCrossSectionDataSet
0043 {
0044 public:
0045
0046 G4PhotoNuclearCrossSection();
0047 virtual ~G4PhotoNuclearCrossSection();
0048
0049 static const char* Default_Name() {return "PhotoNuclearXS";}
0050
0051 virtual void CrossSectionDescription(std::ostream&) const;
0052
0053 virtual G4bool
0054 IsIsoApplicable(const G4DynamicParticle* particle, G4int Z, G4int A,
0055 const G4Element* elm = 0, const G4Material* mat = 0);
0056
0057 virtual G4bool
0058 IsElementApplicable(const G4DynamicParticle* particle, G4int Z,
0059 const G4Material*);
0060
0061 virtual G4double
0062 GetIsoCrossSection(const G4DynamicParticle* dynPart,
0063 G4int Z, G4int A,
0064 const G4Isotope*,
0065 const G4Element* elm,
0066 const G4Material* mat);
0067
0068 virtual G4double
0069 GetElementCrossSection(const G4DynamicParticle*, G4int Z,
0070 const G4Material*);
0071
0072 private:
0073
0074 G4int GetFunctions(G4double a, G4double* y, G4double* z);
0075 G4double EquLinearFit(G4double X, G4int N, const G4double X0,
0076 const G4double XD, const G4double* Y);
0077 G4double ThresholdEnergy(G4int Z, G4int N);
0078
0079
0080 private:
0081
0082 G4int lastZ = 0;
0083 G4double lastSig = 0.0;
0084 G4double* lastGDR = nullptr;
0085 G4double* lastHEN = nullptr;
0086 G4double lastE = 0.0;
0087 G4double lastTH = 0.0;
0088 G4double lastSP = 0.0;
0089
0090
0091 std::vector <G4double*> GDR;
0092
0093
0094 G4double* deuteron_GDR = nullptr;
0095 G4double* deuteron_HR = nullptr;
0096 G4double deuteron_TH = 0.0;
0097 G4double deuteron_SP = 0.0;
0098 G4double* triton_GDR = nullptr;
0099 G4double* triton_HR = nullptr;
0100 G4double triton_TH = 0.0;
0101 G4double triton_SP = 0.0;
0102 G4double* he3_GDR = nullptr;
0103 G4double* he3_HR = nullptr;
0104 G4double he3_TH = 0.0;
0105 G4double he3_SP = 0.0;
0106
0107
0108 std::vector <G4double*> HEN;
0109
0110 std::vector <G4double> spA;
0111 std::vector <G4double> eTH;
0112
0113 G4NistManager* nistmngr;
0114
0115 G4double mNeut;
0116 G4double mProt;
0117 };
0118
0119 #endif