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
source
physics_lists
builders
src
G4IonLHEPPhysics.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: G4IonLHEPPhysics
31
//
32
// Author: A.Ribon 16-Oct-2012
33
// Copied from the original G4IonPhysics and renamed.
34
//
35
// Modified:
36
//
37
//----------------------------------------------------------------------------
38
//
39
40
#include "
G4IonLHEPPhysics.hh
"
41
42
#include "
G4DeuteronInelasticProcess.hh
"
43
#include "
G4LEDeuteronInelastic.hh
"
44
45
#include "
G4TritonInelasticProcess.hh
"
46
#include "
G4LETritonInelastic.hh
"
47
48
#include "
G4AlphaInelasticProcess.hh
"
49
#include "
G4LEAlphaInelastic.hh
"
50
51
#include "
G4ParticleDefinition.hh
"
52
#include "
G4ParticleTable.hh
"
53
#include "
G4ProcessManager.hh
"
54
55
// Nuclei
56
#include "
G4IonConstructor.hh
"
57
#include "
G4BuilderType.hh
"
58
59
#include "
G4HadronicDeprecate.hh
"
60
61
// factory
62
#include "
G4PhysicsConstructorFactory.hh
"
63
//
64
G4_DECLARE_PHYSCONSTR_FACTORY
(
G4IonLHEPPhysics
);
65
66
G4IonLHEPPhysics::G4IonLHEPPhysics
(
G4int
)
67
:
G4VPhysicsConstructor
(
"IonPhysics"
)
68
, wasActivated(false)
69
{
70
G4HadronicDeprecate
(
"G4IonLHEPPhysics"
);
71
SetPhysicsType
(
bIons
);
72
fDeuteronProcess = 0;
73
fDeuteronModel = 0;
74
fTritonProcess = 0;
75
fTritonModel = 0;
76
fAlphaProcess = 0;
77
fAlphaModel = 0;
78
}
79
80
G4IonLHEPPhysics::G4IonLHEPPhysics
(
const
G4String
&
name
)
81
:
G4VPhysicsConstructor
(name), wasActivated(false)
82
{
83
G4HadronicDeprecate
(
"G4IonLHEPPhysics"
);
84
SetPhysicsType
(
bIons
);
85
fDeuteronProcess = 0;
86
fDeuteronModel = 0;
87
fTritonProcess = 0;
88
fTritonModel = 0;
89
fAlphaProcess = 0;
90
fAlphaModel = 0;
91
}
92
93
G4IonLHEPPhysics::~G4IonLHEPPhysics
()
94
{
95
if
(wasActivated) {
96
97
delete
fDeuteronProcess;
98
delete
fDeuteronModel;
99
delete
fTritonProcess;
100
delete
fTritonModel;
101
delete
fAlphaProcess;
102
delete
fAlphaModel;
103
104
}
105
}
106
107
void
G4IonLHEPPhysics::ConstructProcess
()
108
{
109
G4ProcessManager
* pManager = 0;
110
111
// Deuteron
112
pManager =
G4Deuteron::Deuteron
()->
GetProcessManager
();
113
// add process
114
fDeuteronModel =
new
G4LEDeuteronInelastic
();
115
fDeuteronProcess =
new
G4DeuteronInelasticProcess
();
116
fDeuteronProcess->
RegisterMe
(fDeuteronModel);
117
pManager->
AddDiscreteProcess
(fDeuteronProcess);
118
119
// Triton
120
pManager =
G4Triton::Triton
()->
GetProcessManager
();
121
// add process
122
fTritonModel =
new
G4LETritonInelastic
();
123
fTritonProcess =
new
G4TritonInelasticProcess
();
124
fTritonProcess->
RegisterMe
(fTritonModel);
125
pManager->
AddDiscreteProcess
(fTritonProcess);
126
127
// Alpha
128
pManager =
G4Alpha::Alpha
()->
GetProcessManager
();
129
// add process
130
fAlphaModel =
new
G4LEAlphaInelastic
();
131
fAlphaProcess =
new
G4AlphaInelasticProcess
();
132
fAlphaProcess->
RegisterMe
(fAlphaModel);
133
pManager->
AddDiscreteProcess
(fAlphaProcess);
134
135
wasActivated =
true
;
136
}
137
138
void
G4IonLHEPPhysics::ConstructParticle
()
139
{
140
// Construct light ions
141
G4IonConstructor
pConstructor;
142
pConstructor.
ConstructParticle
();
143
}
Generated on Sat May 25 2013 14:33:27 for Geant4 by
1.8.4