Description
Please describe the use case that requires this feature.
I'm doing some studies that use the CORSIKA photon bunches from ctapipe, also with the IACTEXT compilation option enabled to store particle emitter information. In sim_telarray I enable the SAVE_PHOTONS
option so that the MC photon bunches and emitter info are passed through to the simtel file. I can access them for each telescope event with source.file_.current_photons[tel_id - 1]
and source.file_.current_emitter[tel_id - 1]
, but this feels very hackish.
Describe the solution you'd like
I would like them to be treated the same as other simulation properties and put under the SimulatedCameraContainer so they show up at say, event.simulation.tel[tel_id].shower_photons
and event.simulation.tel[tel_id].shower_emitter
.
Describe alternatives you've considered
As I said, I have a workaround but top-level support would be nice.
I'm happy to take on this issue and create a PR, if you want to support this use case.
Activity