| NAIA
    1.1.1
    | 
Helper class to ease skimming operations. More...
#include <SkimTreeHandle.h>
| Public Member Functions | |
| SkimTreeHandle (std::unique_ptr< TFile > outFile, std::unique_ptr< T > chain, T *originalChain) | |
| Construct a new SkimTreeHandle.  More... | |
| int | Fill () | 
| Fills the underlying event in the output tree.  More... | |
| int | Write () | 
| Writes the skimmed tree on the output rootfile.  More... | |
| TFile * | RootFile () | 
| Get a non-owning pointer to the underlying rootfile.  More... | |
| Private Attributes | |
| std::unique_ptr< TFile > | m_outFile | 
| std::unique_ptr< T > | m_chain | 
| T * | m_originalChain | 
Helper class to ease skimming operations.
This class is meant to automate most of the work when the user has to skim a tree from an existing NAIA file. It will automatically setup the branches in the new tree.
| T | 
Definition at line 25 of file SkimTreeHandle.h.
| 
 | inline | 
Construct a new SkimTreeHandle.
Used internally. SkimTreeHandles should always be created by the parent NAIAChain
| outFile | The rootfile where the new tree will be resident | 
| chain | The new NAIA chain to be filled | 
| originalChain | The original NAIA chain from which events will be copied | 
Definition at line 35 of file SkimTreeHandle.h.
| 
 | inline | 
Fills the underlying event in the output tree.
Definition at line 43 of file SkimTreeHandle.h.
References NAIA::SkimTreeHandle< T >::m_chain, and NAIA::SkimTreeHandle< T >::m_originalChain.
| 
 | inline | 
Get a non-owning pointer to the underlying rootfile.
Definition at line 98 of file SkimTreeHandle.h.
References NAIA::SkimTreeHandle< T >::m_outFile.
| 
 | inline | 
Writes the skimmed tree on the output rootfile.
Definition at line 53 of file SkimTreeHandle.h.
References NAIA::SkimTreeHandle< T >::m_chain, NAIA::SkimTreeHandle< T >::m_originalChain, and NAIA::SkimTreeHandle< T >::m_outFile.
| 
 | private | 
Definition at line 102 of file SkimTreeHandle.h.
Referenced by NAIA::SkimTreeHandle< T >::Fill(), and NAIA::SkimTreeHandle< T >::Write().
| 
 | private | 
Definition at line 103 of file SkimTreeHandle.h.
Referenced by NAIA::SkimTreeHandle< T >::Fill(), and NAIA::SkimTreeHandle< T >::Write().
| 
 | private | 
Definition at line 101 of file SkimTreeHandle.h.
Referenced by NAIA::SkimTreeHandle< T >::RootFile(), and NAIA::SkimTreeHandle< T >::Write().
 1.8.18
 1.8.18