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
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044 #ifndef G4PHOTONEVAPORATION_HH
0045 #define G4PHOTONEVAPORATION_HH 1
0046
0047 #include "globals.hh"
0048 #include "G4VEvaporationChannel.hh"
0049 #include "G4NuclearLevelData.hh"
0050 #include "G4LevelManager.hh"
0051 #include "G4Fragment.hh"
0052
0053 class G4GammaTransition;
0054
0055 class G4PhotonEvaporation : public G4VEvaporationChannel {
0056
0057 public:
0058
0059 explicit G4PhotonEvaporation(G4GammaTransition* ptr=nullptr);
0060
0061 ~G4PhotonEvaporation() override;
0062
0063 void Initialise() override;
0064
0065
0066 G4Fragment* EmittedFragment(G4Fragment* theNucleus) override;
0067
0068
0069 G4bool
0070 BreakUpChain(G4FragmentVector* theResult, G4Fragment* theNucleus) override;
0071
0072
0073 G4FragmentVector* BreakItUp(const G4Fragment& theNucleus);
0074
0075
0076
0077 G4double GetEmissionProbability(G4Fragment* theNucleus) override;
0078
0079
0080 G4double ComputeInverseXSection(G4Fragment* theNucleus,
0081 G4double kinEnergy) override;
0082 G4double ComputeProbability(G4Fragment* theNucleus,
0083 G4double kinEnergy) override;
0084
0085 G4double GetFinalLevelEnergy(G4int Z, G4int A, G4double energy);
0086
0087 G4double GetUpperLevelEnergy(G4int Z, G4int A);
0088
0089 void SetGammaTransition(G4GammaTransition*);
0090
0091 void SetICM(G4bool) override;
0092
0093 void RDMForced (G4bool) override;
0094
0095 inline void SetVerboseLevel(G4int verbose);
0096
0097 inline G4int GetVacantShellNumber() const;
0098
0099 G4PhotonEvaporation(const G4PhotonEvaporation & right) = delete;
0100 const G4PhotonEvaporation & operator =
0101 (const G4PhotonEvaporation & right) = delete;
0102
0103 private:
0104
0105 void InitialiseGRData();
0106
0107 G4Fragment* GenerateGamma(G4Fragment* nucleus);
0108
0109 inline void InitialiseLevelManager(G4int Z, G4int A);
0110
0111 G4NuclearLevelData* fNuclearLevelData;
0112 const G4LevelManager* fLevelManager{nullptr};
0113 G4GammaTransition* fTransition;
0114
0115
0116
0117 G4NuclearPolarization* fPolarization{nullptr};
0118
0119 G4int fVerbose;
0120 G4int theZ{0};
0121 G4int theA{0};
0122 G4int fPoints{0};
0123 G4int fCode{0};
0124 G4int vShellNumber{-1};
0125 G4int MAXDEPOINT{10};
0126 std::size_t fIndex{0};
0127
0128 G4int fSecID;
0129
0130 G4double fLevelEnergyMax{0.0};
0131 G4double fExcEnergy{0.0};
0132 G4double fProbability{0.0};
0133 G4double fStep{0.0};
0134 G4double fMaxLifeTime{DBL_MAX};
0135
0136 G4double fTolerance;
0137
0138 G4bool fICM{true};
0139 G4bool fRDM{false};
0140 G4bool fSampleTime{true};
0141 G4bool fCorrelatedGamma{false};
0142 G4bool isInitialised{false};
0143
0144 static const G4int MAXGRDATA{300};
0145 static G4float GREnergy[MAXGRDATA];
0146 static G4float GRWidth[MAXGRDATA];
0147
0148 G4double fCummProbability[10] = {0.0};
0149 };
0150
0151 inline void G4PhotonEvaporation::SetVerboseLevel(G4int verbose)
0152 {
0153 fVerbose = verbose;
0154 }
0155
0156 inline void
0157 G4PhotonEvaporation::InitialiseLevelManager(G4int Z, G4int A)
0158 {
0159 if(Z != theZ || A != theA) {
0160 theZ = Z;
0161 theA = A;
0162 fIndex = 0;
0163 fLevelManager = fNuclearLevelData->GetLevelManager(theZ, theA);
0164 fLevelEnergyMax = fLevelManager ? fLevelManager->MaxLevelEnergy() : 0.0;
0165 }
0166 }
0167
0168 inline G4int G4PhotonEvaporation::GetVacantShellNumber() const
0169 {
0170 return vShellNumber;
0171 }
0172
0173 #endif