ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/TAM/interface/TAMTreeBranchLoader.h
Revision: 1.2
Committed: Mon Jul 13 19:20:24 2009 UTC (15 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
Changes since 1.1: +9 -6 lines
Log Message:
Cleanup

File Contents

# User Rev Content
1 loizides 1.1 //
2 loizides 1.2 // $Id: TAMTreeBranchLoader.h,v 1.1 2008/05/27 19:13:21 loizides Exp $
3 loizides 1.1 //
4    
5     #ifndef ROOT_TAMTreeBranchLoader
6     #define ROOT_TAMTreeBranchLoader
7    
8    
9     #include <typeinfo>
10    
11    
12     #ifndef ROOT_TAMVirtualBranchLoader
13     #include "TAMVirtualBranchLoader.h"
14     #endif
15    
16    
17     class TClass;
18     class TBranch;
19     class TTree;
20    
21    
22     class TAMTreeBranchLoader : public TAMVirtualBranchLoader {
23     protected:
24     BranchAddr_t fBAddr; //branch address for the data
25 loizides 1.2 Bool_t fIsClass; //if the branch stores a class
26     // (as opposed to a struct)
27     Bool_t fLeafSizeConst; //if size of leaves in branch is const
28 loizides 1.1 TBranch *fBranch; //the branch itself (not owned)
29 loizides 1.2 TClass *fClass; //class information from dictionary
30     // (not owned)
31 loizides 1.1
32     void AllocateMemory();
33 loizides 1.2 Bool_t CheckBrClass(const type_info& ptrtype,
34     const TClass& cls);
35 loizides 1.1 Bool_t CheckBrStruct(TClass& cls);
36     Bool_t CheckBrType(const type_info& ptrtype);
37     Bool_t CheckBrTypeAllModules();
38     void DeleteMemory();
39     void SetBranchAddress();
40     void SetLeafAddresses();
41    
42     public:
43     TAMTreeBranchLoader(TAMBranchInfo *binfo);
44     virtual ~TAMTreeBranchLoader();
45    
46     void Clear(Option_t *option="");
47     void* GetAddress() const;
48     Int_t GetEntry(Long64_t entry);
49     using TObject::Notify;
50     Bool_t Notify(TTree *tree);
51    
52 loizides 1.2 ClassDef(TAMTreeBranchLoader,0) // TAM plugin to load data from a branch
53 loizides 1.1 };
54    
55    
56     #endif //ROOT_TAMTreeBranchLoader