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 #ifndef G4VPreCompoundModel_h 00031 #define G4VPreCompoundModel_h 1 00032 00033 // ----------------------------------------------------------------------------- 00034 // GEANT 4 class header file 00035 // 00036 // History: first implementation 1998 00037 // 00038 // V.Ivanchenko 03.01.2012 00039 // Added G4ExcitationHandler pointer to the constructor and cleanup 00040 // ----------------------------------------------------------------------------- 00041 00042 // Class Description 00043 // Base class for pre-equilibrium decay models in geant4. By merit of 00044 // inheriting from this class a pre-equilibrium decay model can be used 00045 // in conjunction with any cascade, string parton model or other high 00046 // energy generator in the generation of final states for inelastic scattering. 00047 // Class Description - End 00048 00049 #include "G4HadronicInteraction.hh" 00050 #include "G4ReactionProductVector.hh" 00051 #include "G4ReactionProduct.hh" 00052 00053 class G4HadProjectile; 00054 class G4HadFinalState; 00055 class G4Nucleus; 00056 class G4Fragment; 00057 class G4ExcitationHandler; 00058 00059 class G4VPreCompoundModel : public G4HadronicInteraction 00060 { 00061 public: 00062 00063 G4VPreCompoundModel(G4ExcitationHandler* ptr = 0, 00064 const G4String& modelName = "PrecompoundModel"); 00065 00066 virtual ~G4VPreCompoundModel(); 00067 00068 private: 00069 00070 // default constructor 00071 //G4VPreCompoundModel(); 00072 // copy constructor 00073 G4VPreCompoundModel(const G4VPreCompoundModel &); 00074 // operators 00075 const G4VPreCompoundModel& operator=(const G4VPreCompoundModel &right); 00076 G4bool operator==(const G4VPreCompoundModel &right) const; 00077 G4bool operator!=(const G4VPreCompoundModel &right) const; 00078 00079 public: 00080 00081 virtual G4HadFinalState * 00082 ApplyYourself(const G4HadProjectile & thePrimary, G4Nucleus & theNucleus) = 0; 00083 00084 virtual G4ReactionProductVector* DeExcite(G4Fragment& aFragment) = 0; 00085 00086 inline void SetExcitationHandler(G4ExcitationHandler* ptr); 00087 00088 inline G4ExcitationHandler* GetExcitationHandler() const; 00089 00090 private: 00091 00092 G4ExcitationHandler* theExcitationHandler; 00093 }; 00094 00095 inline void G4VPreCompoundModel::SetExcitationHandler(G4ExcitationHandler* ptr) 00096 { 00097 theExcitationHandler = ptr; 00098 } 00099 00100 inline G4ExcitationHandler* G4VPreCompoundModel::GetExcitationHandler() const 00101 { 00102 return theExcitationHandler; 00103 } 00104 00105 #endif