Skip to content
Snippets Groups Projects
Commit 1c10a924 authored by Johannes Schumann's avatar Johannes Schumann
Browse files

Check if initial vertex position is in CAN in order to decide for status of hadr. secondaries

parent 5ad36930
No related branches found
No related tags found
1 merge request!47Resolve "Muon Propagation"
...@@ -747,8 +747,12 @@ def write_detector_file(gibuu_output, ...@@ -747,8 +747,12 @@ def write_detector_file(gibuu_output,
if prop_particles is not None: if prop_particles is not None:
lep_out_trk.status = km3io.definitions.trkmembers[ lep_out_trk.status = km3io.definitions.trkmembers[
"TRK_ST_PROPLEPTON"] "TRK_ST_PROPLEPTON"]
generator_particle_state = km3io.definitions.trkmembers[ if geometry.in_can(vtx_pos):
"TRK_ST_UNDEFINED"] generator_particle_state = km3io.definitions.trkmembers[
"TRK_ST_FINALSTATE"]
else:
generator_particle_state = km3io.definitions.trkmembers[
"TRK_ST_UNDEFINED"]
else: else:
lep_out_trk.status = km3io.definitions.trkmembers[ lep_out_trk.status = km3io.definitions.trkmembers[
"TRK_ST_FINALSTATE"] "TRK_ST_FINALSTATE"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment