diff --git a/.bumpversion.cfg b/.bumpversion.cfg index ba8316ca..af3af781 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.2.4 +current_version = 0.2.5 commit = True tag = True diff --git a/fuse/__init__.py b/fuse/__init__.py index 818117d0..d6a2b7f9 100644 --- a/fuse/__init__.py +++ b/fuse/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.2.4" +__version__ = "0.2.5" from . import plugins from .plugins import * diff --git a/fuse/plugins/micro_physics/input.py b/fuse/plugins/micro_physics/input.py index 87521d52..7b76854d 100644 --- a/fuse/plugins/micro_physics/input.py +++ b/fuse/plugins/micro_physics/input.py @@ -19,7 +19,7 @@ @export class ChunkInput(strax.Plugin): - __version__ = "0.1.1" + __version__ = "0.1.2" depends_on = tuple() provides = "geant4_interactions" @@ -83,7 +83,7 @@ class ChunkInput(strax.Plugin): ) cut_delayed = straxen.URLConfig( - default=4e14, type=(int, float), + default=9e18, type=(int, float), help='All interactions happening after this time (including the event time) will be cut.', ) @@ -288,7 +288,11 @@ def output_chunk(self): # Removing all events with no interactions: m = ak.num(interactions['ed']) > 0 interactions = interactions[m] - + + #Sort interactions in events by time and subtract time of the first interaction + interactions = interactions[ak.argsort(interactions['t'])] + interactions['t'] = interactions['t'] - interactions['t'][:, 0] + inter_reshaped = full_array_to_numpy(interactions, self.dtype) #Need to check start and stop again.... diff --git a/pyproject.toml b/pyproject.toml index 4b7a5167..165f58e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "fuse" -version = "0.2.4" +version = "0.2.5" authors = [ { name="Henning Schulze Eißing", email="h_schu55@uni-muenster.de" }, { name="Diego Ramírez García", email="diego.ramirez@physik.uzh.ch" }