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
physics_lists
lists
src
HadronPhysicsQGSP.cc
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
//---------------------------------------------------------------------------
30
//
31
// ClassName: HadronPhysicsQGSP
32
//
33
// Author: 2002 J.P. Wellisch
34
//
35
// Modified:
36
// 21.11.2005 G.Folger: migration to non static particles
37
// 08.06.2006 V.Ivanchenko: remove stopping
38
// 30.03.2007 G.Folger: Add code for quasielastic
39
// 12.11.2007 G.Folger: Add code for projectileDiffraction for proton/neutron
40
// 31.10.2012 A.Ribon: Use G4MiscBuilder
41
//
42
#include <iomanip>
43
44
#include "
HadronPhysicsQGSP.hh
"
45
46
#include "
globals.hh
"
47
#include "
G4ios.hh
"
48
#include "
G4SystemOfUnits.hh
"
49
#include "
G4ParticleDefinition.hh
"
50
#include "
G4ParticleTable.hh
"
51
52
#include "
G4MesonConstructor.hh
"
53
#include "
G4BaryonConstructor.hh
"
54
#include "
G4ShortLivedConstructor.hh
"
55
56
// factory
57
#include "
G4PhysicsConstructorFactory.hh
"
58
//
59
G4_DECLARE_PHYSCONSTR_FACTORY
(
HadronPhysicsQGSP
);
60
61
HadronPhysicsQGSP::HadronPhysicsQGSP
(
G4int
)
62
:
G4VPhysicsConstructor
(
"hInelastic QGSP"
)
63
, theNeutrons(0)
64
, theLEPNeutron(0)
65
, theQGSPNeutron(0)
66
, thePiK(0)
67
, theLEPPiK(0)
68
, theQGSPPiK(0)
69
, thePro(0)
70
, theLEPPro(0)
71
, theQGSPPro(0)
72
, theMisc(0)
73
, QuasiElastic(true)
74
, ProjectileDiffraction(false)
75
{
76
}
77
78
HadronPhysicsQGSP::HadronPhysicsQGSP
(
const
G4String
&
name
,
G4bool
quasiElastic)
79
:
G4VPhysicsConstructor
(name)
80
, theNeutrons(0)
81
, theLEPNeutron(0)
82
, theQGSPNeutron(0)
83
, thePiK(0)
84
, theLEPPiK(0)
85
, theQGSPPiK(0)
86
, thePro(0)
87
, theLEPPro(0)
88
, theQGSPPro(0)
89
, theMisc(0)
90
, QuasiElastic(quasiElastic)
91
, ProjectileDiffraction(false)
92
{
93
}
94
95
void
HadronPhysicsQGSP::CreateModels()
96
{
97
theNeutrons=
new
G4NeutronBuilder
;
98
theQGSPNeutron=
new
G4QGSPNeutronBuilder
(QuasiElastic, ProjectileDiffraction);
99
theNeutrons->
RegisterMe
(theQGSPNeutron);
100
theNeutrons->
RegisterMe
(theLEPNeutron=
new
G4LEPNeutronBuilder
);
101
theLEPNeutron->
SetMaxInelasticEnergy
(25*
GeV
);
102
103
thePro=
new
G4ProtonBuilder
;
104
theQGSPPro=
new
G4QGSPProtonBuilder
(QuasiElastic, ProjectileDiffraction);
105
thePro->
RegisterMe
(theQGSPPro);
106
thePro->
RegisterMe
(theLEPPro=
new
G4LEPProtonBuilder
);
107
theLEPPro->
SetMaxEnergy
(25*
GeV
);
108
109
thePiK=
new
G4PiKBuilder
;
110
theQGSPPiK=
new
G4QGSPPiKBuilder
(QuasiElastic,
false
);
111
thePiK->
RegisterMe
(theQGSPPiK);
112
thePiK->
RegisterMe
(theLEPPiK=
new
G4LEPPiKBuilder
);
113
theLEPPiK->
SetMaxEnergy
(25*
GeV
);
114
115
theMisc=
new
G4MiscBuilder
;
116
}
117
118
HadronPhysicsQGSP::~HadronPhysicsQGSP
()
119
{
120
delete
theMisc;
121
delete
theQGSPNeutron;
122
delete
theLEPNeutron;
123
delete
theQGSPPro;
124
delete
theLEPPro;
125
delete
thePro;
126
delete
theQGSPPiK;
127
delete
theLEPPiK;
128
delete
thePiK;
129
}
130
131
132
void
HadronPhysicsQGSP::ConstructParticle
()
133
{
134
G4MesonConstructor
pMesonConstructor;
135
pMesonConstructor.
ConstructParticle
();
136
137
G4BaryonConstructor
pBaryonConstructor;
138
pBaryonConstructor.
ConstructParticle
();
139
140
G4ShortLivedConstructor
pShortLivedConstructor;
141
pShortLivedConstructor.
ConstructParticle
();
142
}
143
144
#include "
G4ProcessManager.hh
"
145
void
HadronPhysicsQGSP::ConstructProcess
()
146
{
147
CreateModels();
148
theNeutrons->
Build
();
149
thePro->
Build
();
150
thePiK->
Build
();
151
theMisc->
Build
();
152
}
153
Generated on Sat May 25 2013 14:33:28 for Geant4 by
1.8.4