Geant4_10
G4INCLXXInterface.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 // INCL++ intra-nuclear cascade model
27 // Pekka Kaitaniemi, CEA and Helsinki Institute of Physics
28 // Davide Mancusi, CEA
29 // Alain Boudard, CEA
30 // Sylvie Leray, CEA
31 // Joseph Cugnon, University of Liege
32 //
33 #define INCLXX_IN_GEANT4_MODE 1
34 
35 #include "globals.hh"
36 
37 #ifndef G4INCLXXInterface_hh
38 #define G4INCLXXInterface_hh 1
39 
40 #include "G4Nucleon.hh"
41 #include "G4Nucleus.hh"
42 #include "G4HadronicInteraction.hh"
44 #include "G4KineticTrackVector.hh"
45 #include "G4FragmentVector.hh"
46 #include "G4ParticleChange.hh"
48 #include "G4ReactionProduct.hh"
49 #include "globals.hh"
50 
51 // INCL++
52 #include "G4INCLCascade.hh"
53 
54 // Geant4 de-excitation
55 #include "G4ExcitationHandler.hh"
56 
57 // Binary cascade
58 #include "G4BinaryCascade.hh"
60 
61 // PreCompound
62 #include "G4VPreCompoundModel.hh"
63 #include "G4PreCompoundModel.hh"
64 
65 // G4IonTable
66 #include "G4IonTable.hh"
67 
68 #include <fstream>
69 #include <iostream>
70 
71 using namespace std;
72 
74 
100 public:
101  G4INCLXXInterface(G4VPreCompoundModel * const aPreCompound = 0);
102  ~G4INCLXXInterface(); // Destructor
103 
105  return (this == &right);
106  }
107 
109  return (this != &right);
110  }
111 
112  G4ReactionProductVector* Propagate(G4KineticTrackVector* theSecondaries, G4V3DNucleus* theNucleus); // Idle
113 
120  G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack, G4Nucleus& theNucleus);
121 
123 
124  void DeleteModel() {
125  delete theINCLModel;
126  theINCLModel = NULL;
127  }
128 
129 private:
130  G4bool AccurateProjectile(const G4HadProjectile &aTrack, const G4Nucleus &theTargetNucleus) const;
131 
134 
136  G4INCLXXInterface &operator=(G4INCLXXInterface const &rhs);
137 
139  G4INCL::ParticleType toINCLParticleType(G4ParticleDefinition const * const) const;
140 
142  G4INCL::ParticleSpecies toINCLParticleSpecies(G4HadProjectile const &) const;
143 
145  G4double toINCLKineticEnergy(G4HadProjectile const &) const;
146 
148  G4DynamicParticle *toG4Particle(G4int A, G4int Z , G4double kinE, G4double px, G4double py, G4double pz) const;
149 
151  G4ParticleDefinition *toG4ParticleDefinition (G4int A, G4int Z) const;
152 
154  G4double remnant4MomentumScaling(G4double mass,
155  G4double kineticE,
156  G4double px, G4double py, G4double pz) const;
157 
158  G4INCL::INCL *theINCLModel;
159 
160  G4VPreCompoundModel *thePreCompoundModel;
161 
162  G4HadFinalState theResult;
163 
164  G4HadronicInteraction *theBackupModel;
165  G4HadronicInteraction *theBackupModelNucleon;
166 
167  G4INCLXXInterfaceStore * const theInterfaceStore;
168 
169  G4bool complainedAboutBackupModel;
170  G4bool complainedAboutPreCompound;
171 
172  G4IonTable * const theIonTable;
173 
174  G4bool dumpRemnantInfo;
175 };
176 
177 #endif
G4int operator==(G4INCLXXInterface &right)
int G4int
Definition: G4Types.hh:78
INCL++ intra-nuclear cascade.
std::vector< G4ReactionProduct * > G4ReactionProductVector
Singleton class for configuring the INCL++ Geant4 interface.
Float_t Z
Definition: plot.C:39
bool G4bool
Definition: G4Types.hh:79
G4int operator!=(G4INCLXXInterface &right)
void SetDeExcitation(G4VPreCompoundModel *ptr)
double G4double
Definition: G4Types.hh:76