Isolating bins by limiting ranges on axes in THnSparse

I am trying to use THnSparse as a way of reducing the amount of time and memory required to perform a task. My goal is to first store the location and time of electrons hitting the detector, then be able to come back to the full THnSparse, isolate the electrons in specific X and Y bins and get the bin content back as a list.

Is this something that can be done with THnSparse? Or am I misinterpreting the functionality of THnSparse?

Please read tips for efficient and successful posting and posting code

ROOT Version: ROOT 6.26
Platform: Linux
Compiler: Not Provided

Welcome to the ROOT Forum! Maybe @moneta can help with this