Geant4
9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HadronQElasticPhysics.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: G4HadronQElasticPhysics
31
//
32
// Author: 17 Nov 2006 V.Ivanchenko
33
//
34
// Modified:
35
// 03.06.2010 V.Ivanchenko cleanup constructors and ConstructProcess method
36
// 01.11.2012 A.Ribon: use G4AntiNuclElastic for light anti-ions.
37
//
38
//----------------------------------------------------------------------------
39
//
40
// CHIPS x-sections and generator (G4QElastic) for n and p
41
// LHEP x-section and generator for the rest
42
43
#include "
G4HadronQElasticPhysics.hh
"
44
45
#include "
G4HadronElasticProcess.hh
"
46
#include "
G4HadronicInteraction.hh
"
47
#include "
G4HadronElastic.hh
"
48
#include "
G4QElastic.hh
"
49
#include "
G4AntiNuclElastic.hh
"
50
51
#include "
G4VQCrossSection.hh
"
52
53
#include "
G4ParticleDefinition.hh
"
54
#include "
G4ProcessManager.hh
"
55
56
#include "
G4MesonConstructor.hh
"
57
#include "
G4BaryonConstructor.hh
"
58
#include "
G4IonConstructor.hh
"
59
60
#include "
G4ComponentAntiNuclNuclearXS.hh
"
61
#include "
G4CrossSectionElastic.hh
"
62
63
// factory
64
#include "
G4PhysicsConstructorFactory.hh
"
65
//
66
G4_DECLARE_PHYSCONSTR_FACTORY
(
G4HadronQElasticPhysics
);
67
68
69
G4HadronQElasticPhysics::G4HadronQElasticPhysics
(
G4int
ver)
70
:
G4VPhysicsConstructor
(
"hElasticCHIPS_LHEP"
), verbose(ver),
71
wasActivated(false)
72
{
73
if
(verbose > 1) {
74
G4cout
<<
"### G4HadronQElasticPhysics: "
<<
GetPhysicsName
()
75
<<
G4endl
;
76
}
77
}
78
79
G4HadronQElasticPhysics::G4HadronQElasticPhysics
(
const
G4String
&,
G4int
ver)
80
:
G4VPhysicsConstructor
(
"hElasticCHIPS_LHEP"
), verbose(ver),
81
wasActivated(false)
82
{
83
if
(verbose > 1) {
84
G4cout
<<
"### G4HadronQElasticPhysics: "
<<
GetPhysicsName
()
85
<<
G4endl
;
86
}
87
}
88
89
G4HadronQElasticPhysics::~G4HadronQElasticPhysics
()
90
{}
91
92
void
G4HadronQElasticPhysics::ConstructParticle
()
93
{
94
G4MesonConstructor
pMesonConstructor;
95
pMesonConstructor.
ConstructParticle
();
96
97
G4BaryonConstructor
pBaryonConstructor;
98
pBaryonConstructor.
ConstructParticle
();
99
100
// Construct light ions
101
G4IonConstructor
pConstructor;
102
pConstructor.
ConstructParticle
();
103
}
104
105
void
G4HadronQElasticPhysics::ConstructProcess
()
106
{
107
if
(wasActivated) {
return
; }
108
wasActivated =
true
;
109
110
if
(verbose > 1) {
111
G4cout
<<
"### HadronQElasticPhysics::ConstructProcess"
<<
G4endl
;
112
}
113
114
G4HadronElastic
* lhep0 =
new
G4HadronElastic
();
115
G4HadronElastic
* lhep1 =
new
G4HadronElastic
();
116
G4double
elimitAntiNuc = 100*CLHEP::MeV;
117
lhep1->
SetMaxEnergy
(elimitAntiNuc);
118
G4AntiNuclElastic
* anuc =
new
G4AntiNuclElastic
();
119
anuc->
SetMinEnergy
(elimitAntiNuc);
120
G4CrossSectionElastic
* anucxs =
121
new
G4CrossSectionElastic
(anuc->
GetComponentCrossSection
());
122
123
theParticleIterator
->
reset
();
124
while
( (*
theParticleIterator
)() )
125
{
126
G4ParticleDefinition
* particle =
theParticleIterator
->
value
();
127
G4ProcessManager
* pmanager = particle->
GetProcessManager
();
128
G4String
pname = particle->
GetParticleName
();
129
if
(pname ==
"anti_lambda"
||
130
pname ==
"anti_neutron"
||
131
pname ==
"anti_omega-"
||
132
pname ==
"anti_sigma-"
||
133
pname ==
"anti_sigma+"
||
134
pname ==
"anti_xi-"
||
135
pname ==
"anti_xi0"
||
136
pname ==
"kaon-"
||
137
pname ==
"kaon+"
||
138
pname ==
"kaon0S"
||
139
pname ==
"kaon0L"
||
140
pname ==
"lambda"
||
141
pname ==
"omega-"
||
142
pname ==
"pi-"
||
143
pname ==
"pi+"
||
144
pname ==
"sigma-"
||
145
pname ==
"sigma+"
||
146
pname ==
"xi-"
||
147
pname ==
"alpha"
||
148
pname ==
"deuteron"
||
149
pname ==
"triton"
150
) {
151
152
G4HadronElasticProcess
* hel =
new
G4HadronElasticProcess
();
153
hel->
RegisterMe
(lhep0);
154
pmanager->
AddDiscreteProcess
(hel);
155
156
}
else
if
(pname ==
"neutron"
|| pname ==
"proton"
) {
157
158
G4QElastic
* process =
new
G4QElastic
();
159
pmanager->
AddDiscreteProcess
(process);
160
161
if
(verbose > 0)
162
G4cout
<<
"### QElastic added for "
163
<< particle->
GetParticleName
() <<
G4endl
;
164
165
}
else
if
(
166
pname ==
"anti_proton"
||
167
pname ==
"anti_alpha"
||
168
pname ==
"anti_deuteron"
||
169
pname ==
"anti_triton"
||
170
pname ==
"anti_He3"
171
) {
172
173
G4HadronElasticProcess
* hel =
new
G4HadronElasticProcess
();
174
hel->
AddDataSet
(anucxs);
175
hel->
RegisterMe
(lhep1);
176
hel->
RegisterMe
(anuc);
177
pmanager->
AddDiscreteProcess
(hel);
178
179
}
180
181
}
182
}
G4AntiNuclElastic.hh
G4BaryonConstructor.hh
G4ComponentAntiNuclNuclearXS.hh
G4CrossSectionElastic.hh
G4HadronElasticProcess.hh
G4HadronElastic.hh
G4HadronQElasticPhysics.hh
G4HadronicInteraction.hh
G4IonConstructor.hh
G4MesonConstructor.hh
G4ParticleDefinition.hh
G4PhysicsConstructorFactory.hh
G4_DECLARE_PHYSCONSTR_FACTORY
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
Definition:
G4PhysicsConstructorFactory.hh:60
G4ProcessManager.hh
G4QElastic.hh
G4double
double G4double
Definition:
G4Types.hh:64
G4int
int G4int
Definition:
G4Types.hh:66
G4VQCrossSection.hh
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
G4CrossSectionElastic
Definition:
G4CrossSectionElastic.hh:62
G4HadronElasticProcess
Definition:
G4HadronElasticProcess.hh:50
G4HadronElastic
Definition:
G4HadronElastic.hh:51
G4HadronQElasticPhysics
Definition:
G4HadronQElasticPhysics.hh:46
G4HadronQElasticPhysics::G4HadronQElasticPhysics
G4HadronQElasticPhysics(G4int ver=1)
Definition:
G4HadronQElasticPhysics.cc:69
G4HadronQElasticPhysics::~G4HadronQElasticPhysics
virtual ~G4HadronQElasticPhysics()
Definition:
G4HadronQElasticPhysics.cc:89
G4HadronQElasticPhysics::ConstructParticle
virtual void ConstructParticle()
Definition:
G4HadronQElasticPhysics.cc:92
G4HadronQElasticPhysics::ConstructProcess
virtual void ConstructProcess()
Definition:
G4HadronQElasticPhysics.cc:105
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)
G4QElastic
Definition:
G4QElastic.hh:70
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
geant4-v9.6.0
source
physics_lists
builders
src
G4HadronQElasticPhysics.cc
Generated by
1.9.6