forked from sPHENIX-Collaboration/coresoftware
/
IonPhysics.cc
204 lines (160 loc) · 6.86 KB
/
IonPhysics.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
// $Id: $
////////////////////////////////////////////////////////////////////////////////
// //
// File: IonPhysics.cc //
// Description: Ion hadronic physics constructor for EICPhysicsList //
// //
// Author: Dennis H. Wright (SLAC) //
// Date: 6 July 2018 //
// //
////////////////////////////////////////////////////////////////////////////////
#include "IonPhysics.hh"
#include <Geant4/G4ProcessManager.hh>
#include <Geant4/G4HadronElasticProcess.hh>
#include <Geant4/G4HadronInelasticProcess.hh>
#include <Geant4/G4TheoFSGenerator.hh>
#include <Geant4/G4FTFModel.hh>
#include <Geant4/G4ExcitedStringDecay.hh>
#include <Geant4/G4LundStringFragmentation.hh>
#include <Geant4/G4GeneratorPrecompoundInterface.hh>
#include <Geant4/G4QMDReaction.hh>
#include <Geant4/G4HadronicInteractionRegistry.hh>
#include <Geant4/G4PreCompoundModel.hh>
#include <Geant4/G4BinaryLightIonReaction.hh>
#include <Geant4/G4HadronElastic.hh>
#include <Geant4/G4NuclNuclDiffuseElastic.hh>
#include <Geant4/G4CrossSectionElastic.hh>
#include <Geant4/G4CrossSectionInelastic.hh>
#include <Geant4/G4ComponentGGNuclNuclXsc.hh>
#include <Geant4/G4SystemOfUnits.hh>
IonPhysics::IonPhysics():
ftfp(nullptr),
stringModel(nullptr),
stringDecay(nullptr),
fragModel(nullptr),
preCompoundModel(nullptr),
theGGNuclNuclXS(nullptr),
ionGGXS(nullptr)
{}
IonPhysics::~IonPhysics()
{
delete stringDecay;
delete stringModel;
delete fragModel;
delete preCompoundModel;
delete theGGNuclNuclXS;
delete ionGGXS;
}
void IonPhysics::ConstructParticle()
{}
void IonPhysics::ConstructProcess()
{
G4ProcessManager* procMan = 0;
// Elastic model for generic ions (z > 2)
G4NuclNuclDiffuseElastic* ionElastic = new G4NuclNuclDiffuseElastic;
ionElastic->SetMinEnergy(0.0);
// FTFP ==>> eventually replace this with new class FTFPInterface
ftfp = new G4TheoFSGenerator("FTFP");
stringModel = new G4FTFModel;
stringDecay =
new G4ExcitedStringDecay(fragModel = new G4LundStringFragmentation);
stringModel->SetFragmentationModel(stringDecay);
preCompoundModel = new G4GeneratorPrecompoundInterface();
ftfp->SetHighEnergyGenerator(stringModel);
ftfp->SetTransport(preCompoundModel);
ftfp->SetMinEnergy(10.01*GeV);
ftfp->SetMaxEnergy(1.0*TeV);
// QMD model
G4QMDReaction* qmd = new G4QMDReaction;
qmd->SetMinEnergy(100.0*MeV);
qmd->SetMaxEnergy(10.0*GeV);
// BIC ion model
G4HadronicInteraction* p =
G4HadronicInteractionRegistry::Instance()->FindModel("PRECO");
G4PreCompoundModel* thePreCompound = static_cast<G4PreCompoundModel*>(p);
if(!thePreCompound) { thePreCompound = new G4PreCompoundModel; }
G4BinaryLightIonReaction* ionBC = new G4BinaryLightIonReaction(thePreCompound);
ionBC->SetMinEnergy(0.0*MeV);
ionBC->SetMaxEnergy(110.0*MeV);
// Elastic cross section set
ionGGXS = new G4ComponentGGNuclNuclXsc;
G4VCrossSectionDataSet* ionElasticXS = new G4CrossSectionElastic(ionGGXS);
ionElasticXS->SetMinKinEnergy(0.0);
// Inelastic cross section set
theGGNuclNuclXS = new G4ComponentGGNuclNuclXsc();
G4VCrossSectionDataSet* nuclNuclXS =
new G4CrossSectionInelastic(theGGNuclNuclXS);
//////////////////////////////////////////////////////////////////////////////
// Deuteron //
//////////////////////////////////////////////////////////////////////////////
procMan = G4Deuteron::Deuteron()->GetProcessManager();
// elastic
// no model available
// inelastic
G4HadronInelasticProcess* deutProcInel =
new G4HadronInelasticProcess("DeuteronInelProcess", G4Deuteron::Deuteron() );
deutProcInel->RegisterMe(ionBC);
deutProcInel->RegisterMe(qmd);
deutProcInel->RegisterMe(ftfp);
deutProcInel->AddDataSet(nuclNuclXS);
procMan->AddDiscreteProcess(deutProcInel);
//////////////////////////////////////////////////////////////////////////////
// Triton //
//////////////////////////////////////////////////////////////////////////////
procMan = G4Triton::Triton()->GetProcessManager();
// elastic
// no model available
// inelastic
G4HadronInelasticProcess* tritProcInel =
new G4HadronInelasticProcess("TritonInelProcess", G4Triton::Triton() );
tritProcInel->RegisterMe(ionBC);
tritProcInel->RegisterMe(qmd);
tritProcInel->RegisterMe(ftfp);
tritProcInel->AddDataSet(nuclNuclXS);
procMan->AddDiscreteProcess(tritProcInel);
//////////////////////////////////////////////////////////////////////////////
// He3 //
//////////////////////////////////////////////////////////////////////////////
procMan = G4He3::He3()->GetProcessManager();
// elastic
// no model available
// inelastic
G4HadronInelasticProcess* he3ProcInel =
new G4HadronInelasticProcess("He3InelProcess", G4He3::He3() );
he3ProcInel->RegisterMe(ionBC);
he3ProcInel->RegisterMe(qmd);
he3ProcInel->RegisterMe(ftfp);
he3ProcInel->AddDataSet(nuclNuclXS);
procMan->AddDiscreteProcess(he3ProcInel);
//////////////////////////////////////////////////////////////////////////////
// Alpha //
//////////////////////////////////////////////////////////////////////////////
procMan = G4Alpha::Alpha()->GetProcessManager();
// elastic
// no model available
// inelastic
G4HadronInelasticProcess* alphProcInel =
new G4HadronInelasticProcess("AlphaInelProcess", G4Alpha::Alpha() );
alphProcInel->RegisterMe(ionBC);
alphProcInel->RegisterMe(qmd);
alphProcInel->RegisterMe(ftfp);
alphProcInel->AddDataSet(nuclNuclXS);
procMan->AddDiscreteProcess(alphProcInel);
//////////////////////////////////////////////////////////////////////////////
// Generic ion //
//////////////////////////////////////////////////////////////////////////////
procMan = G4GenericIon::GenericIon()->GetProcessManager();
// elastic
G4HadronElasticProcess* ionProcEl = new G4HadronElasticProcess;
ionProcEl->RegisterMe(ionElastic);
ionProcEl->AddDataSet(ionElasticXS);
procMan->AddDiscreteProcess(ionProcEl);
// inelastic
G4HadronInelasticProcess* genIonProcInel =
new G4HadronInelasticProcess("IonInelProcess", G4GenericIon::GenericIon() );
genIonProcInel->RegisterMe(ionBC);
genIonProcInel->RegisterMe(qmd);
genIonProcInel->RegisterMe(ftfp);
genIonProcInel->AddDataSet(nuclNuclXS);
procMan->AddDiscreteProcess(genIonProcInel);
}