00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 00030 // Class Description 00031 // Final state production model for theoretical models of hadron inelastic 00032 // scattering in geant4; 00033 // To be used in your physics list in case you need this physics. 00034 // In this case you want to register an object of this class with 00035 // the corresponding process. 00036 // Note: This class is part of an implementation framework. You need to 00037 // register corresponding high energy generators and transport codes to 00038 // fill it with life; decay of strong resonances is done directly, 00039 // in case there is no residual nucleus. 00040 // Class Description - End 00041 00042 #ifndef G4TheoFSGenerator_h 00043 #define G4TheoFSGenerator_h 1 00044 00045 #include "G4VIntraNuclearTransportModel.hh" 00046 #include "G4QuasiElasticChannel.hh" 00047 #include "G4HadronicInteraction.hh" 00048 #include "G4VHighEnergyGenerator.hh" 00049 #include "G4DecayStrongResonances.hh" 00050 #include "G4HadFinalState.hh" 00051 #include "G4QuasiElasticChannel.hh" 00052 #include "G4ProjectileDiffractiveChannel.hh" 00053 00054 class G4TheoFSGenerator : public G4HadronicInteraction 00055 00056 { 00057 public: 00058 G4TheoFSGenerator(const G4String& name = "TheoFSGenerator"); 00059 ~G4TheoFSGenerator(); 00060 00061 private: 00062 G4TheoFSGenerator(const G4TheoFSGenerator &right); 00063 const G4TheoFSGenerator & operator=(const G4TheoFSGenerator &right); 00064 int operator==(const G4TheoFSGenerator &right) const; 00065 int operator!=(const G4TheoFSGenerator &right) const; 00066 00067 public: 00068 G4HadFinalState * ApplyYourself(const G4HadProjectile & thePrimary, G4Nucleus & theNucleus); 00069 void SetTransport(G4VIntraNuclearTransportModel *const value); 00070 void SetHighEnergyGenerator(G4VHighEnergyGenerator *const value); 00071 void SetQuasiElasticChannel(G4QuasiElasticChannel *const value); 00072 void SetProjectileDiffraction(G4ProjectileDiffractiveChannel *const value); 00073 virtual std::pair<G4double, G4double> GetEnergyMomentumCheckLevels() const; 00074 void ModelDescription(std::ostream& outFile) const; 00075 00076 00077 private: 00078 const G4VIntraNuclearTransportModel * GetTransport() const; 00079 const G4VHighEnergyGenerator * GetHighEnergyGenerator() const; 00080 const G4HadFinalState * GetFinalState() const; 00081 00082 private: 00083 G4VIntraNuclearTransportModel * theTransport; 00084 G4VHighEnergyGenerator * theHighEnergyGenerator; 00085 G4DecayStrongResonances theDecay; 00086 G4HadFinalState * theParticleChange; 00087 G4QuasiElasticChannel * theQuasielastic; 00088 G4ProjectileDiffractiveChannel * theProjectileDiffraction; 00089 }; 00090 00091 inline const G4VIntraNuclearTransportModel * G4TheoFSGenerator::GetTransport() const 00092 { 00093 return theTransport; 00094 } 00095 00096 inline void G4TheoFSGenerator::SetTransport(G4VIntraNuclearTransportModel *const value) 00097 { 00098 theTransport = value; 00099 } 00100 00101 inline const G4VHighEnergyGenerator * G4TheoFSGenerator::GetHighEnergyGenerator() const 00102 { 00103 return theHighEnergyGenerator; 00104 } 00105 00106 inline void G4TheoFSGenerator::SetHighEnergyGenerator(G4VHighEnergyGenerator *const value) 00107 { 00108 theHighEnergyGenerator= value; 00109 } 00110 00111 inline void G4TheoFSGenerator::SetQuasiElasticChannel(G4QuasiElasticChannel *const value) 00112 { 00113 theQuasielastic = value; 00114 } 00115 inline void G4TheoFSGenerator::SetProjectileDiffraction(G4ProjectileDiffractiveChannel *const value) 00116 { 00117 theProjectileDiffraction = value; 00118 } 00119 00120 inline const G4HadFinalState * G4TheoFSGenerator::GetFinalState() const 00121 { 00122 return theParticleChange; 00123 } 00124 00125 #endif 00126 00127