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
►
cascade
►
coherent_elastic
►
de_excitation
►
em_dissociation
►
fission
►
gamma_nuclear
▼
im_r_matrix
►
include
▼
src
G4AngularDistribution.cc
G4AngularDistributionNP.cc
G4AngularDistributionPP.cc
G4BaryonPartialWidth.cc
G4BaryonWidth.cc
G4CollisionComposite.cc
G4CollisionInitialState.cc
G4CollisionManager.cc
G4CollisionMesonBaryon.cc
G4CollisionMesonBaryonElastic.cc
G4CollisionMesonBaryonToResonance.cc
►
G4CollisionNN.cc
G4CollisionNNElastic.cc
►
G4CollisionNNToDeltaDelta.cc
G4CollisionNNToDeltaDelta1600.cc
G4CollisionNNToDeltaDelta1620.cc
G4CollisionNNToDeltaDelta1700.cc
G4CollisionNNToDeltaDelta1900.cc
G4CollisionNNToDeltaDelta1905.cc
G4CollisionNNToDeltaDelta1910.cc
G4CollisionNNToDeltaDelta1920.cc
G4CollisionNNToDeltaDelta1930.cc
G4CollisionNNToDeltaDelta1950.cc
►
G4CollisionNNToDeltaDeltastar.cc
►
G4CollisionNNToDeltaNstar.cc
G4CollisionNNToNDelta.cc
G4CollisionNNToNDelta1600.cc
G4CollisionNNToNDelta1620.cc
G4CollisionNNToNDelta1700.cc
G4CollisionNNToNDelta1900.cc
G4CollisionNNToNDelta1905.cc
G4CollisionNNToNDelta1910.cc
G4CollisionNNToNDelta1920.cc
G4CollisionNNToNDelta1930.cc
G4CollisionNNToNDelta1950.cc
►
G4CollisionNNToNDeltastar.cc
►
G4CollisionNNToNNstar.cc
G4CollisionnpElastic.cc
►
G4CollisionNStarNToNN.cc
►
G4CollisionPN.cc
G4ConcreteMesonBaryonToResonance.cc
G4ConcreteNNToDeltaDelta.cc
G4ConcreteNNToDeltaDeltastar.cc
G4ConcreteNNToDeltaNstar.cc
G4ConcreteNNToNDelta.cc
G4ConcreteNNToNDeltaStar.cc
G4ConcreteNNToNNStar.cc
G4ConcreteNNTwoBodyResonance.cc
G4ConcreteNStarNToNN.cc
G4CrossSectionComposite.cc
G4CrossSectionPatch.cc
G4CrossSectionSourcePtr.cc
G4DetailedBalancePhaseSpaceIntegral.cc
G4LowEXsection.cc
G4MesonAbsorption.cc
G4PartialWidthTable.cc
G4ParticleTypeConverter.cc
G4ResonanceNames.cc
►
G4Scatterer.cc
G4VAnnihilationCollision.cc
G4VCollision.cc
G4VCrossSectionSource.cc
G4VElasticCollision.cc
G4VScatteringCollision.cc
G4VXResonance.cc
G4XAnnihilationChannel.cc
G4XAqmElastic.cc
G4XAqmTotal.cc
G4XDeltaDeltastarTable.cc
G4XDeltaDeltaTable.cc
G4XDeltaNstarTable.cc
G4XMesonBaryonElastic.cc
G4XNDeltastarTable.cc
G4XNDeltaTable.cc
G4XNNElastic.cc
G4XNNElasticLowE.cc
G4XNNstarTable.cc
G4XNNTotal.cc
G4XNNTotalLowE.cc
G4XnpElastic.cc
G4XnpElasticLowE.cc
G4XnpTotal.cc
G4XnpTotalLowE.cc
G4XPDGElastic.cc
G4XPDGTotal.cc
G4XpimNTotal.cc
G4XpipNTotal.cc
G4XResonance.cc
►
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
G4XnpTotal.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
// GEANT4 Class file
29
//
30
// For information related to this code contact:
31
//
32
// File name: G4XnpTotal
33
//
34
// Author:
35
//
36
// Creation date: 15 April 1999
37
//
38
// Modifications:
39
//
40
// -------------------------------------------------------------------
41
42
#include "
globals.hh
"
43
#include "
G4XnpTotal.hh
"
44
#include "
G4XnpTotalLowE.hh
"
45
#include "
G4XPDGTotal.hh
"
46
#include "
G4VCrossSectionSource.hh
"
47
#include "
G4KineticTrack.hh
"
48
#include "
G4ParticleDefinition.hh
"
49
#include "
G4CrossSectionVector.hh
"
50
#include "
G4Proton.hh
"
51
#include "
G4Neutron.hh
"
52
53
G4XnpTotal::G4XnpTotal
()
54
{
55
components =
new
G4CrossSectionVector
;
56
57
G4VCrossSectionSource
* xnpTotalLowE =
new
G4XnpTotalLowE
;
58
components->push_back(xnpTotalLowE);
59
60
G4VCrossSectionSource
* xnpTotalHighE =
new
G4XPDGTotal
;
61
components->push_back(xnpTotalHighE);
62
}
53
G4XnpTotal::G4XnpTotal
() {
…
}
63
64
65
G4XnpTotal::~G4XnpTotal
()
66
{
67
if
(components !=
nullptr
)
68
{
69
std::size_t nComponents =
GetComponents
()->size();
70
for
(std::size_t i=0; i<nComponents; ++i)
71
{
72
G4CrossSectionSourcePtr
componentPtr = (*components)[i];
73
G4VCrossSectionSource
* component = componentPtr();
74
delete
component;
75
component =
nullptr
;
76
componentPtr =
nullptr
;
77
}
78
}
79
delete
components;
80
components =
nullptr
;
81
}
65
G4XnpTotal::~G4XnpTotal
() {
…
}
82
83
84
G4bool
G4XnpTotal::operator==
(
const
G4XnpTotal
&right)
const
85
{
86
return
(
this
== (
G4XnpTotal
*) &right);
87
}
84
G4bool
G4XnpTotal::operator==
(
const
G4XnpTotal
&right)
const
{
…
}
88
89
90
G4bool
G4XnpTotal::operator!=
(
const
G4XnpTotal
&right)
const
91
{
92
return
(
this
!= (
G4XnpTotal
*) &right);
93
}
90
G4bool
G4XnpTotal::operator!=
(
const
G4XnpTotal
&right)
const
{
…
}
94
95
96
G4String
G4XnpTotal::Name
()
const
97
{
98
G4String
name(
"npTotal"
);
99
return
name;
100
}
96
G4String
G4XnpTotal::Name
()
const
{
…
}
G4CrossSectionVector.hh
G4CrossSectionVector
std::vector< G4CrossSectionSourcePtr > G4CrossSectionVector
Definition
G4CrossSectionVector.hh:49
G4KineticTrack.hh
G4Neutron.hh
G4ParticleDefinition.hh
G4Proton.hh
G4bool
bool G4bool
Definition
G4Types.hh:86
G4VCrossSectionSource.hh
G4XPDGTotal.hh
G4XnpTotalLowE.hh
G4XnpTotal.hh
G4CrossSectionSourcePtr
Definition
G4CrossSectionSourcePtr.hh:49
G4String
Definition
G4String.hh:62
G4VCrossSectionSource
Definition
G4VCrossSectionSource.hh:39
G4XPDGTotal
Definition
G4XPDGTotal.hh:56
G4XnpTotalLowE
Definition
G4XnpTotalLowE.hh:52
G4XnpTotal
Definition
G4XnpTotal.hh:51
G4XnpTotal::~G4XnpTotal
virtual ~G4XnpTotal()
Definition
G4XnpTotal.cc:65
G4XnpTotal::GetComponents
virtual const G4CrossSectionVector * GetComponents() const
Definition
G4XnpTotal.hh:62
G4XnpTotal::operator==
G4bool operator==(const G4XnpTotal &right) const
Definition
G4XnpTotal.cc:84
G4XnpTotal::G4XnpTotal
G4XnpTotal()
Definition
G4XnpTotal.cc:53
G4XnpTotal::operator!=
G4bool operator!=(const G4XnpTotal &right) const
Definition
G4XnpTotal.cc:90
G4XnpTotal::Name
virtual G4String Name() const
Definition
G4XnpTotal.cc:96
globals.hh
geant4-v11.2.2
source
processes
hadronic
models
im_r_matrix
src
G4XnpTotal.cc
Generated by
1.12.0