source: trunk/source/processes/hadronic/models/management/include/G4VPreCompoundModel.hh @ 1337

Last change on this file since 1337 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 3.6 KB
Line 
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.6 2010/06/11 15:26:36 vnivanch Exp $
28// GEANT4 tag $Name: geant4-09-04-beta-01 $
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
45class G4HadProjectile;
46class G4HadFinalState;
47class G4Nucleus;
48class G4Fragment;
49class G4ExcitationHandler;
50
51class G4VPreCompoundModel : public G4HadronicInteraction
52{
53public:
54
55  G4VPreCompoundModel(G4ExcitationHandler* const value, 
56                      const G4String& modelName = "PrecompoundModel");
57
58  virtual ~G4VPreCompoundModel();
59 
60protected:
61  // default constructor
62  G4VPreCompoundModel();
63
64private:
65
66  // copy constructor
67  G4VPreCompoundModel(const G4VPreCompoundModel &) : G4HadronicInteraction() {};
68  // operators
69  const G4VPreCompoundModel& operator=(const G4VPreCompoundModel &right);
70  G4bool operator==(const G4VPreCompoundModel &right) const;
71  G4bool operator!=(const G4VPreCompoundModel &right) const;
72
73public:
74
75  virtual G4HadFinalState * 
76          ApplyYourself(const G4HadProjectile & thePrimary, G4Nucleus & theNucleus) = 0;
77 
78  virtual G4ReactionProductVector* 
79          DeExcite(const G4Fragment& aFragment) const = 0;
80
81  inline void SetExcitationHandler(G4ExcitationHandler *const  value);
82   
83protected:
84
85  inline const G4ExcitationHandler * GetExcitationHandler() const;
86 
87private:
88  G4ExcitationHandler *theExcitationHandler;
89};
90
91inline void G4VPreCompoundModel::SetExcitationHandler(G4ExcitationHandler *const  value)
92{
93  theExcitationHandler = value;
94}
95
96
97inline const G4ExcitationHandler* G4VPreCompoundModel::GetExcitationHandler() const
98{
99  return theExcitationHandler;
100}
101
102#endif
Note: See TracBrowser for help on using the repository browser.