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.
I added an alternative
SpectrumLoader::Go()
method calledSpectrumLoader::Select(unsigned int N)
that grabs a single spill from the CAF files by index value ofN
. 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 forSpectrumLoader::HandleFile
to perform this specific action when the event indexN
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.