Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-08 09:10:43

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 // Class Description
0027 // Final state production model for theoretical models of hadron inelastic
0028 // scattering in geant4;
0029 // To be used in your physics list in case you need this physics.
0030 // In this case you want to register an object of this class with 
0031 // the corresponding process.
0032 // Note: This class is part of an implementation framework. You need to
0033 // register corresponding high energy generators and transport codes to 
0034 // fill it with life; decay of strong resonances is done directly,
0035 // in case there is no residual nucleus. 
0036 // Class Description - End
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;      // ID for generic inelastic interactions by string models (FTF and QGS)
0083     G4int theFTFQuasiElasticID;  // ID for FTF model quasi-elastic interactions
0084     G4int theFTFDiffractiveID;   // ID for FTF model diffractive interactions
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