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
hadronic
models
cascade
cascade
include
G4CascadeColliderBase.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
#ifndef G4CASCADE_COLLIDER_BASE_HH
27
#define G4CASCADE_COLLIDER_BASE_HH
28
//
29
// 20100714 M. Kelsey -- Move functionality from G4VCascadeCollider, and
30
// provide conservation-checking here, with wrapper function
31
// and control flag.
32
// 20100720 M. Kelsey -- Change G4CascadeCheckBalance to pointer member
33
// 20100925 M. Kelsey -- Add explosion(A,Z,Eex) and explosion(G4Fragment)
34
// interfaces
35
// 20110225 M. Kelsey -- Add setVerboseLevel(), calls through to members
36
// 20110304 M. Kelsey -- Add dummy rescatter() interface here, to enforce
37
// consistency in subclass colliders.
38
// 20110321 M. Kelsey -- Hide names of arguments to rescatter(), to avoid
39
// compiler warnings on some GCC versions.
40
// 20130620 Address Coverity complaint about missing copy actions
41
// 20130621 Move doConservationChecks to G4CascadeParameters; change
42
// explosion to use reference, add validateOutput() w/G4Fragment
43
// 20130622 Move fragment-handling functions to G4CascadeDeexciteBase
44
// 20140930 Change name from "const char*" to "const G4String"
45
46
#include "
G4VCascadeCollider.hh
"
47
48
#include "
globals.hh
"
49
#include "
G4InteractionCase.hh
"
50
#include <vector>
51
52
class
G4InuclElementaryParticle
;
53
class
G4InuclNuclei
;
54
class
G4InuclParticle
;
55
class
G4CollisionOutput
;
56
class
G4CascadeCheckBalance
;
57
class
G4Fragment
;
58
class
G4KineticTrackVector
;
59
class
G4V3DNucleus
;
60
61
62
class
G4CascadeColliderBase
:
public
G4VCascadeCollider
{
63
public
:
64
G4CascadeColliderBase
(
const
G4String
&
name
,
G4int
verbose=0);
65
virtual
~G4CascadeColliderBase
();
66
67
// For use with top-level Propagate to preload a set of secondaries
68
virtual
void
rescatter
(
G4InuclParticle
*
/*bullet*/
,
69
G4KineticTrackVector
*
/*theSecondaries*/
,
70
G4V3DNucleus
*
/*theNucleus*/
,
71
G4CollisionOutput
&
/*globalOutput*/
) { ; }
72
73
virtual
void
setVerboseLevel
(
G4int
verbose=0);
74
75
protected
:
76
G4InteractionCase
interCase
;
// Determine bullet vs. target
77
78
// Decide whether to use G4ElementaryParticleCollider or not
79
virtual
G4bool
useEPCollider
(
G4InuclParticle
* bullet,
80
G4InuclParticle
* target)
const
;
81
82
// Decide whether to use G4IntraNuclearCascader or not
83
virtual
G4bool
inelasticInteractionPossible
(
G4InuclParticle
* bullet,
84
G4InuclParticle
* target,
85
G4double
ekin)
const
;
86
87
// ==> Provide same interfaces as G4CascadeCheckBalance itself
88
G4CascadeCheckBalance
*
balance
;
89
90
// Validate output for energy, momentum conservation, etc.
91
virtual
G4bool
validateOutput
(
G4InuclParticle
* bullet,
92
G4InuclParticle
* target,
93
G4CollisionOutput
& output);
94
95
// This is for use after de-excitation
96
virtual
G4bool
validateOutput
(
const
G4Fragment
& fragment,
97
G4CollisionOutput
& output);
98
99
// This is for use with G4EPCollider
100
virtual
G4bool
validateOutput
(
G4InuclParticle
* bullet,
101
G4InuclParticle
* target,
102
const
std::vector<G4InuclElementaryParticle>& particles);
103
104
private
:
105
// Copying of modules is forbidden
106
G4CascadeColliderBase
(
const
G4CascadeColliderBase
&);
107
G4CascadeColliderBase
&
operator=
(
const
G4CascadeColliderBase
&);
108
};
109
110
#endif
/* G4CASCADE_COLLIDER_BASE_HH */
G4InteractionCase.hh
G4double
double G4double
Definition:
G4Types.hh:83
G4bool
bool G4bool
Definition:
G4Types.hh:86
G4int
int G4int
Definition:
G4Types.hh:85
G4VCascadeCollider.hh
G4CascadeCheckBalance
Definition:
G4CascadeCheckBalance.hh:64
G4CascadeColliderBase
Definition:
G4CascadeColliderBase.hh:62
G4CascadeColliderBase::G4CascadeColliderBase
G4CascadeColliderBase(const G4CascadeColliderBase &)
G4CascadeColliderBase::useEPCollider
virtual G4bool useEPCollider(G4InuclParticle *bullet, G4InuclParticle *target) const
Definition:
G4CascadeColliderBase.cc:75
G4CascadeColliderBase::setVerboseLevel
virtual void setVerboseLevel(G4int verbose=0)
Definition:
G4CascadeColliderBase.cc:67
G4CascadeColliderBase::rescatter
virtual void rescatter(G4InuclParticle *, G4KineticTrackVector *, G4V3DNucleus *, G4CollisionOutput &)
Definition:
G4CascadeColliderBase.hh:68
G4CascadeColliderBase::G4CascadeColliderBase
G4CascadeColliderBase(const G4String &name, G4int verbose=0)
Definition:
G4CascadeColliderBase.cc:57
G4CascadeColliderBase::~G4CascadeColliderBase
virtual ~G4CascadeColliderBase()
Definition:
G4CascadeColliderBase.cc:63
G4CascadeColliderBase::interCase
G4InteractionCase interCase
Definition:
G4CascadeColliderBase.hh:76
G4CascadeColliderBase::validateOutput
virtual G4bool validateOutput(G4InuclParticle *bullet, G4InuclParticle *target, G4CollisionOutput &output)
Definition:
G4CascadeColliderBase.cc:123
G4CascadeColliderBase::operator=
G4CascadeColliderBase & operator=(const G4CascadeColliderBase &)
G4CascadeColliderBase::balance
G4CascadeCheckBalance * balance
Definition:
G4CascadeColliderBase.hh:88
G4CascadeColliderBase::inelasticInteractionPossible
virtual G4bool inelasticInteractionPossible(G4InuclParticle *bullet, G4InuclParticle *target, G4double ekin) const
Definition:
G4CascadeColliderBase.cc:85
G4CollisionOutput
Definition:
G4CollisionOutput.hh:66
G4Fragment
Definition:
G4Fragment.hh:68
G4InteractionCase
Definition:
G4InteractionCase.hh:39
G4InuclElementaryParticle
Definition:
G4InuclElementaryParticle.hh:58
G4InuclNuclei
Definition:
G4InuclNuclei.hh:67
G4InuclParticle
Definition:
G4InuclParticle.hh:52
G4KineticTrackVector
Definition:
G4KineticTrackVector.hh:39
G4String
Definition:
G4String.hh:62
G4V3DNucleus
Definition:
G4V3DNucleus.hh:41
G4VCascadeCollider
Definition:
G4VCascadeCollider.hh:40
globals.hh
G4InuclParticleNames::name
const char * name(G4int ptype)
Definition:
G4InuclParticleNames.hh:76
Generated by
1.9.3