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,
if prop_particles is not None:
lep_out_trk.status = km3io.definitions.trkmembers[
"TRK_ST_PROPLEPTON"]
generator_particle_state = km3io.definitions.trkmembers[
"TRK_ST_UNDEFINED"]
if geometry.in_can(vtx_pos):
generator_particle_state = km3io.definitions.trkmembers[
"TRK_ST_FINALSTATE"]
else:
generator_particle_state = km3io.definitions.trkmembers[
"TRK_ST_UNDEFINED"]
else:
lep_out_trk.status = km3io.definitions.trkmembers[
"TRK_ST_FINALSTATE"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment