Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:10

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 //
0027 //
0028 
0029 // Class Description
0030 // Final state production model for theoretical models of hadron inelastic
0031 // scattering in geant4;
0032 // To be used in your physics list in case you need this physics.
0033 // In this case you want to register an object of this class with 
0034 // the corresponding process.
0035 // Note: This class is part of an implementation framework. You need to
0036 // register corresponding high energy generators and transport codes to 
0037 // fill it with life; decay of strong resonances is done directly,
0038 // in case there is no residual nucleus. 
0039 // Class Description - End
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