Logo ROOT   6.18/05
Reference Guide
TTreeProxyGenerator.h
Go to the documentation of this file.
1// @(#)root/treeplayer:$Id$
2// Author: Philippe Canal 01/06/2004
3
4/*************************************************************************
5 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers and al. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TTreeProxyGenerator
13#define ROOT_TTreeProxyGenerator
14
15#include "TTreeGeneratorBase.h"
16
17class TBranch;
18class TBranchElement;
19class TLeaf;
21
22namespace ROOT {
23namespace Internal {
24 class TFriendProxyDescriptor;
25 class TBranchProxyDescriptor;
26 class TBranchProxyClassDescriptor;
27
29 {
30 public:
46 TTreeProxyGenerator(TTree* tree, const char *script, const char *fileprefix,
47 const char *option, UInt_t maxUnrolling);
48 TTreeProxyGenerator(TTree* tree, const char *script, const char *cutscript,
49 const char *fileprefix, const char *option, UInt_t maxUnrolling);
50
53 void AddForward(TClass *cl);
54 void AddForward(const char *classname);
56 void AddMissingClassAsEnum(const char *clname, Bool_t isscope);
57 void AddPragma(const char *pragma_text);
58 void CheckForMissingClass(const char *clname);
59
61
62 void ParseOptions();
63
68 void AnalyzeElement(TBranch *branch, TStreamerElement *element, UInt_t level, TBranchProxyClassDescriptor *desc, const char* path);
69 void AnalyzeTree(TTree *tree);
70 void WriteProxy();
71
72 const char *GetFileName() { return fHeaderFileName; }
73 };
74
75}
76}
77
78#endif
unsigned int UInt_t
Definition: RtypesCore.h:42
bool Bool_t
Definition: RtypesCore.h:59
void AddMissingClassAsEnum(const char *clname, Bool_t isscope)
TBranchProxyClassDescriptor * AddClass(TBranchProxyClassDescriptor *desc)
void AddDescriptor(TBranchProxyDescriptor *desc)
void AddPragma(const char *pragma_text)
UInt_t AnalyzeOldLeaf(TLeaf *leaf, UInt_t level, TBranchProxyClassDescriptor *topdesc)
Bool_t NeedToEmulate(TClass *cl, UInt_t level)
UInt_t AnalyzeOldBranch(TBranch *branch, UInt_t level, TBranchProxyClassDescriptor *desc)
void AnalyzeElement(TBranch *branch, TStreamerElement *element, UInt_t level, TBranchProxyClassDescriptor *desc, const char *path)
TTreeProxyGenerator(TTree *tree, const char *script, const char *fileprefix, const char *option, UInt_t maxUnrolling)
void AddFriend(TFriendProxyDescriptor *desc)
void CheckForMissingClass(const char *clname)
UInt_t AnalyzeBranches(UInt_t level, TBranchProxyClassDescriptor *topdesc, TBranchElement *branch, TVirtualStreamerInfo *info=0)
void ParseOptions()
Parse the options string.
void WriteProxy()
Check whether the file exist and do something useful if it does.
A Branch for the case of an object.
A TTree is a list of TBranches.
Definition: TBranch.h:65
TClass instances represent classes, structs and namespaces in the ROOT type system.
Definition: TClass.h:75
A TLeaf describes individual elements of a TBranch See TBranch structure in TTree.
Definition: TLeaf.h:49
A doubly linked list.
Definition: TList.h:44
Basic string class.
Definition: TString.h:131
A TTree represents a columnar dataset.
Definition: TTree.h:71
Abstract Interface class describing Streamer information for one class.
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21
Definition: tree.py:1