Geant4.10
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4.10.00.p01
examples
extended
hadronic
Hadr02
src
IonHIJINGPhysics.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
/// \file hadronic/Hadr02/src/IonHIJINGPhysics.cc
27
/// \brief Implementation of the IonHIJINGPhysics class
28
//
29
// $Id: IonHIJINGPhysics.cc,v 1.1 2006/10/28 16:00:25 vnivanch Exp $
30
// GEANT4 tag $Name: $
31
//
32
//---------------------------------------------------------------------------
33
//
34
// Class: IonHIJINGPhysics
35
//
36
// Author: 2012 Andrea Dotti
37
//
38
//
39
// Modified:
40
//
41
// ------------------------------------------------------------
42
//
43
#ifdef G4_USE_HIJING
44
#include "
IonHIJINGPhysics.hh
"
45
#include "
G4ParticleDefinition.hh
"
46
#include "
G4ProcessManager.hh
"
47
#include "
G4Deuteron.hh
"
48
#include "
G4Triton.hh
"
49
#include "
G4He3.hh
"
50
#include "
G4Alpha.hh
"
51
#include "
G4GenericIon.hh
"
52
#include "
G4SystemOfUnits.hh
"
53
#include "
G4HadronInelasticProcess.hh
"
54
55
#include "
G4HIJING_Model.hh
"
56
#include "
G4BinaryLightIonReaction.hh
"
57
#include "
G4ComponentGGNuclNuclXsc.hh
"
58
#include "
G4CrossSectionInelastic.hh
"
59
60
#include "
G4PreCompoundModel.hh
"
61
#include "
G4ExcitationHandler.hh
"
62
#include "
G4FTFBuilder.hh
"
63
#include "
G4HadronicInteraction.hh
"
64
#include "
G4BuilderType.hh
"
65
using namespace
std;
66
67
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
68
69
IonHIJINGPhysics::IonHIJINGPhysics
(
G4int
ver)
70
:
G4VHadronPhysics
(
"ionInelasticHIJING"
),fVerbose(ver),
71
fWasActivated(false)
72
{
73
fModel = 0;
74
SetPhysicsType
(
bIons
);
75
if
(fVerbose > 1) {
G4cout
<<
"### IonHIJINGPhysics"
<<
G4endl
; }
76
}
77
78
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
79
80
IonHIJINGPhysics::~IonHIJINGPhysics
()
81
{}
82
83
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
84
void
IonHIJINGPhysics::ConstructProcess
()
85
{
86
if
(fWasActivated) {
return
; }
87
fWasActivated =
true
;
88
89
G4double
emin = 0.*
MeV
;
90
G4double
emaxFTF = 25.*
GeV
;
91
G4double
eminHIJ = 12.*
GeV
;
92
G4double
emaxHIJ = 100.*
TeV
;
93
94
G4ExcitationHandler
* handler =
new
G4ExcitationHandler
();
95
G4PreCompoundModel
* thePreCompound =
new
G4PreCompoundModel
(handler);
96
97
// Binary Cascade
98
theIonBC =
new
G4BinaryLightIonReaction
(thePreCompound);
99
theIonBC->
SetMinEnergy
(0.0);
100
theIonBC->
SetMaxEnergy
(4*
GeV
);
//4
101
102
// FTFP
103
theBuilder =
new
G4FTFBuilder
(
"FTFP"
,thePreCompound);
104
theFTFP = theBuilder->
GetModel
();
105
theFTFP->
SetMinEnergy
(2*
GeV
);
106
theFTFP->
SetMaxEnergy
(emaxFTF);
107
108
//HIJING
109
fModel =
new
G4HIJING_Model
();
110
fModel->
SetMinEnergy
( eminHIJ );
111
fModel->
SetMaxEnergy
( emaxHIJ );
112
113
theNuclNuclData =
114
new
G4CrossSectionInelastic
(
new
G4ComponentGGNuclNuclXsc
() );
115
116
AddProcess(
"dInelastic"
,
G4Deuteron::Deuteron
(),
false
);
117
AddProcess(
"tInelastic"
,
G4Triton::Triton
(),
false
);
118
AddProcess(
"He3Inelastic"
,
G4He3::He3
(),
true
);
119
AddProcess(
"alphaInelastic"
,
G4Alpha::Alpha
(),
true
);
120
AddProcess(
"ionInelastic"
,
G4GenericIon::GenericIon
(),
true
);
121
122
if
(fVerbose > 1) {
123
G4cout
<<
"IonHIJINGPhysics::ConstructProcess done! "
124
<<
G4endl
;
125
}
126
}
127
128
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
129
130
void
IonHIJINGPhysics::AddProcess(
const
G4String
&
name
,
131
G4ParticleDefinition
* part,
G4bool
isIon)
132
{
133
G4HadronInelasticProcess
* hadi =
new
G4HadronInelasticProcess
(name, part);
134
G4ProcessManager
* pManager = part->
GetProcessManager
();
135
pManager->
AddDiscreteProcess
(hadi);
136
hadi->
AddDataSet
(theNuclNuclData);
137
hadi->
RegisterMe
( theIonBC );
138
hadi->
RegisterMe
( theFTFP );
139
hadi->
RegisterMe
( fModel );
140
}
141
142
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
143
#endif //HIJING
G4BinaryLightIonReaction.hh
G4GenericIon.hh
python.hepunit.GeV
GeV
Definition:
hepunit.py:120
IonHIJINGPhysics.hh
Definition of the IonHIJINGPhysics class.
G4Triton.hh
G4ExcitationHandler.hh
IonHIJINGPhysics::IonHIJINGPhysics
IonHIJINGPhysics(G4int ver=0)
python.hepunit.MeV
MeV
Definition:
hepunit.py:117
G4ProcessManager::AddDiscreteProcess
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
name
const XML_Char * name
Definition:
include/expat.h:151
G4ComponentGGNuclNuclXsc
Definition:
G4ComponentGGNuclNuclXsc.hh:50
G4BuilderType.hh
G4HIJING_Model.hh
G4ParticleDefinition
Definition:
G4ParticleDefinition.hh:111
IonHIJINGPhysics::ConstructProcess
void ConstructProcess()
G4ParticleDefinition::GetProcessManager
G4ProcessManager * GetProcessManager() const
G4int
int G4int
Definition:
G4Types.hh:78
G4HIJING_Model
Definition:
G4HIJING_Model.hh:60
G4FTFBuilder.hh
G4VHadronModelBuilder::GetModel
G4HadronicInteraction * GetModel()
Definition:
G4VHadronModelBuilder.cc:48
G4HadronicProcess::RegisterMe
void RegisterMe(G4HadronicInteraction *a)
Definition:
G4HadronicProcess.cc:142
G4FTFBuilder
Definition:
G4FTFBuilder.hh:50
G4HadronicInteraction::SetMinEnergy
void SetMinEnergy(G4double anEnergy)
Definition:
G4HadronicInteraction.hh:90
G4HadronicProcess::AddDataSet
void AddDataSet(G4VCrossSectionDataSet *aDataSet)
Definition:
G4HadronicProcess.hh:117
G4PreCompoundModel.hh
G4cout
G4GLOB_DLL std::ostream G4cout
G4PreCompoundModel
Definition:
G4PreCompoundModel.hh:64
G4bool
bool G4bool
Definition:
G4Types.hh:79
G4ExcitationHandler
Definition:
G4ExcitationHandler.hh:63
G4CrossSectionInelastic
Definition:
G4CrossSectionInelastic.hh:61
G4Alpha.hh
G4Triton::Triton
static G4Triton * Triton()
Definition:
G4Triton.cc:95
G4ProcessManager.hh
G4ParticleDefinition.hh
G4VHadronPhysics
Definition:
G4VHadronPhysics.hh:51
G4BinaryLightIonReaction
Definition:
G4BinaryLightIonReaction.hh:34
G4HadronInelasticProcess.hh
G4Deuteron::Deuteron
static G4Deuteron * Deuteron()
Definition:
G4Deuteron.cc:94
G4Deuteron.hh
bIons
Definition:
G4BuilderType.hh:54
IonHIJINGPhysics::~IonHIJINGPhysics
virtual ~IonHIJINGPhysics()
G4HadronInelasticProcess
Definition:
G4HadronInelasticProcess.hh:48
G4GenericIon::GenericIon
static G4GenericIon * GenericIon()
Definition:
G4GenericIon.cc:93
G4HadronicInteraction.hh
G4He3.hh
G4HadronicInteraction::SetMaxEnergy
void SetMaxEnergy(const G4double anEnergy)
Definition:
G4HadronicInteraction.hh:103
G4endl
#define G4endl
Definition:
G4ios.hh:61
G4ProcessManager
Definition:
G4ProcessManager.hh:106
G4Alpha::Alpha
static G4Alpha * Alpha()
Definition:
G4Alpha.cc:89
G4double
double G4double
Definition:
G4Types.hh:76
G4SystemOfUnits.hh
G4CrossSectionInelastic.hh
G4He3::He3
static G4He3 * He3()
Definition:
G4He3.cc:94
G4VPhysicsConstructor::SetPhysicsType
void SetPhysicsType(G4int)
Definition:
G4VPhysicsConstructor.hh:199
python.hepunit.TeV
TeV
Definition:
hepunit.py:121
G4ComponentGGNuclNuclXsc.hh
G4String
Definition:
examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4String.hh:45
Generated on Wed Apr 30 2014 15:55:15 for Geant4.10 by
1.8.7