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 // GEANT 4 class header file 00031 // 00032 // History: first implementation 00033 // HPW, 10DEC 98, the decay part originally written by Gunter Folger 00034 // in his FTF-test-program. 00035 // 00036 // 00037 // ----------------------------------------------------------------------------- 00038 // 00039 // Class Description 00040 // Trivial implementation of an intra-nuclear transport. It pworvides coupling 00041 // of high energy generators with pre equilibrium decay models. 00042 // To be used in your physics list in case you need this physics. 00043 // Class Description - End 00044 00045 #ifndef G4GeneratorPrecompoundInterface_h 00046 #define G4GeneratorPrecompoundInterface_h 1 00047 00048 #include "G4VIntraNuclearTransportModel.hh" 00049 #include "G4ReactionProductVector.hh" 00050 #include "G4HadProjectile.hh" 00051 #include "G4Nucleus.hh" 00052 #include "globals.hh" 00053 00054 class G4KineticTrackVector; 00055 class G4V3DNucleus; 00056 class G4ParticleDefinition; 00057 00058 class G4GeneratorPrecompoundInterface : public G4VIntraNuclearTransportModel 00059 { 00060 public: 00061 00062 G4GeneratorPrecompoundInterface(G4VPreCompoundModel* p = 0); 00063 virtual ~G4GeneratorPrecompoundInterface(); 00064 00065 virtual G4HadFinalState* 00066 ApplyYourself(const G4HadProjectile &aTrack, G4Nucleus &targetNucleus ); 00067 00068 virtual G4ReactionProductVector* 00069 Propagate(G4KineticTrackVector* theSecondaries, G4V3DNucleus* theNucleus); 00070 00071 inline void SetCaptureThreshold(G4double); 00072 00073 virtual void PropagateModelDescription(std::ostream&) const; 00074 00075 private: 00076 00077 G4GeneratorPrecompoundInterface(const G4GeneratorPrecompoundInterface& right); 00078 const G4GeneratorPrecompoundInterface& operator=(const G4GeneratorPrecompoundInterface &right); 00079 G4int operator==(G4GeneratorPrecompoundInterface& right) {return (this == &right);} 00080 G4int operator!=(G4GeneratorPrecompoundInterface& right) {return (this != &right);} 00081 00082 G4double CaptureThreshold; 00083 const G4ParticleDefinition* proton; 00084 const G4ParticleDefinition* neutron; 00085 }; 00086 00087 inline 00088 void G4GeneratorPrecompoundInterface::SetCaptureThreshold(G4double value) 00089 { 00090 CaptureThreshold=value; 00091 } 00092 00093 #endif // G4GeneratorPrecompoundInterface_h 00094 00095