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