Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4VIntraNuclearTransportModel.hh
Go to the documentation of this file.
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 96490 2016-04-19 06:57:04Z gcosmo $
27 //
28 // -----------------------------------------------------------------------------
29 // GEANT 4 class header file
30 //
31 // History: first implementation, A. Feliciello, 30th June 1998
32 // A.Pavliouk 26.11.98
33 // In Set...() methods a pointer is deleted now before new
34 // value will be asigned.
35 // M.Kelsey 07.03.2011
36 // Add data member and Set method to store original projectile
37 // V.Ivanchenko 03.01.2012
38 // Added G4VPreCompoundModel pointer to the constructor and cleanup
39 // V. Uzhinsky Nov. 2012
40 // Added method PropagateNuclNucl for simulation of nucleus-nucleus inter.
41 // -----------------------------------------------------------------------------
42 
43 #ifndef G4VIntraNuclearTransportModel_h
44 #define G4VIntraNuclearTransportModel_h 1
45 
46 // Class Description
47 // Base class for intra-nuclear transport models in geant4. By merit
48 // of inheriting from this class a intra-nuclear transport model can
49 // be used in conjunction with any precompound, string parton model
50 // or other high energy generator in the generation of final states
51 // for inelastic scattering.
52 // Class Description - End
53 
54 #include "G4V3DNucleus.hh"
55 #include "G4VPreCompoundModel.hh"
56 #include "G4HadronicInteraction.hh"
58 #include "G4ReactionProduct.hh"
59 #include "G4HadProjectile.hh"
60 #include "G4HadFinalState.hh"
61 
63 
65 {
66 public:
67 
68  explicit G4VIntraNuclearTransportModel(const G4String& mName = "CascadeModel",
69  G4VPreCompoundModel* ptr = nullptr);
70 
72 
73  virtual
75  G4V3DNucleus* theNucleus) = 0;
76 
77  virtual
79  G4V3DNucleus* theNucleus,
80  G4V3DNucleus* theProjectileNucleus); // Uzhi Nov. 2012
81 
82  inline void SetDeExcitation(G4VPreCompoundModel* ptr);
83 
84  inline void Set3DNucleus(G4V3DNucleus* const value);
85 
86  inline void SetPrimaryProjectile(const G4HadProjectile &aPrimary);
87 
88  inline const G4String& GetModelName() const;
89 
90  virtual void ModelDescription(std::ostream& outFile) const ;
91  virtual void PropagateModelDescription(std::ostream& outFile) const ;
92 
93 private:
94 
96  const G4VIntraNuclearTransportModel& operator=(const G4VIntraNuclearTransportModel &right) = delete;
97  int operator==(const G4VIntraNuclearTransportModel& right) const = delete;
98  int operator!=(const G4VIntraNuclearTransportModel& right) const = delete;
99 
100 protected:
101 
102  inline G4V3DNucleus* Get3DNucleus() const;
103 
104  inline G4VPreCompoundModel* GetDeExcitation() const;
105 
106  inline const G4HadProjectile* GetPrimaryProjectile() const;
107 
109 
111 
113 
115 };
116 
118 {
119  return theTransportModelName;
120 }
121 
123 {
124  return the3DNucleus;
125 }
126 
128 {
129  delete the3DNucleus; the3DNucleus = value;
130 }
131 
133 {
134  return theDeExcitation;
135 }
136 
137 inline void
139 {
140  // previous pre-compound model will be deleted at the end of job
142 }
143 
144 inline const G4HadProjectile*
146 {
147  return thePrimaryProjectile;
148 }
149 
150 inline void
152 {
153  // NOTE: Previous pointer is NOT deleted: passed by reference, no ownership
154  thePrimaryProjectile = &aPrimary;
155 }
156 
157 #endif
158 
159 
virtual G4ReactionProductVector * Propagate(G4KineticTrackVector *theSecondaries, G4V3DNucleus *theNucleus)=0
const G4HadProjectile * GetPrimaryProjectile() const
G4VPreCompoundModel * GetDeExcitation() const
G4VIntraNuclearTransportModel(const G4String &mName="CascadeModel", G4VPreCompoundModel *ptr=nullptr)
void SetPrimaryProjectile(const G4HadProjectile &aPrimary)
std::vector< G4ReactionProduct * > G4ReactionProductVector
const XML_Char int const XML_Char * value
Definition: expat.h:331
virtual void PropagateModelDescription(std::ostream &outFile) const
void Set3DNucleus(G4V3DNucleus *const value)
virtual G4ReactionProductVector * PropagateNuclNucl(G4KineticTrackVector *theSecondaries, G4V3DNucleus *theNucleus, G4V3DNucleus *theProjectileNucleus)
void SetDeExcitation(G4VPreCompoundModel *ptr)
virtual void ModelDescription(std::ostream &outFile) const