ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4DNAExcitation.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4DNAExcitation.cc
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
27
#include "
G4DNAExcitation.hh
"
28
#include "
G4LEPTSExcitationModel.hh
"
29
#include "
G4SystemOfUnits.hh
"
30
#include "
G4Positron.hh
"
31
32
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
33
34
using namespace
std;
35
36
G4DNAExcitation::G4DNAExcitation
(
const
G4String
& processName,
37
G4ProcessType
type) :
38
G4VEmProcess
(processName, type), isInitialised(
false
)
39
{
40
SetProcessSubType
(52);
41
}
42
43
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
44
45
G4DNAExcitation::~G4DNAExcitation
()
46
{
47
}
48
49
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
50
51
G4bool
G4DNAExcitation::IsApplicable
(
const
G4ParticleDefinition
&
p
)
52
{
53
54
G4DNAGenericIonsManager
*
instance
;
55
instance =
G4DNAGenericIonsManager::Instance
();
56
57
return
(&p ==
G4Electron::Electron
() || &p ==
G4Positron::Positron
()
58
|| &p ==
G4Proton::ProtonDefinition
()
59
|| &p == instance->
GetIon
(
"hydrogen"
)
60
|| &p == instance->
GetIon
(
"alpha++"
)
61
|| &p == instance->
GetIon
(
"alpha+"
)
62
|| &p == instance->
GetIon
(
"helium"
));
63
}
64
65
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
66
67
void
G4DNAExcitation::InitialiseProcess
(
const
G4ParticleDefinition
*
p
)
68
{
69
if
(!
isInitialised
)
70
{
71
isInitialised
=
true
;
72
SetBuildTableFlag
(
false
);
73
74
G4String
name
= p->
GetParticleName
();
75
76
if
(name ==
"e-"
)
77
{
78
79
// Emfietzoglou model
80
/*
81
if(!EmModel()) SetEmModel(new G4DNAEmfietzoglouExcitationModel);
82
EmModel()->SetLowEnergyLimit(8.23*eV);
83
EmModel()->SetHighEnergyLimit(10*MeV);
84
*/
85
// Born model
86
if
(!
EmModel
())
87
{
88
G4DNABornExcitationModel
* born =
new
G4DNABornExcitationModel
();
89
SetEmModel
(born);
90
born->
SetLowEnergyLimit
(9 *
eV
);
91
born->
SetHighEnergyLimit
(1 *
MeV
);
92
}
93
AddEmModel
(1,
EmModel
());
94
}
95
96
else
if
(name ==
"e+"
)
97
{
98
if
(!
EmModel
())
99
{
100
G4LEPTSExcitationModel
* lepts =
new
G4LEPTSExcitationModel
();
101
SetEmModel
(lepts);
102
lepts->
SetLowEnergyLimit
(1 *
eV
);
103
lepts->
SetHighEnergyLimit
(1 *
MeV
);
104
}
105
AddEmModel
(1,
EmModel
());
106
}
107
108
else
if
(name ==
"proton"
)
109
{
110
if
(!
EmModel
(0))
// MK: Is this a correct test ?
111
{
112
G4DNAMillerGreenExcitationModel
* miller =
113
new
G4DNAMillerGreenExcitationModel
();
114
SetEmModel
(miller);
115
miller->
SetLowEnergyLimit
(10 *
eV
);
116
miller->
SetHighEnergyLimit
(500 *
keV
);
117
118
G4DNABornExcitationModel
* born =
new
G4DNABornExcitationModel
();
119
SetEmModel
(born);
120
born->
SetLowEnergyLimit
(500 *
keV
);
121
born->
SetHighEnergyLimit
(100 *
MeV
);
122
}
123
124
AddEmModel
(1,
EmModel
());
125
if
(
EmModel
(1))
AddEmModel
(2,
EmModel
(1));
126
}
127
128
else
if
(name ==
"hydrogen"
)
129
{
130
if
(!
EmModel
())
131
{
132
G4DNAMillerGreenExcitationModel
* miller =
133
new
G4DNAMillerGreenExcitationModel
;
134
SetEmModel
(miller);
135
miller->
SetLowEnergyLimit
(10 *
eV
);
136
miller->
SetHighEnergyLimit
(500 *
keV
);
137
}
138
AddEmModel
(1,
EmModel
());
139
}
140
141
else
if
(name ==
"alpha"
|| name ==
"alpha+"
|| name ==
"helium"
)
142
{
143
if
(!
EmModel
())
144
{
145
G4DNAMillerGreenExcitationModel
* miller =
146
new
G4DNAMillerGreenExcitationModel
;
147
SetEmModel
(miller);
148
miller->
SetLowEnergyLimit
(1 *
keV
);
149
miller->
SetHighEnergyLimit
(400 *
MeV
);
150
}
151
AddEmModel
(1,
EmModel
());
152
}
153
}
154
}
155
156
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
157
158
void
G4DNAExcitation::PrintInfo
()
159
{
160
if
(
EmModel
(2))
161
{
162
G4cout
<<
" Total cross sections computed from "
<<
EmModel
(1)->
GetName
()
163
<<
" and "
<<
EmModel
(2)->
GetName
() <<
" models"
<<
G4endl
;
164
}
165
else
166
{
167
G4cout
<<
" Total cross sections computed from "
168
<<
EmModel
()->
GetName
()
169
<<
G4endl
;
170
}
171
}
172
173
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
geant4
tree
geant4-10.6-release
source
processes
electromagnetic
dna
processes
src
G4DNAExcitation.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:30
using
1.8.2 with
ECCE GitHub integration