Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
F-CRG
BM07
bm07
Commits
965cce8a
Commit
965cce8a
authored
Oct 08, 2021
by
Yoann Sallaz Damaz
Browse files
ss
parent
19fde2c7
Pipeline
#56258
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Tools/BM07Raytracing.py
View file @
965cce8a
...
...
@@ -23,28 +23,17 @@ bm07.SHIFT_ANG_SOURCE = args.beam_ang
bm07
.
SHIFT_ALT_SL0
=
args
.
SL0
bm07
.
SHIFT_ALT_M1
=
args
.
M1
bm07
.
SHIFT_ALT_MOVEH
=
args
.
MOVEH
<<<<<<<
HEAD
bm07
.
NB_BEAM
=
100
=======
bm07
.
NB_BEAM
=
1000
>>>>>>>
1
d06cd8f5fbf3b4ccd21ff8a906265288f1c0f39
dataX
=
[
-
4
,
-
3.5
,
-
3
,
-
2.5
,
-
2
,
-
1.5
,
-
1
,
-
0.5
,
0
,
0.5
,
1
,
1.5
,
2
,
2.5
,
3
,
3.5
,
4
]
P_Source
,
photon_distribution
,
angles_distribution
=
bm07
.
creation_source
()
<<<<<<<
HEAD
diodeList
=
[]
for
shift
in
dataX
:
AllObject
=
bm07
.
create_geometry
()
nbHit
,
nbHitWeighted
,
rayons
,
rayons_w
,
hauteurFluo3
=
bm07
.
propagation
(
AllObject
,
P_Source
,
photon_distribution
,
angles_distribution
)
print
(
"SHIFT, NB HIT IN DIODE = "
,
shift
,
nbHit
)
diodeList
.
append
(
nbHitWeighted
)
=======
arglist
=
[]
for
shift
in
dataX
:
geometry
=
bm07
.
create_geometry
(
shift
)
arglist
.
append
([
geometry
,
P_Source
,
photon_distribution
,
angles_distribution
])
>>>>>>>
1
d06cd8f5fbf3b4ccd21ff8a906265288f1c0f39
with
Pool
()
as
p
:
nbHits
,
nbHitWeighteds
,
rayonss
,
rayons_ws
=
zip
(
*
p
.
starmap
(
bm07
.
propagation
,
arglist
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment