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

Last change on this file since 1199 was 1196, checked in by garnier, 16 years ago

update CVS release candidate geant4.9.3.01

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