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

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

update ti head

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.7 2010/08/20 07:43:28 vnivanch Exp $
28// GEANT4 tag $Name: geant4-09-03-ref-09 $
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 
60private:
61
62  // default constructor
63  G4VPreCompoundModel();
64  // copy constructor
65  G4VPreCompoundModel(const G4VPreCompoundModel &);
66  // operators
67  const G4VPreCompoundModel& operator=(const G4VPreCompoundModel &right);
68  G4bool operator==(const G4VPreCompoundModel &right) const;
69  G4bool operator!=(const G4VPreCompoundModel &right) const;
70
71public:
72
73  virtual G4HadFinalState * 
74          ApplyYourself(const G4HadProjectile & thePrimary, G4Nucleus & theNucleus) = 0;
75 
76  virtual G4ReactionProductVector* DeExcite(G4Fragment& aFragment) = 0;
77
78  inline void SetExcitationHandler(G4ExcitationHandler *const  value);
79   
80protected:
81
82  inline const G4ExcitationHandler * GetExcitationHandler() const;
83 
84private:
85  G4ExcitationHandler *theExcitationHandler;
86};
87
88inline void G4VPreCompoundModel::SetExcitationHandler(G4ExcitationHandler *const  value)
89{
90  theExcitationHandler = value;
91}
92
93
94inline const G4ExcitationHandler* G4VPreCompoundModel::GetExcitationHandler() const
95{
96  return theExcitationHandler;
97}
98
99#endif
Note: See TracBrowser for help on using the repository browser.