Definition at line 85 of file TTreeReaderGenerator.h.
Public Member Functions | |
TTreeReaderGenerator (TTree *tree, const char *classname, Option_t *option) | |
Constructor. Analyzes the tree and writes selector. | |
Public Member Functions inherited from ROOT::Internal::TTreeGeneratorBase | |
TTreeGeneratorBase (TTree *tree, const char *option) | |
Constructor. | |
void | AddHeader (const char *classname) |
Add a header inclusion request. | |
void | AddHeader (TClass *cl) |
Add a header inclusion request. | |
TVirtualStreamerInfo * | GetBaseClass (TStreamerElement *element) |
Check if element is a base class and if yes, return the base class. | |
TString | GetContainedClassName (TBranchElement *branch, TStreamerElement *element, Bool_t ispointer) |
Get name of class inside a container. | |
TVirtualStreamerInfo * | GetStreamerInfo (TBranch *branch, TIter current, TClass *cl) |
Return the correct TStreamerInfo of class 'cl' in the list of branches (current) [Assuming these branches correspond to a flattened version of the class. | |
Private Member Functions | |
void | AddReader (TTreeReaderDescriptor::ReaderType type, TString dataType, TString name, TString branchName, TBranchDescriptor *parent=0, Bool_t isLeaf=kTRUE) |
Add a reader to the generated code. | |
UInt_t | AnalyzeBranches (TBranchDescriptor *desc, TBranchElement *branch, TVirtualStreamerInfo *info) |
Analyse sub-branches of 'branch' recursively and extract readers. | |
UInt_t | AnalyzeBranches (TBranchDescriptor *desc, TIter &branches, TVirtualStreamerInfo *info) |
Analyse sub-branches 'branches' recursively and extract readers. | |
UInt_t | AnalyzeOldBranch (TBranch *branch) |
Analyze branch and add the variables found. | |
UInt_t | AnalyzeOldLeaf (TLeaf *leaf, Int_t nleaves) |
Analyze the leaf and add the variables found. | |
void | AnalyzeTree (TTree *tree) |
Analyze tree and extract readers. | |
Bool_t | BranchNeedsReader (TString branchName, TBranchDescriptor *parent, Bool_t isLeaf) |
Check whether a branch should have a corresponding reader added, depending on the options provided by the user. | |
void | ParseOptions () |
Parse the user options. | |
void | WriteSelector () |
Generate code for selector class. | |
Private Attributes | |
TString | fClassname |
Class name of the selector. | |
Bool_t | fIncludeAllLeaves |
Should all leaves be included. | |
Bool_t | fIncludeAllTopmost |
Should all topmost branches be included. | |
std::vector< TString > | fIncludeLeaves |
Branches whose leaves should be included. | |
std::vector< TString > | fIncludeStruct |
Branches whom should be included. | |
TList | fListOfReaders |
List of readers. | |
Additional Inherited Members | |
Public Attributes inherited from ROOT::Internal::TTreeGeneratorBase | |
TList | fListOfHeaders |
List of included headers. | |
TString | fOptionStr |
User options as a string. | |
TTree * | fTree |
Pointer to the tree. | |
#include <TTreeReaderGenerator.h>
ROOT::Internal::TTreeReaderGenerator::TTreeReaderGenerator | ( | TTree * | tree, |
const char * | classname, | ||
Option_t * | option | ||
) |
Constructor. Analyzes the tree and writes selector.
Definition at line 41 of file TTreeReaderGenerator.cxx.
|
private |
Add a reader to the generated code.
Definition at line 53 of file TTreeReaderGenerator.cxx.
|
private |
Analyse sub-branches of 'branch' recursively and extract readers.
Definition at line 85 of file TTreeReaderGenerator.cxx.
|
private |
Analyse sub-branches 'branches' recursively and extract readers.
Definition at line 97 of file TTreeReaderGenerator.cxx.
Analyze branch and add the variables found.
The number of analyzed sub-branches is returned.
Definition at line 458 of file TTreeReaderGenerator.cxx.
Analyze the leaf and add the variables found.
Definition at line 480 of file TTreeReaderGenerator.cxx.
Analyze tree and extract readers.
Definition at line 645 of file TTreeReaderGenerator.cxx.
|
private |
Check whether a branch should have a corresponding reader added, depending on the options provided by the user.
Definition at line 588 of file TTreeReaderGenerator.cxx.
|
private |
Parse the user options.
Definition at line 617 of file TTreeReaderGenerator.cxx.
|
private |
Generate code for selector class.
Definition at line 783 of file TTreeReaderGenerator.cxx.
|
private |
Class name of the selector.
Definition at line 87 of file TTreeReaderGenerator.h.
|
private |
Should all leaves be included.
Definition at line 89 of file TTreeReaderGenerator.h.
|
private |
Should all topmost branches be included.
Definition at line 90 of file TTreeReaderGenerator.h.
|
private |
Branches whose leaves should be included.
Definition at line 91 of file TTreeReaderGenerator.h.
|
private |
Branches whom should be included.
Definition at line 92 of file TTreeReaderGenerator.h.
|
private |
List of readers.
Definition at line 88 of file TTreeReaderGenerator.h.