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
PhysicsList.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PhysicsList.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
// This example is provided by the Geant4-DNA collaboration
27
// Any report or published results obtained using the Geant4-DNA software
28
// shall cite the following Geant4-DNA collaboration publication:
29
// Med. Phys. 37 (2010) 4692-4708
30
// J. Comput. Phys. 274 (2014) 841-882
31
// Phys. Med. Biol. 63(10) (2018) 105014-12pp
32
// The Geant4-DNA web site is available at http://geant4-dna.org
33
//
34
//
37
38
#include "PhysicsList.hh"
39
40
#include "
G4SystemOfUnits.hh
"
41
#include "
G4EmDNAChemistry.hh
"
42
#include "
G4EmDNAChemistry_option1.hh
"
43
#include "
G4EmDNAPhysics.hh
"
44
#include "
G4EmDNAPhysics_option1.hh
"
45
#include "
G4EmDNAPhysics_option2.hh
"
46
#include "
G4EmDNAPhysics_option3.hh
"
47
#include "
G4EmDNAPhysics_option4.hh
"
48
#include "
G4EmDNAPhysics_option5.hh
"
49
#include "
G4EmDNAPhysics_option6.hh
"
50
#include "
G4EmDNAPhysics_option7.hh
"
51
#include "
G4EmDNAPhysics_option8.hh
"
52
#include "
G4PhysicsConstructorRegistry.hh
"
53
#include "CommandLineParser.hh"
54
#include "
G4EmParameters.hh
"
55
56
using namespace
G4DNAPARSER;
57
58
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
59
60
PhysicsList::PhysicsList
()
61
:
G4VModularPhysicsList
(),
62
fEmDNAPhysicsList(nullptr),fEmDNAChemistryList(nullptr),
63
fEmDNAChemistryList1(nullptr),fPhysDNAName(
""
)
64
{
65
G4double
currentDefaultCut
= 1.*
nanometer
;
66
// fixe lower limit for cut
67
G4ProductionCutsTable::GetProductionCutsTable
()->
68
SetEnergyRange(100*
eV
, 1*
GeV
);
69
SetDefaultCutValue
(currentDefaultCut);
70
SetVerboseLevel
(1);
71
72
RegisterConstructor
(
"G4EmDNAPhysics_option8"
);
73
if
(CommandLineParser::GetParser()->GetCommandIfActive(
"-chemOFF"
)==0)
74
{
75
RegisterConstructor
(
"G4EmDNAChemistry_option1"
);
76
}
77
G4EmParameters::Instance
()->
SetDNAeSolvationSubType
(
fRitchie1994eSolvation
);
78
G4EmParameters::Instance
()->
Dump
();
79
80
}
81
82
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
83
84
PhysicsList::~PhysicsList
()
85
{
86
delete
fEmDNAPhysicsList
;
87
delete
fEmDNAChemistryList
;
88
delete
fEmDNAChemistryList1
;
89
}
90
91
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
92
93
void
PhysicsList::ConstructParticle
()
94
{
95
if
(
fEmDNAPhysicsList
) {
fEmDNAPhysicsList
->
ConstructParticle
(); }
96
if
(
fEmDNAChemistryList
) {
fEmDNAChemistryList
->
ConstructParticle
(); }
97
if
(
fEmDNAChemistryList1
) {
fEmDNAChemistryList1
->
ConstructParticle
(); }
98
}
99
100
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
101
102
void
PhysicsList::ConstructProcess
()
103
{
104
AddTransportation
();
105
if
(
fEmDNAPhysicsList
) {
fEmDNAPhysicsList
->
ConstructProcess
(); }
106
if
(
fEmDNAChemistryList
) {
fEmDNAChemistryList
->
ConstructProcess
(); }
107
if
(
fEmDNAChemistryList1
) {
fEmDNAChemistryList1
->
ConstructProcess
(); }
108
}
109
110
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
111
112
void
PhysicsList::RegisterConstructor
(
const
G4String
&
name
)
113
{
114
if
(name ==
fPhysDNAName
) {
return
; }
115
if
(
verboseLevel
> 0) {
116
G4cout
<<
"===== Register constructor ==== "
<< name <<
G4endl
;
117
}
118
if
(name ==
"G4EmDNAPhysics"
) {
119
delete
fEmDNAPhysicsList
;
120
fEmDNAPhysicsList
=
new
G4EmDNAPhysics
(
verboseLevel
);
121
fPhysDNAName
=
name
;
122
}
else
if
(name ==
"G4EmDNAPhysics_option1"
) {
123
delete
fEmDNAPhysicsList
;
124
fEmDNAPhysicsList
=
new
G4EmDNAPhysics_option1
(
verboseLevel
);
125
fPhysDNAName
=
name
;
126
}
else
if
(name ==
"G4EmDNAPhysics_option2"
) {
127
delete
fEmDNAPhysicsList
;
128
fEmDNAPhysicsList
=
new
G4EmDNAPhysics_option2
(
verboseLevel
);
129
fPhysDNAName
=
name
;
130
}
else
if
(name ==
"G4EmDNAPhysics_option3"
) {
131
delete
fEmDNAPhysicsList
;
132
fEmDNAPhysicsList
=
new
G4EmDNAPhysics_option3
(
verboseLevel
);
133
fPhysDNAName
=
name
;
134
}
else
if
(name ==
"G4EmDNAPhysics_option4"
) {
135
delete
fEmDNAPhysicsList
;
136
fEmDNAPhysicsList
=
new
G4EmDNAPhysics_option4
(
verboseLevel
);
137
fPhysDNAName
=
name
;
138
}
else
if
(name ==
"G4EmDNAPhysics_option5"
) {
139
delete
fEmDNAPhysicsList
;
140
fEmDNAPhysicsList
=
new
G4EmDNAPhysics_option5
(
verboseLevel
);
141
fPhysDNAName
=
name
;
142
}
else
if
(name ==
"G4EmDNAPhysics_option6"
) {
143
delete
fEmDNAPhysicsList
;
144
fEmDNAPhysicsList
=
new
G4EmDNAPhysics_option6
(
verboseLevel
);
145
fPhysDNAName
=
name
;
146
}
else
if
(name ==
"G4EmDNAPhysics_option7"
) {
147
delete
fEmDNAPhysicsList
;
148
fEmDNAPhysicsList
=
new
G4EmDNAPhysics_option7
(
verboseLevel
);
149
fPhysDNAName
=
name
;
150
}
else
if
(name ==
"G4EmDNAPhysics_option8"
) {
151
delete
fEmDNAPhysicsList
;
152
fEmDNAPhysicsList
=
new
G4EmDNAPhysics_option8
(
verboseLevel
);
153
fPhysDNAName
=
name
;
154
}
else
if
(name ==
"G4EmDNAChemistry"
) {
155
if
(
fEmDNAChemistryList
||
fEmDNAChemistryList1
) {
return
; }
156
fEmDNAChemistryList
=
new
G4EmDNAChemistry
();
157
fEmDNAChemistryList
->
SetVerboseLevel
(
verboseLevel
);
158
}
else
if
(name ==
"G4EmDNAChemistry_option1"
) {
159
if
(
fEmDNAChemistryList
||
fEmDNAChemistryList1
) {
return
; }
160
fEmDNAChemistryList1
=
new
G4EmDNAChemistry_option1
();
161
fEmDNAChemistryList1
->
SetVerboseLevel
(
verboseLevel
);
162
}
else
{
163
G4cout
<<
"PhysicsList::RegisterConstructor: <"
<< name <<
">"
164
<<
" fails - name is not defined"
165
<<
G4endl
;
166
}
167
}
168
169
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
geant4
tree
geant4-10.6-release
examples
extended
medical
dna
chem5
src
PhysicsList.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:50
using
1.8.2 with
ECCE GitHub integration