File indexing completed on 2025-01-18 09:58:57
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
0045
0046
0047
0048 #ifndef G4PreCompoundModel_h
0049 #define G4PreCompoundModel_h 1
0050
0051 #include "G4VPreCompoundModel.hh"
0052 #include "G4Fragment.hh"
0053 #include "G4ReactionProductVector.hh"
0054 #include "G4ReactionProduct.hh"
0055 #include "G4ExcitationHandler.hh"
0056
0057 class G4PreCompoundEmission;
0058 class G4VPreCompoundTransitions;
0059 class G4NuclearLevelData;
0060 class G4ParticleDefinition;
0061
0062 class G4PreCompoundModel : public G4VPreCompoundModel
0063 {
0064 public:
0065
0066 explicit G4PreCompoundModel(G4ExcitationHandler* ptr = nullptr);
0067
0068 virtual ~G4PreCompoundModel();
0069
0070 virtual G4HadFinalState * ApplyYourself(const G4HadProjectile & thePrimary,
0071 G4Nucleus & theNucleus) final;
0072
0073 virtual G4ReactionProductVector* DeExcite(G4Fragment& aFragment) final;
0074
0075 virtual void BuildPhysicsTable(const G4ParticleDefinition&) final;
0076
0077 virtual void InitialiseModel() final;
0078
0079 virtual void ModelDescription(std::ostream& outFile) const final;
0080 virtual void DeExciteModelDescription(std::ostream& outFile) const final;
0081
0082 private:
0083
0084 inline
0085 void PerformEquilibriumEmission(const G4Fragment & aFragment,
0086 G4ReactionProductVector * result) const;
0087
0088 G4PreCompoundModel(const G4PreCompoundModel &) = delete;
0089 const G4PreCompoundModel& operator=(const G4PreCompoundModel &right) = delete;
0090 G4bool operator==(const G4PreCompoundModel &right) const = delete;
0091 G4bool operator!=(const G4PreCompoundModel &right) const = delete;
0092
0093 G4PreCompoundEmission* theEmission = nullptr;
0094 G4VPreCompoundTransitions* theTransition = nullptr;
0095 G4NuclearLevelData* fNuclData = nullptr;
0096
0097 const G4ParticleDefinition* proton;
0098 const G4ParticleDefinition* neutron;
0099
0100 G4double fLowLimitExc = 0.0;
0101 G4double fHighLimitExc = DBL_MAX;
0102
0103 G4bool useSCO = false;
0104 G4bool isInitialised = false;
0105 G4bool isActive = true;
0106
0107 G4int minZ = 3;
0108 G4int minA = 5;
0109 G4int modelID = -1;
0110
0111 G4HadFinalState theResult;
0112 };
0113
0114 inline void G4PreCompoundModel::PerformEquilibriumEmission(
0115 const G4Fragment & aFragment,
0116 G4ReactionProductVector * result) const
0117 {
0118 G4ReactionProductVector* deexResult =
0119 GetExcitationHandler()->BreakItUp(aFragment);
0120 result->insert(result->end(),deexResult->begin(), deexResult->end());
0121 delete deexResult;
0122 }
0123
0124 #endif
0125