npanalysis - selecting a portion of useful data in the output tree
Created by: moukaddam
Is there a way to store only a portion of the analysed tree?
The point is to optimise the time spent at during the preliminary analysis.
In the npanalysis.cxx the portion where we fill the tree follows the 'Building of a physical event" without any check from the user:
for (unsigned int i = 0 ; i < nentries; i++) { // Get the raw Data Chain -> GetEntry(i); // Build the current event myDetector->BuildPhysicalEvent(); // Fill the tree tree->Fill(); etc... }
One way to do what is suggested is to redefine BuildPhysicalEvent() with a return value, that can be used as a condition to Fill the tree or to skip this step.
(Cc @ryanwilkinson)