Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
examples
extended
hadronic
Hadr02
src
IonDPMJETPhysics.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
//
28
//
29
// $Id: IonABPhysics.cc,v 1.1 2006/10/28 16:00:25 vnivanch Exp $
30
// GEANT4 tag $Name: gras-02-05-02 $
31
//
32
//---------------------------------------------------------------------------
33
//
34
// Class: IonDPMJETPhysics
35
//
36
// Author: A.Ivanchenko 26.08.2010
37
//
38
// This class was designed under ESA contracts
39
//
40
// Customer:
41
// Contract:
42
//
43
//
44
// Modified:
45
//
46
// ------------------------------------------------------------
47
//
48
49
#include "
IonDPMJETPhysics.hh
"
50
#include "
G4ParticleDefinition.hh
"
51
#include "
G4ProcessManager.hh
"
52
#include "
G4Deuteron.hh
"
53
#include "
G4Triton.hh
"
54
#include "
G4He3.hh
"
55
#include "
G4Alpha.hh
"
56
#include "
G4GenericIon.hh
"
57
58
#include "
G4HadronInelasticProcess.hh
"
59
#include "
G4BinaryLightIonReaction.hh
"
60
#include "
G4TripathiCrossSection.hh
"
61
#include "
G4TripathiLightCrossSection.hh
"
62
#include "
G4IonsShenCrossSection.hh
"
63
#include "
G4IonProtonCrossSection.hh
"
64
65
#include "
G4BuilderType.hh
"
66
67
#ifdef G4_USE_DPMJET
68
#include "
G4DPMJET2_5Model.hh
"
69
#include "
G4DPMJET2_5Interface.hh
"
70
#include "
G4DPMJET2_5CrossSection.hh
"
71
#endif
72
73
#include "
G4SystemOfUnits.hh
"
74
75
using namespace
std;
76
77
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
78
79
IonDPMJETPhysics::IonDPMJETPhysics
(
G4bool
val)
80
:
G4VHadronPhysics
(
"ionInelasticDPMJET"
),fIonBC(0),fDPM(0),
81
fUseDPMJETXS(val)
82
{
83
fTripathi = fTripathiLight = fShen = fIonH = 0;
84
SetPhysicsType
(
bIons
);
85
}
86
87
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
88
89
IonDPMJETPhysics::~IonDPMJETPhysics
()
90
{}
91
92
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
93
94
void
IonDPMJETPhysics::ConstructProcess
()
95
{
96
G4double
emax = 1000.*
TeV
;
97
98
fIonBC =
new
G4BinaryLightIonReaction
();
99
fIonBC->
SetMinEnergy
(0.0);
100
fIonBC->
SetMaxEnergy
(6*
GeV
);
101
102
fShen =
new
G4IonsShenCrossSection
();
103
fTripathi =
new
G4TripathiCrossSection
();
104
fTripathiLight =
new
G4TripathiLightCrossSection
();
105
fIonH =
new
G4IonProtonCrossSection
();
106
107
fShen->
SetMaxKinEnergy
(emax);
108
fTripathi->
SetMaxKinEnergy
(emax);
109
fTripathiLight->
SetMaxKinEnergy
(emax);
110
fIonH->
SetMaxKinEnergy
(emax);
111
112
#ifdef G4_USE_DPMJET
113
fDPM =
new
G4DPMJET2_5Model
();
114
fDPM->
SetMinEnergy
(5*
GeV
);
115
fDPM->
SetMaxEnergy
(emax);
116
if
(fUseDPMJETXS) { fDpmXS =
new
G4DPMJET2_5CrossSection
; }
117
#endif
118
119
AddProcess(
"dInelastic"
,
G4Deuteron::Deuteron
(),
false
);
120
AddProcess(
"tInelastic"
,
G4Triton::Triton
(),
false
);
121
AddProcess(
"He3Inelastic"
,
G4He3::He3
(),
true
);
122
AddProcess(
"alphaInelastic"
,
G4Alpha::Alpha
(),
true
);
123
AddProcess(
"ionInelastic"
,
G4GenericIon::GenericIon
(),
true
);
124
125
G4cout
<<
"IonDPMJETPhysics::ConstructProcess done! "
<<
G4endl
;
126
}
127
128
void
IonDPMJETPhysics::AddProcess(
const
G4String
&
name
,
129
G4ParticleDefinition
*
part
,
130
G4bool
isIon)
131
{
132
G4HadronInelasticProcess
* hadi =
new
G4HadronInelasticProcess
(name, part);
133
G4ProcessManager
* pManager = part->
GetProcessManager
();
134
pManager->
AddDiscreteProcess
(hadi);
135
hadi->
AddDataSet
(fShen);
136
//hadi->AddDataSet(fTripathi);
137
//hadi->AddDataSet(fTripathiLight);
138
if
(isIon) { hadi->
AddDataSet
(fIonH); }
139
hadi->
RegisterMe
(fIonBC);
140
#ifdef G4_USE_DPMJET
141
hadi->
RegisterMe
(fDPM);
142
if
(fUseDPMJETXS) { hadi->
AddDataSet
(fDpmXS); }
143
#endif
144
}
145
146
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
147
148
149
Generated on Sat May 25 2013 14:32:57 for Geant4 by
1.8.4