Definition at line 28 of file TTreeProxyGenerator.h.
Public Types | |
enum | EContainer { kNone , kClones , kSTL } |
enum | EOption { kNoOption , kNoHist } |
Public Member Functions | |
TTreeProxyGenerator (TTree *tree, const char *script, const char *cutscript, const char *fileprefix, const char *option, UInt_t maxUnrolling) | |
Constructor. | |
TTreeProxyGenerator (TTree *tree, const char *script, const char *fileprefix, const char *option, UInt_t maxUnrolling) | |
Constructor. | |
TBranchProxyClassDescriptor * | AddClass (TBranchProxyClassDescriptor *desc) |
Add a Class Descriptor. | |
void | AddDescriptor (TBranchProxyDescriptor *desc) |
Add a branch descriptor. | |
void | AddForward (const char *classname) |
Add a forward declaration request. | |
void | AddForward (TClass *cl) |
Add a forward declaration request. | |
void | AddFriend (TFriendProxyDescriptor *desc) |
Add Friend descriptor. | |
void | AddMissingClassAsEnum (const char *clname, bool isscope) |
Generate an enum for a given type if it is not known in the list of class unless the type itself a template. | |
void | AddPragma (const char *pragma_text) |
Add a forward declaration request. | |
UInt_t | AnalyzeBranches (UInt_t level, TBranchProxyClassDescriptor *topdesc, TBranchElement *branch, TVirtualStreamerInfo *info=nullptr) |
Analyze the sub-branch and populate the TTreeProxyGenerator or the topdesc with its findings. | |
UInt_t | AnalyzeBranches (UInt_t level, TBranchProxyClassDescriptor *topdesc, TIter &branches, TVirtualStreamerInfo *info) |
Analyze the list of sub branches of a TBranchElement by looping over the streamer elements and create the appropriate class proxies. | |
void | AnalyzeElement (TBranch *branch, TStreamerElement *element, UInt_t level, TBranchProxyClassDescriptor *desc, const char *path) |
Analyze the element and populate the TTreeProxyGenerator or the topdesc with its findings. | |
UInt_t | AnalyzeOldBranch (TBranch *branch, UInt_t level, TBranchProxyClassDescriptor *desc) |
Analyze the branch and populate the TTreeProxyGenerator or the topdesc with its findings. | |
UInt_t | AnalyzeOldLeaf (TLeaf *leaf, UInt_t level, TBranchProxyClassDescriptor *topdesc) |
Analyze the leaf and populate the `TTreeProxyGenerator or the topdesc with its findings. | |
void | AnalyzeTree (TTree *tree) |
Analyze a TTree and its (potential) friends. | |
void | CheckForMissingClass (const char *clname) |
Check if the template parameter refers to an enum and/or a missing class (we can't tell those 2 apart unless the name as template syntax). | |
const char * | GetFileName () |
bool | NeedToEmulate (TClass *cl, UInt_t level) |
Return true if we should create a nested class representing this class. | |
void | ParseOptions () |
Parse the options string. | |
void | WriteProxy () |
Check whether the file exist and do something useful if it does. | |
![]() | |
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 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. | |
Public Attributes | |
TList * | fCurrentListOfTopProxies |
TString | fCutScript |
TString | fHeaderFileName |
TList | fListOfClasses |
TList | fListOfForwards |
TList | fListOfFriends |
TList | fListOfPragmas |
TList | fListOfTopProxies |
UInt_t | fMaxDatamemberType |
UInt_t | fMaxUnrolling |
UInt_t | fOptions |
TString | fPrefix |
TString | fScript |
![]() | |
TList | fListOfHeaders |
List of included headers. | |
TString | fOptionStr |
User options as a string. | |
TTree * | fTree |
Pointer to the tree. | |
#include <TTreeProxyGenerator.h>
Enumerator | |
---|---|
kNone | |
kClones | |
kSTL |
Definition at line 31 of file TTreeProxyGenerator.h.
Enumerator | |
---|---|
kNoOption | |
kNoHist |
Definition at line 32 of file TTreeProxyGenerator.h.
ROOT::Internal::TTreeProxyGenerator::TTreeProxyGenerator | ( | TTree * | tree, |
const char * | script, | ||
const char * | fileprefix, | ||
const char * | option, | ||
UInt_t | maxUnrolling | ||
) |
Constructor.
Definition at line 211 of file TTreeProxyGenerator.cxx.
ROOT::Internal::TTreeProxyGenerator::TTreeProxyGenerator | ( | TTree * | tree, |
const char * | script, | ||
const char * | cutscript, | ||
const char * | fileprefix, | ||
const char * | option, | ||
UInt_t | maxUnrolling | ||
) |
Constructor.
Definition at line 235 of file TTreeProxyGenerator.cxx.
TBranchProxyClassDescriptor * ROOT::Internal::TTreeProxyGenerator::AddClass | ( | TBranchProxyClassDescriptor * | desc | ) |
Add a Class Descriptor.
Definition at line 268 of file TTreeProxyGenerator.cxx.
void ROOT::Internal::TTreeProxyGenerator::AddDescriptor | ( | TBranchProxyDescriptor * | desc | ) |
Add a branch descriptor.
Definition at line 392 of file TTreeProxyGenerator.cxx.
void ROOT::Internal::TTreeProxyGenerator::AddForward | ( | const char * | classname | ) |
Add a forward declaration request.
Definition at line 347 of file TTreeProxyGenerator.cxx.
void ROOT::Internal::TTreeProxyGenerator::AddForward | ( | TClass * | cl | ) |
Add a forward declaration request.
Definition at line 368 of file TTreeProxyGenerator.cxx.
void ROOT::Internal::TTreeProxyGenerator::AddFriend | ( | TFriendProxyDescriptor * | desc | ) |
Add Friend descriptor.
Definition at line 298 of file TTreeProxyGenerator.cxx.
void ROOT::Internal::TTreeProxyGenerator::AddMissingClassAsEnum | ( | const char * | clname, |
bool | isscope | ||
) |
Generate an enum for a given type if it is not known in the list of class unless the type itself a template.
Definition at line 413 of file TTreeProxyGenerator.cxx.
void ROOT::Internal::TTreeProxyGenerator::AddPragma | ( | const char * | pragma_text | ) |
Add a forward declaration request.
Definition at line 376 of file TTreeProxyGenerator.cxx.
UInt_t ROOT::Internal::TTreeProxyGenerator::AnalyzeBranches | ( | UInt_t | level, |
TBranchProxyClassDescriptor * | topdesc, | ||
TBranchElement * | branch, | ||
TVirtualStreamerInfo * | info = nullptr |
||
) |
Analyze the sub-branch and populate the TTreeProxyGenerator or the topdesc with its findings.
Definition at line 483 of file TTreeProxyGenerator.cxx.
UInt_t ROOT::Internal::TTreeProxyGenerator::AnalyzeBranches | ( | UInt_t | level, |
TBranchProxyClassDescriptor * | topdesc, | ||
TIter & | branches, | ||
TVirtualStreamerInfo * | info | ||
) |
Analyze the list of sub branches of a TBranchElement by looping over the streamer elements and create the appropriate class proxies.
Definition at line 497 of file TTreeProxyGenerator.cxx.
void ROOT::Internal::TTreeProxyGenerator::AnalyzeElement | ( | TBranch * | branch, |
TStreamerElement * | element, | ||
UInt_t | level, | ||
TBranchProxyClassDescriptor * | desc, | ||
const char * | path | ||
) |
Analyze the element and populate the TTreeProxyGenerator or the topdesc with its findings.
Definition at line 1271 of file TTreeProxyGenerator.cxx.
UInt_t ROOT::Internal::TTreeProxyGenerator::AnalyzeOldBranch | ( | TBranch * | branch, |
UInt_t | level, | ||
TBranchProxyClassDescriptor * | topdesc | ||
) |
Analyze the branch and populate the TTreeProxyGenerator or the topdesc with its findings.
Sometimes several branch of the mom are also analyzed, the number of such branches is returned (this happens in the case of embedded objects inside an object inside a clones array split more than one level.
Definition at line 1054 of file TTreeProxyGenerator.cxx.
UInt_t ROOT::Internal::TTreeProxyGenerator::AnalyzeOldLeaf | ( | TLeaf * | leaf, |
UInt_t | level, | ||
TBranchProxyClassDescriptor * | topdesc | ||
) |
Analyze the leaf and populate the `TTreeProxyGenerator or the topdesc with its findings.
Definition at line 926 of file TTreeProxyGenerator.cxx.
void ROOT::Internal::TTreeProxyGenerator::AnalyzeTree | ( | TTree * | tree | ) |
Analyze a TTree and its (potential) friends.
Definition at line 1108 of file TTreeProxyGenerator.cxx.
void ROOT::Internal::TTreeProxyGenerator::CheckForMissingClass | ( | const char * | clname | ) |
Check if the template parameter refers to an enum and/or a missing class (we can't tell those 2 apart unless the name as template syntax).
Definition at line 438 of file TTreeProxyGenerator.cxx.
|
inline |
Definition at line 72 of file TTreeProxyGenerator.h.
Return true if we should create a nested class representing this class.
Definition at line 259 of file TTreeProxyGenerator.cxx.
void ROOT::Internal::TTreeProxyGenerator::ParseOptions | ( | ) |
Parse the options string.
Definition at line 1546 of file TTreeProxyGenerator.cxx.
void ROOT::Internal::TTreeProxyGenerator::WriteProxy | ( | ) |
Check whether the file exist and do something useful if it does.
Definition at line 1597 of file TTreeProxyGenerator.cxx.
TList* ROOT::Internal::TTreeProxyGenerator::fCurrentListOfTopProxies |
Definition at line 44 of file TTreeProxyGenerator.h.
TString ROOT::Internal::TTreeProxyGenerator::fCutScript |
Definition at line 35 of file TTreeProxyGenerator.h.
TString ROOT::Internal::TTreeProxyGenerator::fHeaderFileName |
Definition at line 37 of file TTreeProxyGenerator.h.
TList ROOT::Internal::TTreeProxyGenerator::fListOfClasses |
Definition at line 40 of file TTreeProxyGenerator.h.
TList ROOT::Internal::TTreeProxyGenerator::fListOfForwards |
Definition at line 45 of file TTreeProxyGenerator.h.
TList ROOT::Internal::TTreeProxyGenerator::fListOfFriends |
Definition at line 41 of file TTreeProxyGenerator.h.
TList ROOT::Internal::TTreeProxyGenerator::fListOfPragmas |
Definition at line 42 of file TTreeProxyGenerator.h.
TList ROOT::Internal::TTreeProxyGenerator::fListOfTopProxies |
Definition at line 43 of file TTreeProxyGenerator.h.
UInt_t ROOT::Internal::TTreeProxyGenerator::fMaxDatamemberType |
Definition at line 33 of file TTreeProxyGenerator.h.
UInt_t ROOT::Internal::TTreeProxyGenerator::fMaxUnrolling |
Definition at line 39 of file TTreeProxyGenerator.h.
UInt_t ROOT::Internal::TTreeProxyGenerator::fOptions |
Definition at line 38 of file TTreeProxyGenerator.h.
TString ROOT::Internal::TTreeProxyGenerator::fPrefix |
Definition at line 36 of file TTreeProxyGenerator.h.
TString ROOT::Internal::TTreeProxyGenerator::fScript |
Definition at line 34 of file TTreeProxyGenerator.h.