Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4InelasticInteraction.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//
27// $Id$
28//
29// Hadronic Process: Inelastic Interaction
30// This class is an abstract base class, since the pure virtual
31// function ApplyYourself has not been defined yet.
32// original by H.P. Wellisch
33// Modified by J.L. Chuma, TRIUMF, 22-Nov-1996
34// Modified by J.L. Chuma 27-Mar-1997
35// Modified by J.L. Chuma 30-Apr-1997
36// Modified by J.L. Chuma 05-Aug-1997 to pass the original incident particle to
37// CalculateMomenta
38// Modified by J.L. Chuma 05-Jun-1998 to include quasiElastic flag to allow for
39// TwoBody to be called directly, bypassing
40// TwoCluster, and allowing TwoCluster to be
41// called with no secondaries
42// 23-Jan-2009 V.Ivanchenko move constructor and destructor to the body
43// 29-Aug-2009 V.Ivanchenko moveded G4ReactionDynamics instance from the based class
44
45#ifndef G4InelasticInteraction_h
46#define G4InelasticInteraction_h 1
47
48#include "globals.hh"
49#include "G4FastVector.hh"
51#include "G4ReactionProduct.hh"
52#include "G4ParticleTypes.hh"
53#include "Randomize.hh"
54#include "G4ReactionDynamics.hh"
56
57class G4IsoResult;
59
60
62{
63 public:
64
65 G4InelasticInteraction(const G4String& name = "LEInelastic");
67
69 {theProductionModels.push_back(aModel);}
70
72
74
75 virtual const std::pair<G4double, G4double> GetFatalEnergyCheckLevels() const;
76
77 protected:
78
79 G4double Pmltpc(G4int np, G4int nm, G4int nz, G4int n,
80 G4double b, G4double c );
81
83 const G4ReactionProduct &targetParticle,
84 G4ReactionProduct &leadParticle);
85
86 void SetUpPions(const G4int np, const G4int nm, const G4int nz,
88 G4int& vecLen);
89
91
92 void GetNormalizationConstant(const G4double availableEnergy,
93 G4double& n, G4double& anpn);
94
96 G4int& vecLen,
97 const G4HadProjectile* originalIncident,
98 const G4DynamicParticle* originalTarget,
99 G4ReactionProduct& modifiedOriginal,
100 G4Nucleus& targetNucleus,
101 G4ReactionProduct& currentParticle,
102 G4ReactionProduct& targetParticle,
103 G4bool& incidentHasChanged,
104 G4bool& targetHasChanged,
105 G4bool quasiElastic);
106
108 G4int& vecLen,
109 G4ReactionProduct& currentParticle,
110 G4ReactionProduct& targetParticle,
111 G4bool& incidentHasChanged);
112
113 void DoIsotopeCounting(const G4HadProjectile* theProjectile,
114 const G4Nucleus& aNucleus);
115
118
120
121 private:
122
123 G4double cache;
124 G4ThreeVector what;
125
126 std::vector<G4VIsotopeProduction*> theProductionModels;
127 static G4IsoParticleChange* theIsoResult;
128 static G4IsoParticleChange* theOldIsoResult;
129};
130
131#endif
132
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
G4IsoResult * ExtractResidualNucleus(const G4Nucleus &aNucleus)
static G4IsoParticleChange * GetIsotopeProductionInfo()
void Rotate(G4FastVector< G4ReactionProduct, GHADLISTSIZE > &vec, G4int &vecLen)
G4double Pmltpc(G4int np, G4int nm, G4int nz, G4int n, G4double b, G4double c)
void GetNormalizationConstant(const G4double availableEnergy, G4double &n, G4double &anpn)
G4ReactionDynamics theReactionDynamics
void SetUpPions(const G4int np, const G4int nm, const G4int nz, G4FastVector< G4ReactionProduct, GHADLISTSIZE > &vec, G4int &vecLen)
void CalculateMomenta(G4FastVector< G4ReactionProduct, GHADLISTSIZE > &vec, G4int &vecLen, const G4HadProjectile *originalIncident, const G4DynamicParticle *originalTarget, G4ReactionProduct &modifiedOriginal, G4Nucleus &targetNucleus, G4ReactionProduct &currentParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged, G4bool &targetHasChanged, G4bool quasiElastic)
virtual const std::pair< G4double, G4double > GetFatalEnergyCheckLevels() const
void RegisterIsotopeProductionModel(G4VIsotopeProduction *aModel)
void DoIsotopeCounting(const G4HadProjectile *theProjectile, const G4Nucleus &aNucleus)
G4bool MarkLeadingStrangeParticle(const G4ReactionProduct &currentParticle, const G4ReactionProduct &targetParticle, G4ReactionProduct &leadParticle)
void SetUpChange(G4FastVector< G4ReactionProduct, GHADLISTSIZE > &vec, G4int &vecLen, G4ReactionProduct &currentParticle, G4ReactionProduct &targetParticle, G4bool &incidentHasChanged)