Geant4
9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4IonPhysics.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
// GEANT4 tag $Name: $
28
//
29
//---------------------------------------------------------------------------
30
//
31
// Class: G4IonPhysics
32
//
33
// Author: A.Ivanchenko 02.03.2011
34
//
35
// Modified:
36
// 16.10.2012 A.Ribon: renamed G4IonFTFPBinaryCascadePhysics as G4IonPhysics
37
//
38
//---------------------------------------------------------------------------
39
40
#include "
G4IonPhysics.hh
"
41
#include "
G4SystemOfUnits.hh
"
42
#include "
G4ParticleDefinition.hh
"
43
#include "
G4ProcessManager.hh
"
44
#include "
G4Deuteron.hh
"
45
#include "
G4Triton.hh
"
46
#include "
G4He3.hh
"
47
#include "
G4Alpha.hh
"
48
#include "
G4GenericIon.hh
"
49
#include "
G4IonConstructor.hh
"
50
51
#include "
G4HadronInelasticProcess.hh
"
52
#include "
G4BinaryLightIonReaction.hh
"
53
//#include "G4TripathiCrossSection.hh"
54
//#include "G4TripathiLightCrossSection.hh"
55
//#include "G4IonsShenCrossSection.hh"
56
//#include "G4IonProtonCrossSection.hh"
57
#include "
G4GGNuclNuclCrossSection.hh
"
58
59
#include "
G4PreCompoundModel.hh
"
60
#include "
G4ExcitationHandler.hh
"
61
#include "
G4FTFBuilder.hh
"
62
#include "
G4HadronicInteraction.hh
"
63
#include "
G4BuilderType.hh
"
64
65
#include "
G4CrossSectionDataSetRegistry.hh
"
66
67
using namespace
std;
68
69
// factory
70
#include "
G4PhysicsConstructorFactory.hh
"
71
//
72
G4_DECLARE_PHYSCONSTR_FACTORY
(
G4IonPhysics
);
73
74
75
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
76
77
G4IonPhysics::G4IonPhysics
(
G4int
ver)
78
:
G4VPhysicsConstructor
(
"ionInelasticFTFP_BIC"
),verbose(ver),
79
wasActivated(false)
80
{
81
// fTripathi = fTripathiLight = fShen = fIonH = 0;
82
fGGNuclNucl=0;
83
theIonBC = 0;
84
theFTFP = 0;
85
theBuilder = 0;
86
SetPhysicsType
(
bIons
);
87
if
(verbose > 1) {
G4cout
<<
"### G4IonPhysics"
<<
G4endl
; }
88
}
89
90
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
91
92
G4IonPhysics::G4IonPhysics
(
const
G4String
& nname)
93
:
G4VPhysicsConstructor
(nname),verbose(1),
94
wasActivated(false)
95
{
96
// fTripathi = fTripathiLight = fShen = fIonH = 0;
97
fGGNuclNucl=0;
98
theIonBC = 0;
99
theFTFP = 0;
100
theBuilder = 0;
101
SetPhysicsType
(
bIons
);
102
if
(verbose > 1) {
G4cout
<<
"### G4IonPhysics"
<<
G4endl
; }
103
}
104
105
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
106
107
G4IonPhysics::~G4IonPhysics
()
108
{
109
delete
theBuilder;
110
}
111
112
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
113
114
void
G4IonPhysics::ConstructParticle
()
115
{
116
// Construct ions
117
G4IonConstructor
pConstructor;
118
pConstructor.
ConstructParticle
();
119
}
120
121
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
122
123
void
G4IonPhysics::ConstructProcess
()
124
{
125
if
(wasActivated) {
return
; }
126
wasActivated =
true
;
127
128
G4double
emax = 100.*TeV;
129
130
G4ExcitationHandler
* handler =
new
G4ExcitationHandler
();
131
G4PreCompoundModel
* thePreCompound =
new
G4PreCompoundModel
(handler);
132
133
// Binary Cascade
134
theIonBC =
new
G4BinaryLightIonReaction
(thePreCompound);
135
theIonBC->
SetMinEnergy
(0.0);
136
theIonBC->
SetMaxEnergy
(4*GeV);
137
138
// FTFP
139
theBuilder =
new
G4FTFBuilder
(
"FTFP"
,thePreCompound);
140
theFTFP = theBuilder->
GetModel
();
141
theFTFP->
SetMinEnergy
(2*GeV);
142
theFTFP->
SetMaxEnergy
(emax);
143
144
//fShen = new G4IonsShenCrossSection();
145
//fTripathi = new G4TripathiCrossSection();
146
//fTripathiLight = new G4TripathiLightCrossSection();
147
//fIonH = new G4IonProtonCrossSection();
148
fGGNuclNucl =
G4CrossSectionDataSetRegistry::Instance
()->
GetCrossSectionDataSet
(
G4GGNuclNuclCrossSection::Default_Name
());
149
150
AddProcess(
"dInelastic"
,
G4Deuteron::Deuteron
(),
false
);
151
AddProcess(
"tInelastic"
,
G4Triton::Triton
(),
false
);
152
AddProcess(
"He3Inelastic"
,
G4He3::He3
(),
true
);
153
AddProcess(
"alphaInelastic"
,
G4Alpha::Alpha
(),
true
);
154
AddProcess(
"ionInelastic"
,
G4GenericIon::GenericIon
(),
true
);
155
156
if
(verbose > 1) {
157
G4cout
<<
"G4IonPhysics::ConstructProcess done! "
158
<<
G4endl
;
159
}
160
}
161
162
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
163
164
void
G4IonPhysics::AddProcess(
const
G4String
& name,
165
G4ParticleDefinition
* part,
166
G4bool
)
//isIon)
167
{
168
G4HadronInelasticProcess
* hadi =
new
G4HadronInelasticProcess
(name, part);
169
G4ProcessManager
* pManager = part->
GetProcessManager
();
170
pManager->
AddDiscreteProcess
(hadi);
171
/*
172
hadi->AddDataSet(fShen);
173
//hadi->AddDataSet(fTripathi);
174
//hadi->AddDataSet(fTripathiLight);
175
if(isIon) { hadi->AddDataSet(fIonH); }
176
*/
177
178
hadi->
AddDataSet
(fGGNuclNucl);
179
180
hadi->
RegisterMe
(theIonBC);
181
hadi->
RegisterMe
(theFTFP);
182
}
183
184
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4Alpha.hh
G4BinaryLightIonReaction.hh
G4BuilderType.hh
bIons
@ bIons
Definition:
G4BuilderType.hh:54
G4CrossSectionDataSetRegistry.hh
G4Deuteron.hh
G4ExcitationHandler.hh
G4FTFBuilder.hh
G4GGNuclNuclCrossSection.hh
G4GenericIon.hh
G4HadronInelasticProcess.hh
G4HadronicInteraction.hh
G4He3.hh
G4IonConstructor.hh
G4IonPhysics.hh
G4ParticleDefinition.hh
G4PhysicsConstructorFactory.hh
G4_DECLARE_PHYSCONSTR_FACTORY
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
Definition:
G4PhysicsConstructorFactory.hh:60
G4PreCompoundModel.hh
G4ProcessManager.hh
G4SystemOfUnits.hh
G4Triton.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
G4Alpha::Alpha
static G4Alpha * Alpha()
Definition:
G4Alpha.cc:89
G4BinaryLightIonReaction
Definition:
G4BinaryLightIonReaction.hh:35
G4CrossSectionDataSetRegistry::GetCrossSectionDataSet
G4VCrossSectionDataSet * GetCrossSectionDataSet(const G4String &name, G4bool warning=true)
Definition:
G4CrossSectionDataSetRegistry.cc:137
G4CrossSectionDataSetRegistry::Instance
static G4CrossSectionDataSetRegistry * Instance()
Definition:
G4CrossSectionDataSetRegistry.cc:74
G4Deuteron::Deuteron
static G4Deuteron * Deuteron()
Definition:
G4Deuteron.cc:94
G4ExcitationHandler
Definition:
G4ExcitationHandler.hh:64
G4FTFBuilder
Definition:
G4FTFBuilder.hh:51
G4GGNuclNuclCrossSection::Default_Name
static const char * Default_Name()
Definition:
G4GGNuclNuclCrossSection.hh:57
G4GenericIon::GenericIon
static G4GenericIon * GenericIon()
Definition:
G4GenericIon.cc:92
G4HadronInelasticProcess
Definition:
G4HadronInelasticProcess.hh:49
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
G4He3::He3
static G4He3 * He3()
Definition:
G4He3.cc:94
G4IonConstructor
Definition:
G4IonConstructor.hh:40
G4IonConstructor::ConstructParticle
static void ConstructParticle()
Definition:
G4IonConstructor.cc:59
G4IonPhysics
Definition:
G4IonPhysics.hh:53
G4IonPhysics::ConstructParticle
void ConstructParticle()
Definition:
G4IonPhysics.cc:114
G4IonPhysics::~G4IonPhysics
virtual ~G4IonPhysics()
Definition:
G4IonPhysics.cc:107
G4IonPhysics::ConstructProcess
void ConstructProcess()
Definition:
G4IonPhysics.cc:123
G4IonPhysics::G4IonPhysics
G4IonPhysics(G4int ver=0)
Definition:
G4IonPhysics.cc:77
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:68
G4ParticleDefinition::GetProcessManager
G4ProcessManager * GetProcessManager() const
G4PreCompoundModel
Definition:
G4PreCompoundModel.hh:65
G4ProcessManager
Definition:
G4ProcessManager.hh:107
G4ProcessManager::AddDiscreteProcess
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
G4String
Definition:
G4String.hh:105
G4Triton::Triton
static G4Triton * Triton()
Definition:
G4Triton.cc:95
G4VHadronModelBuilder::GetModel
G4HadronicInteraction * GetModel()
Definition:
G4VHadronModelBuilder.cc:48
G4VPhysicsConstructor
Definition:
G4VPhysicsConstructor.hh:69
G4VPhysicsConstructor::SetPhysicsType
void SetPhysicsType(G4int)
Definition:
G4VPhysicsConstructor.hh:141
geant4-v9.6.0
source
physics_lists
builders
src
G4IonPhysics.cc
Generated by
1.9.6