Geant4
9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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$
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 "
G4CHIPSElastic.hh
"
61
#include "
G4ElasticHadrNucleusHE.hh
"
62
#include "
G4AntiNuclElastic.hh
"
63
64
#include "
G4BGGNucleonElasticXS.hh
"
65
#include "
G4BGGPionElasticXS.hh
"
66
#include "
G4NeutronElasticXS.hh
"
67
#include "
G4CHIPSElasticXS.hh
"
68
69
#include "
G4ComponentAntiNuclNuclearXS.hh
"
70
#include "
G4CrossSectionElastic.hh
"
71
72
// factory
73
#include "
G4PhysicsConstructorFactory.hh
"
74
//
75
G4_DECLARE_PHYSCONSTR_FACTORY
(
G4HadronHElasticPhysics
);
76
77
78
G4HadronHElasticPhysics::G4HadronHElasticPhysics
(
G4int
ver)
79
:
G4VPhysicsConstructor
(
"hElasticWEL_CHIPS"
), verbose(ver),
80
wasActivated(false)
81
{
82
// if(verbose > 1) {
83
G4cout
<<
"### G4HadronHElasticPhysics: "
<<
GetPhysicsName
()
84
<<
" is obsolete and soon will be removed"
<<
G4endl
;
85
}
86
87
G4HadronHElasticPhysics::G4HadronHElasticPhysics
(
G4int
ver,
G4bool
,
88
const
G4String
&)
89
:
G4VPhysicsConstructor
(
"hElasticWEL_CHIPS"
), verbose(ver),
90
wasActivated(false)
91
{
92
if
(verbose > 1) {
93
G4cout
<<
"### G4HadronHElasticPhysics: "
<<
GetPhysicsName
()
94
<<
G4endl
;
95
}
96
}
97
98
G4HadronHElasticPhysics::~G4HadronHElasticPhysics
()
99
{}
100
101
void
G4HadronHElasticPhysics::ConstructParticle
()
102
{
103
// G4cout << "G4HadronElasticPhysics::ConstructParticle" << G4endl;
104
G4MesonConstructor
pMesonConstructor;
105
pMesonConstructor.
ConstructParticle
();
106
107
G4BaryonConstructor
pBaryonConstructor;
108
pBaryonConstructor.
ConstructParticle
();
109
110
// Construct light ions
111
G4IonConstructor
pConstructor;
112
pConstructor.
ConstructParticle
();
113
}
114
115
void
G4HadronHElasticPhysics::ConstructProcess
()
116
{
117
if
(wasActivated) {
return
; }
118
wasActivated =
true
;
119
120
G4double
elimitPi = 1.0*GeV;
121
G4double
elimitAntiNuc = 100*MeV;
122
if
(verbose > 1) {
123
G4cout
<<
"### HadronElasticPhysics Construct Processes with the limit for pi "
124
<< elimitPi/GeV <<
" GeV"
125
<<
" for anti-neuclei "
126
<< elimitAntiNuc/GeV <<
" GeV"
<<
G4endl
;
127
}
128
129
G4AntiNuclElastic
* anuc =
new
G4AntiNuclElastic
();
130
anuc->
SetMinEnergy
(elimitAntiNuc);
131
G4CrossSectionElastic
* anucxs =
132
new
G4CrossSectionElastic
(anuc->
GetComponentCrossSection
());
133
134
G4HadronElastic
* lhep0 =
new
G4HadronElastic
();
135
G4HadronElastic
* lhep1 =
new
G4HadronElastic
();
136
G4HadronElastic
* lhep2 =
new
G4HadronElastic
();
137
lhep1->
SetMaxEnergy
(elimitPi);
138
lhep2->
SetMaxEnergy
(elimitAntiNuc);
139
140
G4CHIPSElastic
* chipsp =
new
G4CHIPSElastic
();
141
G4HadronElastic
* neutronModel =
new
G4CHIPSElastic
();
142
143
G4ElasticHadrNucleusHE
* he =
new
G4ElasticHadrNucleusHE
();
144
he->
SetMinEnergy
(elimitPi);
145
146
theParticleIterator
->
reset
();
147
while
( (*
theParticleIterator
)() )
148
{
149
G4ParticleDefinition
* particle =
theParticleIterator
->
value
();
150
G4ProcessManager
* pmanager = particle->
GetProcessManager
();
151
G4String
pname = particle->
GetParticleName
();
152
if
(pname ==
"anti_lambda"
||
153
pname ==
"anti_neutron"
||
154
pname ==
"anti_omega-"
||
155
pname ==
"anti_sigma-"
||
156
pname ==
"anti_sigma+"
||
157
pname ==
"anti_xi-"
||
158
pname ==
"anti_xi0"
||
159
pname ==
"lambda"
||
160
pname ==
"omega-"
||
161
pname ==
"sigma-"
||
162
pname ==
"sigma+"
||
163
pname ==
"xi-"
||
164
pname ==
"alpha"
||
165
pname ==
"deuteron"
||
166
pname ==
"triton"
167
) {
168
169
G4HadronElasticProcess
* hel =
new
G4HadronElasticProcess
();
170
hel->
RegisterMe
(lhep0);
171
pmanager->
AddDiscreteProcess
(hel);
172
if
(verbose > 1) {
173
G4cout
<<
"### HadronElasticPhysics: "
<< hel->
GetProcessName
()
174
<<
" added for "
<< particle->
GetParticleName
() <<
G4endl
;
175
}
176
177
}
else
if
(pname ==
"proton"
) {
178
179
G4HadronElasticProcess
* hel =
new
G4HadronElasticProcess
();
180
//hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
181
hel->
AddDataSet
(
new
G4CHIPSElasticXS
());
182
hel->
RegisterMe
(chipsp);
183
pmanager->
AddDiscreteProcess
(hel);
184
if
(verbose > 1) {
185
G4cout
<<
"### HadronElasticPhysics: "
<< hel->
GetProcessName
()
186
<<
" added for "
<< particle->
GetParticleName
() <<
G4endl
;
187
}
188
189
}
else
if
(pname ==
"neutron"
) {
190
191
G4HadronElasticProcess
* hel =
new
G4HadronElasticProcess
();
192
//hel->AddDataSet(new G4NeutronElasticXS());
193
//hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
194
hel->
AddDataSet
(
new
G4CHIPSElasticXS
());
195
hel->
RegisterMe
(neutronModel);
196
pmanager->
AddDiscreteProcess
(hel);
197
if
(verbose > 1) {
198
G4cout
<<
"### HadronElasticPhysics: "
199
<< hel->
GetProcessName
()
200
<<
" added for "
<< particle->
GetParticleName
() <<
G4endl
;
201
}
202
203
}
else
if
(pname ==
"pi+"
|| pname ==
"pi-"
) {
204
205
G4HadronElasticProcess
* hel =
new
G4HadronElasticProcess
();
206
hel->
AddDataSet
(
new
G4CHIPSElasticXS
());
207
//hel->AddDataSet(new G4BGGPionElasticXS(particle));
208
hel->
RegisterMe
(lhep1);
209
hel->
RegisterMe
(he);
210
pmanager->
AddDiscreteProcess
(hel);
211
if
(verbose > 1) {
212
G4cout
<<
"### HadronElasticPhysics: "
<< hel->
GetProcessName
()
213
<<
" added for "
<< particle->
GetParticleName
() <<
G4endl
;
214
}
215
216
}
else
if
(pname ==
"kaon-"
||
217
pname ==
"kaon+"
||
218
pname ==
"kaon0S"
||
219
pname ==
"kaon0L"
220
) {
221
222
G4HadronElasticProcess
* hel =
new
G4HadronElasticProcess
();
223
hel->
RegisterMe
(lhep0);
224
hel->
AddDataSet
(
new
G4CHIPSElasticXS
());
225
pmanager->
AddDiscreteProcess
(hel);
226
if
(verbose > 1) {
227
G4cout
<<
"### HadronElasticPhysics: "
<< hel->
GetProcessName
()
228
<<
" added for "
<< particle->
GetParticleName
() <<
G4endl
;
229
}
230
231
}
else
if
(
232
pname ==
"anti_proton"
||
233
pname ==
"anti_alpha"
||
234
pname ==
"anti_deuteron"
||
235
pname ==
"anti_triton"
||
236
pname ==
"anti_He3"
) {
237
238
G4HadronElasticProcess
* hel =
new
G4HadronElasticProcess
();
239
hel->
AddDataSet
(anucxs);
240
hel->
RegisterMe
(lhep2);
241
hel->
RegisterMe
(anuc);
242
pmanager->
AddDiscreteProcess
(hel);
243
}
244
}
245
}
246
247
G4AntiNuclElastic.hh
G4BGGNucleonElasticXS.hh
G4BGGPionElasticXS.hh
G4BaryonConstructor.hh
G4CHIPSElasticXS.hh
G4CHIPSElastic.hh
G4ComponentAntiNuclNuclearXS.hh
G4CrossSectionElastic.hh
G4ElasticHadrNucleusHE.hh
G4HadronElasticProcess.hh
G4HadronElastic.hh
G4HadronHElasticPhysics.hh
G4IonConstructor.hh
G4MesonConstructor.hh
G4NeutronElasticXS.hh
G4Neutron.hh
G4ParticleDefinition.hh
G4PhysicsConstructorFactory.hh
G4_DECLARE_PHYSCONSTR_FACTORY
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
Definition:
G4PhysicsConstructorFactory.hh:60
G4ProcessManager.hh
G4SystemOfUnits.hh
G4double
double G4double
Definition:
G4Types.hh:64
G4int
int G4int
Definition:
G4Types.hh:66
G4bool
bool G4bool
Definition:
G4Types.hh:67
G4endl
#define G4endl
Definition:
G4ios.hh:52
G4cout
G4DLLIMPORT std::ostream G4cout
G4AntiNuclElastic
Definition:
G4AntiNuclElastic.hh:51
G4AntiNuclElastic::GetComponentCrossSection
G4ComponentAntiNuclNuclearXS * GetComponentCrossSection()
Definition:
G4AntiNuclElastic.hh:126
G4BaryonConstructor
Definition:
G4BaryonConstructor.hh:40
G4BaryonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4BaryonConstructor.cc:102
G4CHIPSElasticXS
Definition:
G4CHIPSElasticXS.hh:60
G4CHIPSElastic
Definition:
G4CHIPSElastic.hh:48
G4CrossSectionElastic
Definition:
G4CrossSectionElastic.hh:62
G4ElasticHadrNucleusHE
Definition:
G4ElasticHadrNucleusHE.hh:109
G4HadronElasticProcess
Definition:
G4HadronElasticProcess.hh:50
G4HadronElastic
Definition:
G4HadronElastic.hh:51
G4HadronHElasticPhysics
Definition:
G4HadronHElasticPhysics.hh:46
G4HadronHElasticPhysics::G4HadronHElasticPhysics
G4HadronHElasticPhysics(G4int ver=0)
Definition:
G4HadronHElasticPhysics.cc:78
G4HadronHElasticPhysics::~G4HadronHElasticPhysics
virtual ~G4HadronHElasticPhysics()
Definition:
G4HadronHElasticPhysics.cc:98
G4HadronHElasticPhysics::ConstructProcess
virtual void ConstructProcess()
Definition:
G4HadronHElasticPhysics.cc:115
G4HadronHElasticPhysics::ConstructParticle
virtual void ConstructParticle()
Definition:
G4HadronHElasticPhysics.cc:101
G4HadronicInteraction::SetMinEnergy
void SetMinEnergy(G4double anEnergy)
Definition:
G4HadronicInteraction.hh:90
G4HadronicInteraction::SetMaxEnergy
void SetMaxEnergy(const G4double anEnergy)
Definition:
G4HadronicInteraction.hh:103
G4HadronicProcess::AddDataSet
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
Definition:
G4HadronicProcess.hh:117
G4HadronicProcess::RegisterMe
void RegisterMe(G4HadronicInteraction *a)
Definition:
G4HadronicProcess.cc:142
G4IonConstructor
Definition:
G4IonConstructor.hh:40
G4IonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4IonConstructor.cc:59
G4MesonConstructor
Definition:
G4MesonConstructor.hh:40
G4MesonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4MesonConstructor.cc:80
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:68
G4ParticleDefinition::GetProcessManager
G4ProcessManager * GetProcessManager() const
G4ParticleDefinition::GetParticleName
const G4String & GetParticleName() const
Definition:
G4ParticleDefinition.hh:115
G4ParticleTableIterator::reset
void reset()
Definition:
G4ParticleTableIterator.hh:70
G4ParticleTableIterator::value
V value() const
Definition:
G4ParticleTableIterator.hh:72
G4ProcessManager
Definition:
G4ProcessManager.hh:107
G4ProcessManager::AddDiscreteProcess
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4String
Definition:
G4String.hh:105
G4VPhysicsConstructor
Definition:
G4VPhysicsConstructor.hh:69
G4VPhysicsConstructor::GetPhysicsName
const G4String & GetPhysicsName() const
Definition:
G4VPhysicsConstructor.hh:136
G4VPhysicsConstructor::theParticleIterator
G4ParticleTable::G4PTblDicIterator * theParticleIterator
Definition:
G4VPhysicsConstructor.hh:113
G4VProcess::GetProcessName
const G4String & GetProcessName() const
Definition:
G4VProcess.hh:379
geant4-v9.6.0
source
physics_lists
builders
src
G4HadronHElasticPhysics.cc
Generated by
1.9.6