Geant4-11
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
w
y
Enumerations
a
b
c
d
e
f
g
l
m
p
r
s
t
v
y
z
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
:
a
b
c
d
g
h
i
o
q
r
s
t
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
z
Enumerations
b
c
d
e
f
g
i
j
l
m
n
p
r
s
t
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
source
processes
electromagnetic
dna
models
src
G4DNAMolecularIRTModel.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
//
27
/*
28
* G4DNAMolecularIRTModel.cc
29
*
30
* Created on: Jul 23, 2019
31
* Author: W. G. Shin
32
* J. Ramos-Mendez and B. Faddegon
33
*/
34
35
#include <
globals.hh
>
36
#include <
G4DNAMolecularReactionTable.hh
>
37
#include <
G4DNAMolecularIRTModel.hh
>
38
#include <
G4DNASmoluchowskiReactionModel.hh
>
39
#include <
G4ExceptionSeverity.hh
>
40
#include <
G4Molecule.hh
>
41
#include <
G4ReferenceCast.hh
>
42
43
#include "
G4DNAIRT.hh
"
44
#include "
G4DNAIRTMoleculeEncounterStepper.hh
"
45
46
G4DNAMolecularIRTModel::G4DNAMolecularIRTModel
(
const
G4String
&
name
)
47
:
G4DNAMolecularIRTModel
(
name
,
48
std
::unique_ptr<
G4DNAIRTMoleculeEncounterStepper
>(new
G4DNAIRTMoleculeEncounterStepper
()),
49
std
::unique_ptr<
G4DNAIRT
>(new
G4DNAIRT
()))
50
{
51
}
52
53
G4DNAMolecularIRTModel::G4DNAMolecularIRTModel
(
const
G4String
&
name
,
54
std::unique_ptr<G4VITTimeStepComputer> pTimeStepper,
55
std::unique_ptr<G4VITReactionProcess> pReactionProcess)
56
:
G4VITStepModel
(
std
::move(pTimeStepper),
57
std
::move(pReactionProcess),
58
name
)
59
, fMolecularReactionTable(
reference_cast
<const
G4DNAMolecularReactionTable
*>(fpReactionTable))
60
{
61
fType1
= G4Molecule::ITType();
62
fType2
= G4Molecule::ITType();
63
}
64
65
G4DNAMolecularIRTModel::~G4DNAMolecularIRTModel
() =
default
;
66
67
void
G4DNAMolecularIRTModel::Initialize
()
68
{
69
if
(
fpReactionTable
==
nullptr
)
70
{
71
SetReactionTable
(
G4DNAMolecularReactionTable::GetReactionTable
());
72
}
73
74
if
(!
fpReactionModel
)
75
{
76
fpReactionModel
.reset(
new
G4DNASmoluchowskiReactionModel
());
77
}
78
79
fpReactionModel
->SetReactionTable((
const
G4DNAMolecularReactionTable
*)
fpReactionTable
);
80
81
((
G4DNAIRT
*)
fpReactionProcess
.get())->
SetReactionModel
(
fpReactionModel
.get());
82
((
G4DNAIRTMoleculeEncounterStepper
*)
fpTimeStepper
.get())->
SetReactionModel
(
fpReactionModel
.get());
83
84
G4VITStepModel::Initialize
();
85
}
86
87
void
G4DNAMolecularIRTModel::PrintInfo
()
88
{
89
#ifdef G4VERBOSE
90
G4cout
<<
fName
<<
" will be used"
<<
G4endl
;
91
#endif
92
}
93
94
void
G4DNAMolecularIRTModel::SetReactionModel
(
G4VDNAReactionModel
* pReactionModel)
95
{
96
fpReactionModel
.reset(pReactionModel);
97
}
98
99
G4VDNAReactionModel
*
G4DNAMolecularIRTModel::GetReactionModel
()
100
{
101
return
fpReactionModel
.get();
102
}
G4DNAIRTMoleculeEncounterStepper.hh
G4DNAIRT.hh
G4DNAMolecularIRTModel.hh
G4DNAMolecularReactionTable.hh
G4DNASmoluchowskiReactionModel.hh
G4ExceptionSeverity.hh
G4Molecule.hh
G4ReferenceCast.hh
reference_cast
ReturnType & reference_cast(OriginalType &source)
Definition:
G4ReferenceCast.hh:50
G4endl
#define G4endl
Definition:
G4ios.hh:57
G4cout
G4GLOB_DLL std::ostream G4cout
G4DNAIRTMoleculeEncounterStepper
Definition:
G4DNAIRTMoleculeEncounterStepper.hh:60
G4DNAIRT
Definition:
G4DNAIRT.hh:65
G4DNAMolecularIRTModel
Definition:
G4DNAMolecularIRTModel.hh:44
G4DNAMolecularIRTModel::fpReactionModel
std::unique_ptr< G4VDNAReactionModel > fpReactionModel
Definition:
G4DNAMolecularIRTModel.hh:62
G4DNAMolecularIRTModel::~G4DNAMolecularIRTModel
~G4DNAMolecularIRTModel() override
G4DNAMolecularIRTModel::G4DNAMolecularIRTModel
G4DNAMolecularIRTModel(const G4String &name="DNAMolecularIRTModel")
Definition:
G4DNAMolecularIRTModel.cc:46
G4DNAMolecularIRTModel::SetReactionModel
void SetReactionModel(G4VDNAReactionModel *)
Definition:
G4DNAMolecularIRTModel.cc:94
G4DNAMolecularIRTModel::Initialize
void Initialize() override
Definition:
G4DNAMolecularIRTModel.cc:67
G4DNAMolecularIRTModel::PrintInfo
void PrintInfo() override
Definition:
G4DNAMolecularIRTModel.cc:87
G4DNAMolecularIRTModel::GetReactionModel
G4VDNAReactionModel * GetReactionModel()
Definition:
G4DNAMolecularIRTModel.cc:99
G4DNAMolecularReactionTable
Definition:
G4DNAMolecularReactionTable.hh:176
G4DNAMolecularReactionTable::GetReactionTable
static G4DNAMolecularReactionTable * GetReactionTable()
Definition:
G4DNAMolecularReactionTable.cc:349
G4DNASmoluchowskiReactionModel
Definition:
G4DNASmoluchowskiReactionModel.hh:64
G4String
Definition:
G4String.hh:62
G4VDNAReactionModel
Definition:
G4VDNAReactionModel.hh:61
G4VITStepModel
Definition:
G4VITStepModel.hh:62
G4VITStepModel::fType2
G4ITType fType2
Definition:
G4VITStepModel.hh:95
G4VITStepModel::fpReactionTable
const G4ITReactionTable * fpReactionTable
Definition:
G4VITStepModel.hh:92
G4VITStepModel::fName
G4String fName
Definition:
G4VITStepModel.hh:88
G4VITStepModel::fType1
G4ITType fType1
Definition:
G4VITStepModel.hh:94
G4VITStepModel::SetReactionTable
void SetReactionTable(G4ITReactionTable *)
Definition:
G4VITStepModel.cc:74
G4VITStepModel::fpTimeStepper
std::unique_ptr< G4VITTimeStepComputer > fpTimeStepper
Definition:
G4VITStepModel.hh:90
G4VITStepModel::Initialize
virtual void Initialize()
Definition:
G4VITStepModel.cc:61
G4VITStepModel::fpReactionProcess
std::unique_ptr< G4VITReactionProcess > fpReactionProcess
Definition:
G4VITStepModel.hh:91
globals.hh
G4InuclParticleNames::name
const char * name(G4int ptype)
Definition:
G4InuclParticleNames.hh:76
std
Definition:
G4VtkSceneHandler.cc:55
Generated by
1.9.3