SBNSoftware / sbnana

3 stars 14 forks source link

Feature/rh incremental loader #87

Closed rhowell42 closed 1 year ago

rhowell42 commented 2 years ago

I added an alternative SpectrumLoader::Go() method called SpectrumLoader::Select(unsigned int N) that grabs a single spill from the CAF files by index value of N. This would be very useful for my caf based event display so I could grab one event at a time without storing all the information in terribly long nested vectors. I also added an overload for SpectrumLoader::HandleFile to perform this specific action when the event index N is passed to it. I think this would also be a useful addition in general, though I can't think of other uses besides event displays.