Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various MiniRun5 isssues with trajectory assignments and final hit associated segments #120

Open
aj-nielsen opened this issue Apr 26, 2024 · 0 comments

Comments

@aj-nielsen
Copy link

aj-nielsen commented Apr 26, 2024

I'm currently using flow manager to try and look at prompt hit segments and trajectory segments (and final hit associated segments/tracks). I have run into a few different issues. Not sure if they're related to one another, but figured I'd mention all of them at once (didn't see any of these brought up as issues elsewhere...)

Just as setup, here are the different variables that I am plotting throughout the following examples:

f_name = 'C:/Users/AJN/Documents/DUNE/sample_files/MiniRun5_1E19_RHC.flow.0000001.FLOW.hdf5'
f_manager = h5flow.data.H5FlowDataManager(f_name, 'r')
PromptHits_ev = f_manager["charge/events", "charge/calib_prompt_hits", i_evt]
Segs_PromptHits = f_manager["charge/events", "charge/calib_prompt_hits", "charge/packets", "mc_truth/segments", i_evt]
Segs_FinalHits = f_manager["charge/events", "charge/calib_final_hits", "charge/calib_prompt_hits", "charge/packets", "mc_truth/segments", i_evt]
Trajectories_PromptHits = f_manager["charge/events","charge/calib_prompt_hits", "charge/packets",  "mc_truth/segments", "mc_truth/trajectories", i_evt]
Trajectories_FinalHits = f_manager["charge/events",  "charge/calib_final_hits", "charge/calib_prompt_hits", "charge/packets",  "mc_truth/segments", "mc_truth/trajectories", i_evt]

First: it seems that, with Segs_FinalHits, which I am plotting in the exact same way as the Flow tutorial from today (and Segs_PromptHits is being plotted correctly with the exact same code), although one end of of each segment is accurately being plotted with the prompt hits (which align with the final hits), the other end is always being plotted towards a point in the center:
image

Secondly: it seems that Trajectories_PromptHits and Trajectories_FinalHits both have the wrong units on them somewhere:
image
image

Even if I divide all x/y/z coordinates of the trajectories by 100 to display them a bit better, however, they still don't seem to match up with the segments:
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant