Geant4
10.00.p01
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
G4HadronHElasticPhysics.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
// $Id: G4HadronHElasticPhysics.cc 73281 2013-08-23 08:21:37Z gcosmo $
27
//
28
//---------------------------------------------------------------------------
29
//
30
// ClassName: G4HadronHElasticPhysics
31
//
32
// Author: 23 November 2006 V. Ivanchenko
33
//
34
// Modified:
35
// 21.03.07 (V.Ivanchenko) Use G4BGGNucleonElasticXS and G4BGGPionElasticXS;
36
// Reduce thresholds for HE and Q-models to zero
37
// 03.06.2010 V.Ivanchenko cleanup constructors and ConstructProcess method
38
//
39
//----------------------------------------------------------------------------
40
//
41
// CHIPS for sampling scattering for p and n
42
// Glauber model for samplimg of high energy pi+- (E > 1GeV)
43
// LHEP sampling model for the other particle
44
// BBG cross sections for p, n and pi+-
45
// LHEP cross sections for other particles
46
47
#include "
G4HadronHElasticPhysics.hh
"
48
49
#include "
G4SystemOfUnits.hh
"
50
#include "
G4ParticleDefinition.hh
"
51
#include "
G4ProcessManager.hh
"
52
53
#include "
G4MesonConstructor.hh
"
54
#include "
G4BaryonConstructor.hh
"
55
#include "
G4IonConstructor.hh
"
56
#include "
G4Neutron.hh
"
57
58
#include "
G4HadronElasticProcess.hh
"
59
#include "
G4HadronElastic.hh
"
60
#include "
G4ChipsElasticModel.hh
"
61
#include "
G4ElasticHadrNucleusHE.hh
"
62
#include "
G4AntiNuclElastic.hh
"
63
64
#include "
G4BGGNucleonElasticXS.hh
"
65
#include "
G4BGGPionElasticXS.hh
"
66
#include "
G4NeutronElasticXS.hh
"
67
#include "
G4ChipsProtonElasticXS.hh
"
68
#include "
G4ChipsNeutronElasticXS.hh
"
69
70
#include "
G4ComponentAntiNuclNuclearXS.hh
"
71
#include "
G4CrossSectionElastic.hh
"
72
73
// factory
74
#include "
G4PhysicsConstructorFactory.hh
"
75
//
76
G4_DECLARE_PHYSCONSTR_FACTORY
(
G4HadronHElasticPhysics
);
77
78
G4ThreadLocal
G4bool
G4HadronHElasticPhysics::wasActivated
=
false
;
79
80
81
G4HadronHElasticPhysics::G4HadronHElasticPhysics
(
G4int
ver)
82
:
G4VPhysicsConstructor
(
"hElasticWEL_CHIPS"
), verbose(ver)
83
{
84
if
(
verbose
> 1) {
85
G4cout
<<
"### G4HadronHElasticPhysics: "
<<
GetPhysicsName
()
86
<<
G4endl
;
87
}
88
}
89
90
G4HadronHElasticPhysics::~G4HadronHElasticPhysics
()
91
{}
92
93
void
G4HadronHElasticPhysics::ConstructParticle
()
94
{
95
// G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
96
G4MesonConstructor
pMesonConstructor;
97
pMesonConstructor.
ConstructParticle
();
98
99
G4BaryonConstructor
pBaryonConstructor;
100
pBaryonConstructor.
ConstructParticle
();
101
102
// Construct light ions
103
G4IonConstructor
pConstructor;
104
pConstructor.
ConstructParticle
();
105
}
106
107
void
G4HadronHElasticPhysics::ConstructProcess
()
108
{
109
if
(
wasActivated
) {
return
; }
110
wasActivated
=
true
;
111
112
const
G4double
elimit = 1.0*
GeV
;
113
const
G4double
elimitAntiNuc = 100*
MeV
;
114
const
G4double
delta = 0.1*
MeV
;
115
if
(
verbose
> 1) {
116
G4cout
<<
"### HadronElasticPhysics::ConstructProcess: Elimit for HE "
117
<< elimit/
GeV
<<
" GeV"
<<
G4endl
;
118
G4cout
<<
" for anti-neuclei "
119
<< elimitAntiNuc/
GeV
<<
" GeV"
<<
G4endl
;
120
}
121
122
G4AntiNuclElastic
* anuc =
new
G4AntiNuclElastic
();
123
anuc->
SetMinEnergy
(elimitAntiNuc);
124
G4CrossSectionElastic
* anucxs =
125
new
G4CrossSectionElastic
(anuc->
GetComponentCrossSection
());
126
127
G4HadronElastic
* lhep0 =
new
G4HadronElastic
();
128
G4HadronElastic
* lhep1 =
new
G4HadronElastic
();
129
G4HadronElastic
* lhep2 =
new
G4HadronElastic
();
130
lhep1->
SetMaxEnergy
(elimit+delta);
131
lhep2->
SetMaxEnergy
(elimitAntiNuc+delta);
132
133
G4ChipsElasticModel
* chips =
new
G4ChipsElasticModel
();
134
chips->
SetMaxEnergy
(elimit+delta);
135
136
G4ElasticHadrNucleusHE
* he =
new
G4ElasticHadrNucleusHE
();
137
he->
SetMinEnergy
(elimit);
138
139
aParticleIterator
->reset();
140
while
( (*
aParticleIterator
)() )
141
{
142
G4ParticleDefinition
* particle =
aParticleIterator
->value();
143
G4ProcessManager
* pmanager = particle->
GetProcessManager
();
144
G4String
pname = particle->
GetParticleName
();
145
if
(pname ==
"anti_lambda"
||
146
pname ==
"anti_neutron"
||
147
pname ==
"anti_omega-"
||
148
pname ==
"anti_sigma-"
||
149
pname ==
"anti_sigma+"
||
150
pname ==
"anti_xi-"
||
151
pname ==
"anti_xi0"
||
152
pname ==
"lambda"
||
153
pname ==
"omega-"
||
154
pname ==
"sigma-"
||
155
pname ==
"sigma+"
||
156
pname ==
"xi-"
||
157
pname ==
"alpha"
||
158
pname ==
"deuteron"
||
159
pname ==
"triton"
160
) {
161
162
G4HadronElasticProcess
* hel =
new
G4HadronElasticProcess
();
163
hel->
RegisterMe
(lhep0);
164
pmanager->
AddDiscreteProcess
(hel);
165
if
(
verbose
> 1) {
166
G4cout
<<
"### HadronElasticPhysics: "
<< hel->
GetProcessName
()
167
<<
" added for "
<< particle->
GetParticleName
() <<
G4endl
;
168
}
169
170
}
else
if
(pname ==
"proton"
) {
171
172
G4HadronElasticProcess
* hel =
new
G4HadronElasticProcess
();
173
hel->
AddDataSet
(
new
G4BGGNucleonElasticXS
(particle));
174
hel->
RegisterMe
(chips);
175
hel->
RegisterMe
(he);
176
pmanager->
AddDiscreteProcess
(hel);
177
if
(
verbose
> 1) {
178
G4cout
<<
"### HadronElasticPhysics: "
<< hel->
GetProcessName
()
179
<<
" added for "
<< particle->
GetParticleName
() <<
G4endl
;
180
}
181
182
}
else
if
(pname ==
"neutron"
) {
183
184
G4HadronElasticProcess
* hel =
new
G4HadronElasticProcess
();
185
hel->
AddDataSet
(
new
G4NeutronElasticXS
());
186
hel->
RegisterMe
(chips);
187
hel->
RegisterMe
(he);
188
pmanager->
AddDiscreteProcess
(hel);
189
if
(
verbose
> 1) {
190
G4cout
<<
"### HadronElasticPhysics: "
191
<< hel->
GetProcessName
()
192
<<
" added for "
<< particle->
GetParticleName
() <<
G4endl
;
193
}
194
195
}
else
if
(pname ==
"pi+"
|| pname ==
"pi-"
) {
196
197
G4HadronElasticProcess
* hel =
new
G4HadronElasticProcess
();
198
hel->
AddDataSet
(
new
G4BGGPionElasticXS
(particle));
199
hel->
RegisterMe
(lhep1);
200
hel->
RegisterMe
(he);
201
pmanager->
AddDiscreteProcess
(hel);
202
if
(
verbose
> 1) {
203
G4cout
<<
"### HadronElasticPhysics: "
<< hel->
GetProcessName
()
204
<<
" added for "
<< particle->
GetParticleName
() <<
G4endl
;
205
}
206
207
}
else
if
(pname ==
"kaon-"
||
208
pname ==
"kaon+"
||
209
pname ==
"kaon0S"
||
210
pname ==
"kaon0L"
211
) {
212
213
G4HadronElasticProcess
* hel =
new
G4HadronElasticProcess
();
214
hel->
RegisterMe
(lhep0);
215
//hel->AddDataSet(new G4CHIPSElasticXS());
216
pmanager->
AddDiscreteProcess
(hel);
217
if
(
verbose
> 1) {
218
G4cout
<<
"### HadronElasticPhysics: "
<< hel->
GetProcessName
()
219
<<
" added for "
<< particle->
GetParticleName
() <<
G4endl
;
220
}
221
222
}
else
if
(
223
pname ==
"anti_proton"
||
224
pname ==
"anti_alpha"
||
225
pname ==
"anti_deuteron"
||
226
pname ==
"anti_triton"
||
227
pname ==
"anti_He3"
) {
228
229
G4HadronElasticProcess
* hel =
new
G4HadronElasticProcess
();
230
hel->
AddDataSet
(anucxs);
231
hel->
RegisterMe
(lhep2);
232
hel->
RegisterMe
(anuc);
233
pmanager->
AddDiscreteProcess
(hel);
234
}
235
}
236
}
237
238
G4BGGNucleonElasticXS.hh
G4MesonConstructor.hh
MeV
static const double MeV
Definition:
G4SIunits.hh:193
G4ChipsNeutronElasticXS.hh
G4BGGPionElasticXS
Definition:
G4BGGPionElasticXS.hh:64
G4BaryonConstructor.hh
G4BaryonConstructor
Definition:
G4BaryonConstructor.hh:39
G4ElasticHadrNucleusHE
Definition:
G4ElasticHadrNucleusHE.hh:108
G4HadronElasticProcess
Definition:
G4HadronElasticProcess.hh:49
G4HadronElastic.hh
G4MesonConstructor
Definition:
G4MesonConstructor.hh:39
G4HadronHElasticPhysics.hh
G4HadronHElasticPhysics::~G4HadronHElasticPhysics
virtual ~G4HadronHElasticPhysics()
Definition:
G4HadronHElasticPhysics.cc:90
G4ProcessManager::AddDiscreteProcess
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4NeutronElasticXS
Definition:
G4NeutronElasticXS.hh:59
G4BaryonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4BaryonConstructor.cc:102
G4IonConstructor.hh
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:111
G4ThreadLocal
#define G4ThreadLocal
Definition:
tls.hh:52
G4MesonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4MesonConstructor.cc:80
G4ParticleDefinition::GetProcessManager
G4ProcessManager * GetProcessManager() const
G4int
int G4int
Definition:
G4Types.hh:78
G4AntiNuclElastic::GetComponentCrossSection
G4ComponentAntiNuclNuclearXS * GetComponentCrossSection()
Definition:
G4AntiNuclElastic.hh:125
G4ParticleDefinition::GetParticleName
const G4String & GetParticleName() const
Definition:
G4ParticleDefinition.hh:159
G4IonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4IonConstructor.cc:59
G4HadronicProcess::RegisterMe
void RegisterMe(G4HadronicInteraction *a)
Definition:
G4HadronicProcess.cc:142
G4HadronicInteraction::SetMinEnergy
void SetMinEnergy(G4double anEnergy)
Definition:
G4HadronicInteraction.hh:90
G4HadronicProcess::AddDataSet
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
Definition:
G4HadronicProcess.hh:117
G4CrossSectionElastic.hh
G4cout
G4GLOB_DLL std::ostream G4cout
G4HadronHElasticPhysics::wasActivated
static G4ThreadLocal G4bool wasActivated
Definition:
G4HadronHElasticPhysics.hh:68
G4BGGPionElasticXS.hh
G4Neutron.hh
G4bool
bool G4bool
Definition:
G4Types.hh:79
aParticleIterator
#define aParticleIterator
Definition:
G4VPhysicsConstructor.hh:119
G4HadronHElasticPhysics
Definition:
G4HadronHElasticPhysics.hh:45
G4HadronHElasticPhysics::ConstructParticle
virtual void ConstructParticle()
Definition:
G4HadronHElasticPhysics.cc:93
G4_DECLARE_PHYSCONSTR_FACTORY
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronHElasticPhysics)
GeV
static const double GeV
Definition:
G4SIunits.hh:196
G4ProcessManager.hh
G4ParticleDefinition.hh
G4IonConstructor
Definition:
G4IonConstructor.hh:39
G4VPhysicsConstructor::GetPhysicsName
const G4String & GetPhysicsName() const
Definition:
G4VPhysicsConstructor.hh:194
G4VProcess::GetProcessName
const G4String & GetProcessName() const
Definition:
G4VProcess.hh:408
G4AntiNuclElastic
Definition:
G4AntiNuclElastic.hh:49
G4AntiNuclElastic.hh
G4ChipsProtonElasticXS.hh
G4NeutronElasticXS.hh
G4HadronElastic
Definition:
G4HadronElastic.hh:50
G4PhysicsConstructorFactory.hh
G4HadronHElasticPhysics::ConstructProcess
virtual void ConstructProcess()
Definition:
G4HadronHElasticPhysics.cc:107
G4ChipsElasticModel
Definition:
G4ChipsElasticModel.hh:53
G4HadronicInteraction::SetMaxEnergy
void SetMaxEnergy(const G4double anEnergy)
Definition:
G4HadronicInteraction.hh:103
G4CrossSectionElastic
Definition:
G4CrossSectionElastic.hh:61
G4HadronHElasticPhysics::verbose
G4int verbose
Definition:
G4HadronHElasticPhysics.hh:67
G4endl
#define G4endl
Definition:
G4ios.hh:61
G4ProcessManager
Definition:
G4ProcessManager.hh:106
G4HadronHElasticPhysics::G4HadronHElasticPhysics
G4HadronHElasticPhysics(G4int ver=0)
Definition:
G4HadronHElasticPhysics.cc:81
G4BGGNucleonElasticXS
Definition:
G4BGGNucleonElasticXS.hh:65
G4ComponentAntiNuclNuclearXS.hh
G4double
double G4double
Definition:
G4Types.hh:76
G4SystemOfUnits.hh
G4HadronElasticProcess.hh
G4VPhysicsConstructor
Definition:
G4VPhysicsConstructor.hh:121
G4ChipsElasticModel.hh
G4ElasticHadrNucleusHE.hh
G4String
Definition:
G4String.hh:45
geant4.10.00.p01
source
physics_lists
constructors
hadron_elastic
src
G4HadronHElasticPhysics.cc
Generated on Thu Dec 31 2015 17:44:23 for Geant4 by
1.8.8