Geant4
11.2.2
Toolkit for the simulation of the passage of particles through matter
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
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
Functions
a
b
c
d
e
f
g
h
i
m
n
o
p
q
r
s
t
u
w
z
Variables
c
d
e
g
h
i
k
l
m
n
o
p
q
s
t
v
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
w
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
Classes
Class List
Class Index
Class Hierarchy
Class 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
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
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
c
d
e
f
g
k
l
m
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 Symbols
:
a
b
c
d
g
h
i
o
q
r
s
t
Files
File List
File 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
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
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
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
q
r
s
t
u
v
w
x
y
z
Examples
▼
Geant4
Deprecated List
Todo List
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
geant4-v11.2.2
▼
source
►
analysis
►
digits_hits
►
error_propagation
►
event
►
externals
►
g3tog4
►
geometry
►
global
►
graphics_reps
►
intercoms
►
interfaces
►
materials
►
parameterisations
►
particles
►
persistency
►
physics_lists
▼
processes
►
biasing
►
cuts
►
decay
►
electromagnetic
▼
hadronic
►
cross_sections
►
management
▼
models
►
abla
►
abrasion
▼
binary_cascade
▼
include
►
G4Absorber.hh
►
G4AntiProtonField.hh
►
G4BCLateParticle.hh
►
G4BinaryCascade.hh
►
G4BinaryLightIonReaction.hh
►
G4FieldPropagation.hh
►
G4GeneratorPrecompoundInterface.hh
►
G4KaonMinusField.hh
►
G4KaonPlusField.hh
►
G4KaonZeroField.hh
►
G4KM_DummyField.hh
►
G4KM_NucleonEqRhs.hh
►
G4KM_OpticalEqRhs.hh
►
G4NeutronField.hh
►
G4PionMinusField.hh
►
G4PionPlusField.hh
►
G4PionZeroField.hh
►
G4ProtonField.hh
►
G4RKFieldIntegrator.hh
►
G4RKPropagation.hh
►
G4SigmaMinusField.hh
►
G4SigmaPlusField.hh
►
G4SigmaZeroField.hh
►
G4VFieldPropagation.hh
►
G4VKM_NuclearDensity.hh
►
G4VNuclearField.hh
►
src
►
cascade
►
coherent_elastic
►
de_excitation
►
em_dissociation
►
fission
►
gamma_nuclear
►
im_r_matrix
►
inclxx
►
lend
►
lepto_nuclear
►
particle_hp
►
parton_string
►
pre_equilibrium
►
qmd
►
quasi_elastic
►
radioactive_decay
►
theo_high_energy
►
processes
►
stopping
►
util
►
management
►
optical
►
parameterisation
►
scoring
►
solidstate
►
transportation
►
readout
►
run
►
track
►
tracking
►
visualization
►
File Members
►
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
G4RKPropagation.hh
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
#ifndef G4RKPropagation_h
28
#define G4RKPropagation_h 1
29
30
#include "
G4VFieldPropagation.hh
"
31
#include "
G4VNuclearField.hh
"
32
#include "
G4V3DNucleus.hh
"
33
#include "
G4KM_DummyField.hh
"
34
#include "
G4Mag_EqRhs.hh
"
35
#include <map>
36
37
38
class
G4RKPropagation
:
public
G4VFieldPropagation
39
{
40
41
public
:
42
G4RKPropagation
();
43
virtual
~G4RKPropagation
();
44
45
private
:
46
G4RKPropagation
(
const
G4RKPropagation
&right);
47
const
G4RKPropagation
& operator=(
const
G4RKPropagation
& right);
48
G4bool
operator==(
const
G4RKPropagation
& right)
const
;
49
G4bool
operator!=(
const
G4RKPropagation
& right)
const
;
50
51
public
:
52
53
virtual
void
Init
(
G4V3DNucleus
* nucleus);
54
virtual
void
Transport
(
G4KineticTrackVector
&theActive,
55
const
G4KineticTrackVector
&theSpectators,
56
G4double
theTimeStep);
57
G4bool
GetSphereIntersectionTimes
(
const
G4KineticTrack
* track,
58
G4double
& t1,
G4double
& t2);
59
G4ThreeVector
GetMomentumTransfer
()
const
;
60
private
:
61
G4double
theOuterRadius;
62
G4V3DNucleus
* theNucleus;
63
std::map <G4int, G4VNuclearField *, std::less<G4int> > * theFieldMap;
64
std::map <G4int, G4Mag_EqRhs *, std::less<G4int> > * theEquationMap;
65
G4KM_DummyField
* theField;
66
67
G4ThreeVector
theMomentumTranfer;
68
69
G4bool
GetSphereIntersectionTimes
(
const
G4double
radius,
70
const
G4ThreeVector
& currentPos,
71
const
G4LorentzVector
& momentum,
72
G4double
& t1,
G4double
& t2);
73
// implementation
74
75
G4bool
FieldTransport(
G4KineticTrack
* track,
const
G4double
timestep);
76
G4bool
FreeTransport(
G4KineticTrack
* track,
const
G4double
timestep);
77
78
void
delete_FieldsAndMap(
79
std::map <
G4int
,
G4VNuclearField
*, std::less<G4int> > * aMap);
80
void
delete_EquationsAndMap(
81
std::map <
G4int
,
G4Mag_EqRhs
*, std::less<G4int> > * aMap);
82
83
public
:
84
inline
G4double
GetBarrier
(
G4int
encoding
)
85
{
86
std::map <G4int, G4VNuclearField *, std::less<G4int> >::iterator iter;
87
iter = theFieldMap->find(
encoding
);
88
if
(iter == theFieldMap->end())
return
0;
89
return
(*theFieldMap)[
encoding
]->GetBarrier();
90
}
84
inline
G4double
GetBarrier
(
G4int
encoding
) {
…
}
91
92
inline
G4double
GetField
(
G4int
encoding
,
G4ThreeVector
pos)
93
{
94
std::map <G4int, G4VNuclearField *, std::less<G4int> >::iterator iter;
95
iter = theFieldMap->find(
encoding
);
96
if
(iter == theFieldMap->end())
return
0;
97
return
(*theFieldMap)[
encoding
]->GetField(pos);
98
}
92
inline
G4double
GetField
(
G4int
encoding
,
G4ThreeVector
pos) {
…
}
99
100
};
38
class
G4RKPropagation
:
public
G4VFieldPropagation
{
…
};
101
102
#endif
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
G4KM_DummyField.hh
G4Mag_EqRhs.hh
G4double
double G4double
Definition
G4Types.hh:83
G4bool
bool G4bool
Definition
G4Types.hh:86
G4int
int G4int
Definition
G4Types.hh:85
G4V3DNucleus.hh
G4VFieldPropagation.hh
G4VNuclearField.hh
CLHEP::Hep3Vector
Definition
ThreeVector.h:36
CLHEP::HepLorentzVector
Definition
LorentzVector.h:67
G4KM_DummyField
Definition
G4KM_DummyField.hh:47
G4KineticTrackVector
Definition
G4KineticTrackVector.hh:39
G4KineticTrack
Definition
G4KineticTrack.hh:57
G4Mag_EqRhs
Definition
G4Mag_EqRhs.hh:47
G4RKPropagation
Definition
G4RKPropagation.hh:39
G4RKPropagation::GetField
G4double GetField(G4int encoding, G4ThreeVector pos)
Definition
G4RKPropagation.hh:92
G4RKPropagation::~G4RKPropagation
virtual ~G4RKPropagation()
Definition
G4RKPropagation.cc:87
G4RKPropagation::GetBarrier
G4double GetBarrier(G4int encoding)
Definition
G4RKPropagation.hh:84
G4RKPropagation::Transport
virtual void Transport(G4KineticTrackVector &theActive, const G4KineticTrackVector &theSpectators, G4double theTimeStep)
Definition
G4RKPropagation.cc:223
G4RKPropagation::G4RKPropagation
G4RKPropagation()
Definition
G4RKPropagation.cc:80
G4RKPropagation::Init
virtual void Init(G4V3DNucleus *nucleus)
Definition
G4RKPropagation.cc:99
G4RKPropagation::GetMomentumTransfer
G4ThreeVector GetMomentumTransfer() const
Definition
G4RKPropagation.cc:471
G4RKPropagation::GetSphereIntersectionTimes
G4bool GetSphereIntersectionTimes(const G4KineticTrack *track, G4double &t1, G4double &t2)
Definition
G4RKPropagation.cc:606
G4V3DNucleus
Definition
G4V3DNucleus.hh:41
G4VFieldPropagation
Definition
G4VFieldPropagation.hh:35
G4VNuclearField
Definition
G4VNuclearField.hh:36
encoding
Definition
xmltok.h:170
geant4-v11.2.2
source
processes
hadronic
models
binary_cascade
include
G4RKPropagation.hh
Generated by
1.12.0