Skimming#
Ntuple skimming is very easy to do in NAIA. You can setup a new file for your skimmed ntuples by calling
NAIAChain::CreateSkimTree
and specifying the name of the output root file
(see doxygen).
CreateSkimTree
will return a SkimTreeHandle
object.
As the name implies the SkimTreeHandle
is a handle to the new tree, you can call Fill
on it to save a given event
in the new tree.
When you’re done processing you can call Write
on the SkimTreeHandle
to write the resulting TTree
on the
output root file.
Note
If you don’t want to write out some containers (in case you know you won’t need them and want to save some space)
you can pass a semicolon-separated list of containers to exclude as the second argument of CreateSkimHandle
.