| [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 | //
|
|---|
| 27 | // $Id: G4VPreCompoundModel.hh,v 1.5 2007/01/11 05:29:34 dennis Exp $
|
|---|
| [1196] | 28 | // GEANT4 tag $Name: geant4-09-03-cand-01 $
|
|---|
| [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"
|
|---|
| 44 | class G4HadProjectile;
|
|---|
| 45 | class G4HadFinalState;
|
|---|
| 46 | class G4Nucleus;
|
|---|
| 47 | class G4Fragment;
|
|---|
| 48 | class G4ExcitationHandler;
|
|---|
| 49 |
|
|---|
| 50 | class G4VPreCompoundModel : public G4HadronicInteraction
|
|---|
| 51 | {
|
|---|
| 52 | public:
|
|---|
| 53 |
|
|---|
| 54 | G4VPreCompoundModel(G4ExcitationHandler* const value,
|
|---|
| 55 | const G4String& modelName = "PrecompoundModel");
|
|---|
| 56 | virtual ~G4VPreCompoundModel() {};
|
|---|
| 57 |
|
|---|
| 58 | protected:
|
|---|
| 59 | // default constructor
|
|---|
| 60 | G4VPreCompoundModel() {};
|
|---|
| 61 | private:
|
|---|
| 62 | // copy constructor
|
|---|
| 63 | G4VPreCompoundModel(const G4VPreCompoundModel &) : G4HadronicInteraction() {};
|
|---|
| 64 | // operators
|
|---|
| 65 | const G4VPreCompoundModel& operator=(const G4VPreCompoundModel &right);
|
|---|
| 66 | G4bool operator==(const G4VPreCompoundModel &right) const;
|
|---|
| 67 | G4bool operator!=(const G4VPreCompoundModel &right) const;
|
|---|
| 68 |
|
|---|
| 69 | public:
|
|---|
| 70 | virtual G4HadFinalState *
|
|---|
| 71 | ApplyYourself(const G4HadProjectile & thePrimary, G4Nucleus & theNucleus) = 0;
|
|---|
| 72 |
|
|---|
| 73 | virtual G4ReactionProductVector*
|
|---|
| 74 | DeExcite(const G4Fragment& aFragment) const = 0;
|
|---|
| 75 |
|
|---|
| 76 | void SetExcitationHandler(G4ExcitationHandler *const value);
|
|---|
| 77 |
|
|---|
| 78 | protected:
|
|---|
| 79 |
|
|---|
| 80 | const G4ExcitationHandler * GetExcitationHandler() const;
|
|---|
| 81 |
|
|---|
| 82 | private:
|
|---|
| 83 | G4ExcitationHandler *theExcitationHandler;
|
|---|
| 84 | };
|
|---|
| 85 |
|
|---|
| 86 |
|
|---|
| 87 |
|
|---|
| 88 | inline const G4ExcitationHandler* G4VPreCompoundModel::GetExcitationHandler() const
|
|---|
| 89 | {
|
|---|
| 90 | return theExcitationHandler;
|
|---|
| 91 | }
|
|---|
| 92 |
|
|---|
| 93 | inline void G4VPreCompoundModel::SetExcitationHandler(G4ExcitationHandler *const value)
|
|---|
| 94 | {
|
|---|
| 95 | theExcitationHandler = value;
|
|---|
| 96 | }
|
|---|
| 97 |
|
|---|
| 98 |
|
|---|
| 99 |
|
|---|
| 100 |
|
|---|
| 101 | #endif
|
|---|