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
►
inclxx
▼
lend
►
include
▼
src
G4GIDI.cc
G4GIDI_map.cc
►
G4GIDI_mass.cc
►
G4GIDI_Misc.cc
G4GIDI_target.cc
G4LENDCapture.cc
G4LENDCaptureCrossSection.cc
G4LENDCombinedCrossSection.cc
G4LENDCombinedModel.cc
G4LENDCrossSection.cc
G4LENDElastic.cc
G4LENDElasticCrossSection.cc
G4LENDFission.cc
G4LENDFissionCrossSection.cc
G4LENDGammaCrossSection.cc
G4LENDGammaModel.cc
G4LENDInelastic.cc
G4LENDInelasticCrossSection.cc
G4LENDManager.cc
►
G4LENDModel.cc
G4LENDUsedTarget.cc
GIDI_settings.cc
GIDI_settings_flux.cc
GIDI_settings_group.cc
GIDI_settings_particle.cc
►
lPoPs.cc
►
MCGIDI_angular.cc
►
MCGIDI_angularEnergy.cc
►
MCGIDI_distribution.cc
►
MCGIDI_energy.cc
►
MCGIDI_energyAngular.cc
►
MCGIDI_fromTOM.cc
►
MCGIDI_KalbachMann.cc
►
MCGIDI_kinetics.cc
►
MCGIDI_LLNLAngular_angularEnergy.cc
►
MCGIDI_map.cc
►
MCGIDI_mass.cc
►
MCGIDI_misc.cc
►
MCGIDI_outputChannel.cc
►
MCGIDI_particle.cc
►
MCGIDI_pop.cc
►
MCGIDI_product.cc
MCGIDI_quantitiesLookupMode.cc
►
MCGIDI_reaction.cc
►
MCGIDI_sampling.cc
MCGIDI_samplingSettings.cc
►
MCGIDI_target.cc
►
MCGIDI_target_heated.cc
►
MCGIDI_uncorrelated.cc
►
MCGIDI_version.cc
►
nf_angularMomentumCoupling.cc
►
nf_exponentialIntegral.cc
►
nf_gammaFunctions.cc
►
nf_GnG_adaptiveQuadrature.cc
►
nf_incompleteGammaFunctions.cc
►
nf_Legendre.cc
►
nf_Legendre_GaussianQuadrature.cc
►
nf_polevl.cc
►
nf_stringToDoubles.cc
nf_stringToDoubles_main.cc
►
nf_utilities.cc
►
PoPs.cc
PoPs_Bcast.cc
►
PoPs_data.cc
►
PoPs_mass.cc
►
ptwX_core.cc
►
ptwX_misc.cc
►
ptwXY_binaryOperators.cc
►
ptwXY_convenient.cc
►
ptwXY_core.cc
►
ptwXY_functions.cc
►
ptwXY_integration.cc
►
ptwXY_interpolation.cc
►
ptwXY_methods.cc
►
ptwXY_misc.cc
►
ptwXY_unitaryOperators.cc
►
statusMessageReporting.cc
►
xDataTOM.cc
►
xDataTOM_axes.cc
►
xDataTOM_importXML.cc
►
xDataTOM_importXML_axes.cc
►
xDataTOM_importXML_KalbachMann.cc
►
xDataTOM_importXML_polynomial.cc
►
xDataTOM_importXML_regionsW_XYs_LegendreSeries.cc
►
xDataTOM_importXML_regionsXYs.cc
►
xDataTOM_importXML_V_W_XYs.cc
►
xDataTOM_importXML_V_W_XYs_LegendreSeries.cc
►
xDataTOM_importXML_W_XYs.cc
►
xDataTOM_importXML_W_XYs_LegendreSeries.cc
►
xDataTOM_importXML_XYs.cc
►
xDataTOM_interpolation.cc
►
xDataTOM_KalbachMann.cc
►
xDataTOM_LegendreSeries.cc
►
xDataTOM_Misc.cc
►
xDataTOM_polynomial.cc
►
xDataTOM_regionsW_XYs_LegendreSeries.cc
►
xDataTOM_regionsXYs.cc
►
xDataTOM_V_W_XYs.cc
►
xDataTOM_V_W_XYs_LegendreSeries.cc
►
xDataTOM_W_XYs.cc
►
xDataTOM_W_XYs_LegendreSeries.cc
►
xDataTOM_XYs.cc
►
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
ptwXY_unitaryOperators.cc
Go to the documentation of this file.
1
/*
2
# <<BEGIN-copyright>>
3
# <<END-copyright>>
4
*/
5
6
#include <cmath>
7
#include <float.h>
8
9
#include "
ptwXY.h
"
10
11
#if defined __cplusplus
12
namespace
GIDI {
13
using namespace
GIDI;
14
#endif
15
16
/*
17
************************************************************
18
*/
19
nfu_status
ptwXY_abs
(
ptwXYPoints
*ptwXY ) {
20
21
int64_t i, nonOverflowLength =
ptwXY_getNonOverflowLength
( ptwXY );
22
ptwXYPoint
*p;
23
ptwXYOverflowPoint
*o, *overflowHeader = &(ptwXY->
overflowHeader
);
24
25
if
( ptwXY->
status
!=
nfu_Okay
)
return
( ptwXY->
status
);
26
27
for
( i = 0, p = ptwXY->
points
; i < nonOverflowLength; i++, p++ ) p->
y
= std::fabs( p->
y
);
28
for
( o = overflowHeader->
next
; o != overflowHeader; o = o->
next
) o->
point
.
y
= std::fabs( o->
point
.
y
);
29
return
( ptwXY->
status
);
30
}
19
nfu_status
ptwXY_abs
(
ptwXYPoints
*ptwXY ) {
…
}
31
/*
32
************************************************************
33
*/
34
nfu_status
ptwXY_neg
(
ptwXYPoints
*ptwXY ) {
35
36
int64_t i, nonOverflowLength =
ptwXY_getNonOverflowLength
( ptwXY );
37
ptwXYPoint
*p;
38
ptwXYOverflowPoint
*o, *overflowHeader = &(ptwXY->
overflowHeader
);
39
40
if
( ptwXY->
status
!=
nfu_Okay
)
return
( ptwXY->
status
);
41
42
for
( i = 0, p = ptwXY->
points
; i < nonOverflowLength; i++, p++ ) p->
y
= -p->
y
;
43
for
( o = overflowHeader->
next
; o != overflowHeader; o = o->
next
) o->
point
.
y
= -o->
point
.
y
;
44
return
( ptwXY->
status
);
45
}
34
nfu_status
ptwXY_neg
(
ptwXYPoints
*ptwXY ) {
…
}
46
47
#if defined __cplusplus
48
}
49
#endif
nfu_Okay
@ nfu_Okay
Definition
nf_utilities.h:25
nfu_status
enum nfu_status_e nfu_status
ptwXY.h
ptwXY_getNonOverflowLength
int64_t ptwXY_getNonOverflowLength(ptwXYPoints const *ptwXY)
Definition
ptwXY_core.cc:590
ptwXY_neg
nfu_status ptwXY_neg(ptwXYPoints *ptwXY)
Definition
ptwXY_unitaryOperators.cc:34
ptwXY_abs
nfu_status ptwXY_abs(ptwXYPoints *ptwXY)
Definition
ptwXY_unitaryOperators.cc:19
ptwXYOverflowPoint_s
Definition
ptwXY.h:76
ptwXYOverflowPoint_s::next
struct ptwXYOverflowPoint_s * next
Definition
ptwXY.h:78
ptwXYOverflowPoint_s::point
ptwXYPoint point
Definition
ptwXY.h:80
ptwXYPoint_s
Definition
ptwXY.h:61
ptwXYPoint_s::y
double y
Definition
ptwXY.h:62
ptwXYPoints_s
Definition
ptwXY.h:84
ptwXYPoints_s::overflowHeader
ptwXYOverflowPoint overflowHeader
Definition
ptwXY.h:98
ptwXYPoints_s::points
ptwXYPoint * points
Definition
ptwXY.h:99
ptwXYPoints_s::status
nfu_status status
Definition
ptwXY.h:85
geant4-v11.2.2
source
processes
hadronic
models
lend
src
ptwXY_unitaryOperators.cc
Generated by
1.12.0