Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
processes
hadronic
models
low_energy
include
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
"
50
#include "
G4HadronicInteraction.hh
"
51
#include "
G4ReactionProduct.hh
"
52
#include "
G4ParticleTypes.hh
"
53
#include "
Randomize.hh
"
54
#include "
G4ReactionDynamics.hh
"
55
#include "
G4VIsotopeProduction.hh
"
56
57
class
G4IsoResult
;
58
class
G4IsoParticleChange
;
59
60
61
class
G4InelasticInteraction
:
public
G4HadronicInteraction
62
{
63
public
:
64
65
G4InelasticInteraction
(
const
G4String
&
name
=
"LEInelastic"
);
66
virtual
~G4InelasticInteraction
();
67
68
void
RegisterIsotopeProductionModel
(
G4VIsotopeProduction
* aModel)
69
{theProductionModels.push_back(aModel);}
70
71
void
TurnOnIsotopeProduction
() {
isotopeProduction
=
true
;}
72
73
static
G4IsoParticleChange
*
GetIsotopeProductionInfo
();
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
82
G4bool
MarkLeadingStrangeParticle
(
const
G4ReactionProduct
¤tParticle,
83
const
G4ReactionProduct
&targetParticle,
84
G4ReactionProduct
&leadParticle);
85
86
void
SetUpPions
(
const
G4int
np,
const
G4int
nm,
const
G4int
nz,
87
G4FastVector<G4ReactionProduct,GHADLISTSIZE>
& vec,
88
G4int
& vecLen);
89
90
void
Rotate
(
G4FastVector<G4ReactionProduct,GHADLISTSIZE>
& vec,
G4int
& vecLen);
91
92
void
GetNormalizationConstant
(
const
G4double
availableEnergy,
93
G4double
&
n
,
G4double
& anpn);
94
95
void
CalculateMomenta
(
G4FastVector<G4ReactionProduct,GHADLISTSIZE>
& vec,
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
107
void
SetUpChange
(
G4FastVector<G4ReactionProduct,GHADLISTSIZE>
& vec,
108
G4int
& vecLen,
109
G4ReactionProduct
& currentParticle,
110
G4ReactionProduct
& targetParticle,
111
G4bool
& incidentHasChanged);
112
113
void
DoIsotopeCounting
(
const
G4HadProjectile
* theProjectile,
114
const
G4Nucleus
& aNucleus);
115
116
G4IsoResult
*
ExtractResidualNucleus
(
const
G4Nucleus
& aNucleus);
117
G4bool
isotopeProduction
;
118
119
G4ReactionDynamics
theReactionDynamics
;
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
Generated on Sat May 25 2013 14:34:01 for Geant4 by
1.8.4