| [819] | 1 | //
|
|---|
| 2 | // ********************************************************************
|
|---|
| 3 | // * License and Disclaimer *
|
|---|
| 4 | // * *
|
|---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of *
|
|---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and *
|
|---|
| 7 | // * conditions of the Geant4 Software License, included in the file *
|
|---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These *
|
|---|
| 9 | // * include a list of copyright holders. *
|
|---|
| 10 | // * *
|
|---|
| 11 | // * Neither the authors of this software system, nor their employing *
|
|---|
| 12 | // * institutes,nor the agencies providing financial support for this *
|
|---|
| 13 | // * work make any representation or warranty, express or implied, *
|
|---|
| 14 | // * regarding this software system or assume any liability for its *
|
|---|
| 15 | // * use. Please see the license in the file LICENSE and URL above *
|
|---|
| 16 | // * for the full disclaimer and the limitation of liability. *
|
|---|
| 17 | // * *
|
|---|
| 18 | // * This code implementation is the result of the scientific and *
|
|---|
| 19 | // * technical work of the GEANT4 collaboration. *
|
|---|
| 20 | // * By using, copying, modifying or distributing the software (or *
|
|---|
| 21 | // * any work based on the software) you agree to acknowledge its *
|
|---|
| 22 | // * use in resulting scientific publications, and indicate your *
|
|---|
| 23 | // * acceptance of all terms of the Geant4 Software license. *
|
|---|
| 24 | // ********************************************************************
|
|---|
| 25 | //
|
|---|
| 26 | //
|
|---|
| [1340] | 27 | // $Id: G4VPreCompoundModel.hh,v 1.7 2010/08/20 07:43:28 vnivanch Exp $
|
|---|
| 28 | // GEANT4 tag $Name: geant4-09-03-ref-09 $
|
|---|
| [819] | 29 | //
|
|---|
| 30 |
|
|---|
| 31 | #ifndef G4VPreCompoundModel_h
|
|---|
| 32 | #define G4VPreCompoundModel_h 1
|
|---|
| 33 |
|
|---|
| 34 | // Class Description
|
|---|
| 35 | // Base class for pre-equilibrium decay models in geant4. By merit of inheriting
|
|---|
| 36 | // from this class a pre-equilibrium decay model can be used in conjunction with
|
|---|
| 37 | // any cascade, string parton model or other high energy generator in the
|
|---|
| 38 | // generation of final states for inelastic scattering.
|
|---|
| 39 | // Class Description - End
|
|---|
| 40 |
|
|---|
| 41 | #include "G4HadronicInteraction.hh"
|
|---|
| 42 | #include "G4ReactionProductVector.hh"
|
|---|
| 43 | #include "G4ReactionProduct.hh"
|
|---|
| [1337] | 44 |
|
|---|
| [819] | 45 | class G4HadProjectile;
|
|---|
| 46 | class G4HadFinalState;
|
|---|
| 47 | class G4Nucleus;
|
|---|
| 48 | class G4Fragment;
|
|---|
| 49 | class G4ExcitationHandler;
|
|---|
| 50 |
|
|---|
| 51 | class G4VPreCompoundModel : public G4HadronicInteraction
|
|---|
| 52 | {
|
|---|
| 53 | public:
|
|---|
| 54 |
|
|---|
| 55 | G4VPreCompoundModel(G4ExcitationHandler* const value,
|
|---|
| 56 | const G4String& modelName = "PrecompoundModel");
|
|---|
| [1337] | 57 |
|
|---|
| 58 | virtual ~G4VPreCompoundModel();
|
|---|
| [819] | 59 |
|
|---|
| [1340] | 60 | private:
|
|---|
| 61 |
|
|---|
| [819] | 62 | // default constructor
|
|---|
| [1337] | 63 | G4VPreCompoundModel();
|
|---|
| [819] | 64 | // copy constructor
|
|---|
| [1340] | 65 | G4VPreCompoundModel(const G4VPreCompoundModel &);
|
|---|
| [819] | 66 | // operators
|
|---|
| 67 | const G4VPreCompoundModel& operator=(const G4VPreCompoundModel &right);
|
|---|
| 68 | G4bool operator==(const G4VPreCompoundModel &right) const;
|
|---|
| 69 | G4bool operator!=(const G4VPreCompoundModel &right) const;
|
|---|
| 70 |
|
|---|
| 71 | public:
|
|---|
| [1337] | 72 |
|
|---|
| [819] | 73 | virtual G4HadFinalState *
|
|---|
| 74 | ApplyYourself(const G4HadProjectile & thePrimary, G4Nucleus & theNucleus) = 0;
|
|---|
| 75 |
|
|---|
| [1340] | 76 | virtual G4ReactionProductVector* DeExcite(G4Fragment& aFragment) = 0;
|
|---|
| [819] | 77 |
|
|---|
| [1337] | 78 | inline void SetExcitationHandler(G4ExcitationHandler *const value);
|
|---|
| [819] | 79 |
|
|---|
| 80 | protected:
|
|---|
| 81 |
|
|---|
| [1337] | 82 | inline const G4ExcitationHandler * GetExcitationHandler() const;
|
|---|
| [819] | 83 |
|
|---|
| 84 | private:
|
|---|
| 85 | G4ExcitationHandler *theExcitationHandler;
|
|---|
| 86 | };
|
|---|
| 87 |
|
|---|
| [1337] | 88 | inline void G4VPreCompoundModel::SetExcitationHandler(G4ExcitationHandler *const value)
|
|---|
| 89 | {
|
|---|
| 90 | theExcitationHandler = value;
|
|---|
| 91 | }
|
|---|
| [819] | 92 |
|
|---|
| 93 |
|
|---|
| 94 | inline const G4ExcitationHandler* G4VPreCompoundModel::GetExcitationHandler() const
|
|---|
| 95 | {
|
|---|
| 96 | return theExcitationHandler;
|
|---|
| 97 | }
|
|---|
| 98 |
|
|---|
| 99 | #endif
|
|---|