Closed mlincett closed 2 years ago
~We would need to pass in Physics and Geometry information~
GCD info is in the state_dict
(state_dict["GCDQp_packet"]
)
~We would need to pass in Physics and Geometry information~
GCD info is in the
state_dict
(state_dict["GCDQp_packet"]
)
Right. Let's see if this works.
In the current realtime code,
get_reco_losses_inside(p_frame, g_frame)
is invoked fromload_scan_state()
to calculate the energy losses and store them instate_dict
. This is done every time the result of the scan is accessed from the scan cache.In the new design this is far from ideal, as the calculation should be performed once and for all right after getting the best LLH for the pixel, storing the result in
StateDict
. I had noticed in #27 that such a solution is implemented in thecloud_tools
version, where however the function is implemented and used as an IceTray module.We need to add this step in some point of processing, taking into account that both the Physics and Geometry information are required. @ric-evans could you suggest in which part of
start_scan.py
this could be integrated?