source: trunk/source/processes/hadronic/models/management/include/G4VIntraNuclearTransportModel.hh@ 1344

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

update ti head

File size: 4.4 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// $Id: G4VIntraNuclearTransportModel.hh,v 1.5 2010/08/28 15:53:50 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-03-ref-09 $
28//
29// -----------------------------------------------------------------------------
30// GEANT 4 class header file
31//
32// History: first implementation, A. Feliciello, 30th June 1998
33// A.Pavliouk 26.11.98
34// In Set...() methods a pointer is deleted now before new
35// value will be asigned.
36// -----------------------------------------------------------------------------
37
38#ifndef G4VIntraNuclearTransportModel_h
39#define G4VIntraNuclearTransportModel_h 1
40
41// Class Description
42// Base class for intra-nuclear transport models in geant4. By merit of inheriting
43// from this class a intra-nuclear transport model can be used in conjunction with
44// any precompound, string parton model or other high energy generator in the
45// generation of final states for inelastic scattering.
46// Class Description - End
47
48#include "G4V3DNucleus.hh"
49#include "G4VPreCompoundModel.hh"
50#include "G4HadronicInteraction.hh"
51#include "G4ReactionProductVector.hh"
52#include "G4ReactionProduct.hh"
53#include "G4HadProjectile.hh"
54#include "G4HadFinalState.hh"
55
56class G4KineticTrackVector;
57
58class G4VIntraNuclearTransportModel : public G4HadronicInteraction
59{
60public:
61
62 G4VIntraNuclearTransportModel(const G4String& modelName = "CascadeModel");
63
64 virtual ~G4VIntraNuclearTransportModel();
65
66 virtual
67 G4ReactionProductVector* Propagate(G4KineticTrackVector* theSecondaries,
68 G4V3DNucleus* theNucleus) = 0;
69
70 inline void SetDeExcitation(G4VPreCompoundModel* const value);
71
72 inline void Set3DNucleus(G4V3DNucleus* const value);
73
74 inline const G4String& GetModelName() const;
75
76private:
77
78 G4VIntraNuclearTransportModel(const G4VIntraNuclearTransportModel& right);
79 const G4VIntraNuclearTransportModel& operator=(const G4VIntraNuclearTransportModel &right);
80 int operator==(const G4VIntraNuclearTransportModel& right) const;
81 int operator!=(const G4VIntraNuclearTransportModel& right) const;
82
83protected:
84
85 inline G4V3DNucleus* Get3DNucleus() const;
86
87 inline G4VPreCompoundModel* GetDeExcitation() const;
88
89 G4String theTransportModelName;
90
91 G4V3DNucleus* the3DNucleus;
92
93 G4VPreCompoundModel* theDeExcitation;
94};
95
96inline const G4String& G4VIntraNuclearTransportModel::GetModelName() const
97{
98 return theTransportModelName;
99}
100
101inline G4V3DNucleus* G4VIntraNuclearTransportModel::Get3DNucleus() const
102{
103 return the3DNucleus;
104}
105
106inline void G4VIntraNuclearTransportModel::Set3DNucleus(G4V3DNucleus* const value)
107{
108 delete the3DNucleus; the3DNucleus = value;
109}
110
111inline G4VPreCompoundModel* G4VIntraNuclearTransportModel::GetDeExcitation() const
112{
113 return theDeExcitation;
114}
115
116inline void
117G4VIntraNuclearTransportModel::SetDeExcitation(G4VPreCompoundModel* const value)
118{
119 delete theDeExcitation;
120 theDeExcitation = value;
121}
122
123#endif
124
125
Note: See TracBrowser for help on using the repository browser.