Geant4
9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HadronElasticPhysicsLHEP.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: G4HadronElasticPhysicsLHEP
31
//
32
// Author: 3 June 2010 V. Ivanchenko
33
//
34
// Modified:
35
//
36
//----------------------------------------------------------------------------
37
//
38
// LHEP x-sectios and sampling
39
40
#include "
G4HadronElasticPhysicsLHEP.hh
"
41
42
#include "
G4HadronicProcess.hh
"
43
#include "
G4HadronElasticProcess.hh
"
44
#include "
G4HadronicInteraction.hh
"
45
#include "
G4LElastic.hh
"
46
47
#include "
G4ParticleDefinition.hh
"
48
#include "
G4ProcessManager.hh
"
49
50
#include "
G4MesonConstructor.hh
"
51
#include "
G4BaryonConstructor.hh
"
52
#include "
G4IonConstructor.hh
"
53
#include "
G4Neutron.hh
"
54
55
// factory
56
#include "
G4PhysicsConstructorFactory.hh
"
57
//
58
G4_DECLARE_PHYSCONSTR_FACTORY
(
G4HadronElasticPhysicsLHEP
);
59
60
61
G4HadronElasticPhysicsLHEP::G4HadronElasticPhysicsLHEP
(
G4int
ver)
62
:
G4VPhysicsConstructor
(
"hElasticLHEP"
), verbose(ver),
63
wasActivated(false)
64
{
65
if
(verbose > 1) {
66
G4cout
<<
"### G4HadronElasticPhysicsLHEP: "
<<
GetPhysicsName
()
67
<<
G4endl
;
68
}
69
}
70
71
G4HadronElasticPhysicsLHEP::~G4HadronElasticPhysicsLHEP
()
72
{}
73
74
void
G4HadronElasticPhysicsLHEP::ConstructParticle
()
75
{
76
// G4cout << "G4HadronElasticPhysicsLHEP::ConstructParticle" << G4endl;
77
G4MesonConstructor
pMesonConstructor;
78
pMesonConstructor.
ConstructParticle
();
79
80
G4BaryonConstructor
pBaryonConstructor;
81
pBaryonConstructor.
ConstructParticle
();
82
83
// Construct light ions
84
G4IonConstructor
pConstructor;
85
pConstructor.
ConstructParticle
();
86
}
87
88
void
G4HadronElasticPhysicsLHEP::ConstructProcess
()
89
{
90
if
(wasActivated)
return
;
91
wasActivated =
true
;
92
93
if
(verbose > 1) {
94
G4cout
<<
"### HadronElasticPhysicsLHEP Construct Processes"
95
<<
G4endl
;
96
}
97
G4HadronicProcess
* hel = 0;
98
G4HadronicInteraction
* model =
new
G4LElastic
();
99
100
theParticleIterator
->
reset
();
101
while
( (*
theParticleIterator
)() )
102
{
103
G4ParticleDefinition
* particle =
theParticleIterator
->
value
();
104
G4ProcessManager
* pmanager = particle->
GetProcessManager
();
105
G4String
pname = particle->
GetParticleName
();
106
if
(pname ==
"anti_lambda"
||
107
pname ==
"anti_neutron"
||
108
pname ==
"anti_omega-"
||
109
pname ==
"anti_proton"
||
110
pname ==
"anti_sigma-"
||
111
pname ==
"anti_sigma+"
||
112
pname ==
"anti_xi-"
||
113
pname ==
"anti_xi0"
||
114
pname ==
"kaon-"
||
115
pname ==
"kaon+"
||
116
pname ==
"kaon0S"
||
117
pname ==
"kaon0L"
||
118
pname ==
"lambda"
||
119
pname ==
"omega-"
||
120
pname ==
"sigma-"
||
121
pname ==
"sigma+"
||
122
pname ==
"xi-"
||
123
pname ==
"neutron"
||
124
pname ==
"proton"
||
125
pname ==
"pi+"
||
126
pname ==
"pi-"
||
127
pname ==
"alpha"
||
128
pname ==
"deuteron"
||
129
pname ==
"triton"
) {
130
131
hel =
new
G4HadronElasticProcess
();
132
hel->
RegisterMe
(model);
133
pmanager->
AddDiscreteProcess
(hel);
134
if
(verbose > 1) {
135
G4cout
<<
"### HadronElasticPhysicsLHEP added for "
136
<< particle->
GetParticleName
() <<
G4endl
;
137
}
138
}
139
}
140
}
141
142
G4BaryonConstructor.hh
G4HadronElasticPhysicsLHEP.hh
G4HadronElasticProcess.hh
G4HadronicInteraction.hh
G4HadronicProcess.hh
G4IonConstructor.hh
G4LElastic.hh
G4MesonConstructor.hh
G4Neutron.hh
G4ParticleDefinition.hh
G4PhysicsConstructorFactory.hh
G4_DECLARE_PHYSCONSTR_FACTORY
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
Definition:
G4PhysicsConstructorFactory.hh:60
G4ProcessManager.hh
G4int
int G4int
Definition:
G4Types.hh:66
G4endl
#define G4endl
Definition:
G4ios.hh:52
G4cout
G4DLLIMPORT std::ostream G4cout
G4BaryonConstructor
Definition:
G4BaryonConstructor.hh:40
G4BaryonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4BaryonConstructor.cc:102
G4HadronElasticPhysicsLHEP
Definition:
G4HadronElasticPhysicsLHEP.hh:48
G4HadronElasticPhysicsLHEP::ConstructParticle
virtual void ConstructParticle()
Definition:
G4HadronElasticPhysicsLHEP.cc:74
G4HadronElasticPhysicsLHEP::G4HadronElasticPhysicsLHEP
G4HadronElasticPhysicsLHEP(G4int ver=1)
Definition:
G4HadronElasticPhysicsLHEP.cc:61
G4HadronElasticPhysicsLHEP::ConstructProcess
virtual void ConstructProcess()
Definition:
G4HadronElasticPhysicsLHEP.cc:88
G4HadronElasticPhysicsLHEP::~G4HadronElasticPhysicsLHEP
virtual ~G4HadronElasticPhysicsLHEP()
Definition:
G4HadronElasticPhysicsLHEP.cc:71
G4HadronElasticProcess
Definition:
G4HadronElasticProcess.hh:50
G4HadronicInteraction
Definition:
G4HadronicInteraction.hh:64
G4HadronicProcess
Definition:
G4HadronicProcess.hh:70
G4HadronicProcess::RegisterMe
void RegisterMe(G4HadronicInteraction *a)
Definition:
G4HadronicProcess.cc:142
G4IonConstructor
Definition:
G4IonConstructor.hh:40
G4IonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4IonConstructor.cc:59
G4LElastic
Definition:
G4LElastic.hh:62
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
geant4-v9.6.0
source
physics_lists
builders
src
G4HadronElasticPhysicsLHEP.cc
Generated by
1.9.6