File indexing completed on 2025-01-18 09:59:10
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 #ifndef G4TheoFSGenerator_h
0042 #define G4TheoFSGenerator_h 1
0043
0044 #include "G4VIntraNuclearTransportModel.hh"
0045 #include "G4QuasiElasticChannel.hh"
0046 #include "G4HadronicInteraction.hh"
0047 #include "G4VHighEnergyGenerator.hh"
0048 #include "G4DecayStrongResonances.hh"
0049 #include "G4HadFinalState.hh"
0050 #include "G4QuasiElasticChannel.hh"
0051
0052 class G4CRCoalescence;
0053
0054 class G4TheoFSGenerator : public G4HadronicInteraction
0055
0056 {
0057 public:
0058 explicit G4TheoFSGenerator(const G4String& name = "TheoFSGenerator");
0059 ~G4TheoFSGenerator() override;
0060
0061 G4TheoFSGenerator(const G4TheoFSGenerator &right) = delete;
0062 const G4TheoFSGenerator & operator=(const G4TheoFSGenerator &right) = delete;
0063 G4bool operator==(const G4TheoFSGenerator &right) const = delete;
0064 G4bool operator!=(const G4TheoFSGenerator &right) const = delete;
0065
0066 public:
0067 G4HadFinalState * ApplyYourself(const G4HadProjectile & thePrimary, G4Nucleus & theNucleus) override;
0068
0069 inline void SetTransport(G4VIntraNuclearTransportModel *const value);
0070 inline void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value);
0071 inline void SetQuasiElasticChannel(G4QuasiElasticChannel *const value);
0072
0073 inline const G4VIntraNuclearTransportModel* GetTransport() const;
0074 inline const G4VHighEnergyGenerator* GetHighEnergyGenerator() const;
0075 inline const G4QuasiElasticChannel* GetQuasiElasticChannel() const;
0076
0077 std::pair<G4double, G4double> GetEnergyMomentumCheckLevels() const override;
0078 void ModelDescription(std::ostream& outFile) const override;
0079
0080 private:
0081 G4VIntraNuclearTransportModel * theTransport;
0082 G4VHighEnergyGenerator * theHighEnergyGenerator;
0083 G4DecayStrongResonances theDecay;
0084 G4HadFinalState * theParticleChange;
0085 G4QuasiElasticChannel * theQuasielastic;
0086 G4CRCoalescence * theCosmicCoalescence;
0087 G4int theStringModelID;
0088 };
0089
0090
0091 inline void G4TheoFSGenerator::SetTransport(G4VIntraNuclearTransportModel *const value)
0092 {
0093 theTransport = value;
0094 }
0095
0096 inline void G4TheoFSGenerator::SetHighEnergyGenerator(G4VHighEnergyGenerator *const value)
0097 {
0098 theHighEnergyGenerator= value;
0099 }
0100
0101 inline void G4TheoFSGenerator::SetQuasiElasticChannel(G4QuasiElasticChannel *const value)
0102 {
0103 theQuasielastic = value;
0104 }
0105
0106 inline const G4VIntraNuclearTransportModel* G4TheoFSGenerator::GetTransport() const
0107 {
0108 return theTransport;
0109 }
0110
0111 inline const G4VHighEnergyGenerator* G4TheoFSGenerator::GetHighEnergyGenerator() const
0112 {
0113 return theHighEnergyGenerator;
0114 }
0115
0116 inline const G4QuasiElasticChannel* G4TheoFSGenerator::GetQuasiElasticChannel() const
0117 {
0118 return theQuasielastic;
0119 }
0120
0121 #endif
0122
0123