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 // $Id$ 00027 // 00028 // 20100413 M. Kelsey -- Pass G4CollisionOutput by ref to ::collide() 00029 // 20100517 M. Kelsey -- Inherit from common base class, make other colliders 00030 // simple data members 00031 // 20100620 M. Kelsey -- Move output buffers here to reduce memory churn 00032 // 20100714 M. Kelsey -- Switch to new G4CascadeColliderBase class 00033 // 20100720 M. Kelsey -- Make all the collders pointer members (to reducde 00034 // external compile dependences). 00035 // 20100915 M. Kelsey -- Move de-excitation colliders to G4CascadeDeexcitation 00036 // 20100922 M. Kelsey -- Add functions to select de-excitation method, change 00037 // "theDeexcitation" to be a base-class pointer for switching 00038 // 20100926 M. Kelsey -- Use new intermediate base class for de-exciations. 00039 // 20110224 M. Kelsey -- Add ::rescatter() function which takes a list of 00040 // pre-existing secondaries as input. Add setVerboseLevel(). 00041 // 20110304 M. Kelsey -- Modify rescatter to use original Propagate() input 00042 // 20110308 M. Kelsey -- Add ::deexcite() function to handle nuclear fragment 00043 00044 #ifndef G4INUCL_COLLIDER_HH 00045 #define G4INUCL_COLLIDER_HH 00046 00047 #include "G4CascadeColliderBase.hh" 00048 #include "G4CollisionOutput.hh" 00049 00050 class G4CascadParticle; 00051 class G4ElementaryParticleCollider; 00052 class G4IntraNucleiCascader; 00053 class G4InuclParticle; 00054 class G4KineticTrackVector; 00055 class G4V3DNucleus; 00056 class G4VCascadeDeexcitation; 00057 00058 00059 class G4InuclCollider : public G4CascadeColliderBase { 00060 public: 00061 G4InuclCollider(); 00062 virtual ~G4InuclCollider(); 00063 00064 void collide(G4InuclParticle* bullet, G4InuclParticle* target, 00065 G4CollisionOutput& globalOutput); 00066 00067 // For use with top-level Propagate to preload a set of secondaries 00068 void rescatter(G4InuclParticle* bullet, G4KineticTrackVector* theSecondaries, 00069 G4V3DNucleus* theNucleus, G4CollisionOutput& globalOutput); 00070 00071 void setVerboseLevel(G4int verbose=0); 00072 00073 // Select betweeen different post-cascade de-excitation models 00074 void useCascadeDeexcitation(); 00075 void usePreCompoundDeexcitation(); 00076 00077 protected: 00078 void deexcite(const G4Fragment& fragment, G4CollisionOutput& globalOutput); 00079 00080 private: 00081 G4ElementaryParticleCollider* theElementaryParticleCollider; 00082 G4IntraNucleiCascader* theIntraNucleiCascader; 00083 00084 G4VCascadeDeexcitation* theDeexcitation; // User switchable! 00085 00086 G4CollisionOutput output; // Secondaries from main cascade 00087 G4CollisionOutput DEXoutput; // Secondaries from de-excitation 00088 }; 00089 00090 #endif /* G4INUCL_COLLIDER_HH */ 00091 00092