Implement SelectRuns and SelectSubRuns
As options on RootOutput, with behaviour analogous to SelectEvents.
Spun off from Issue 4895
#1 Updated by Christopher Green about 6 years ago
- Category set to Event Loop
- Status changed from New to Feedback
- Experiment NOvA added
- Experiment deleted (
- SSI Package art added
- SSI Package deleted (
- Omit subrun records for which no events have been written; and
- Omit run records for which no subrun records have been written?
selectRuns options you suggest would be harder to implement, and open the possibility of a mis-configured job being able to write events with no run or subrun records into a file, which we believe would qualify currently as a corrupted (and therefore unreadable) file.
#2 Updated by Christopher Backhouse about 6 years ago
I'm not quite sure this works. I want to be able to have eg retain a subrun with products in it, but all of the constituent events filtered out (which is currently possible). And likewise with a run, which isn't currently possible.
A worse failure case I guess is that with my scheme one could try and cut out a subrun that had events still remaining in it. But presumably it should be possible to flag these as errors as soon as the module makes such an inconsistent determination.
You could make the action of Select[Sub]Runs dependent on this criterion that nothing from the lower level has been written. That seems like a good way to retain safety.
#4 Updated by Christopher Backhouse about 4 years ago
I had a feeling this feature, or one similar to it, had been implemented, but I can't find any evidence in redmine.
I've run into the need for this again. I'm making skim files of a few events out of many hundreds of runs. I'd prefer my output file to be as minimal as possible, only consisting the runs that are actually needed to contain the events I select.