ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/TreeMod/src/TreeLoader.cc
Revision: 1.1
Committed: Wed Jul 2 16:34:06 2008 UTC (16 years, 10 months ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Have our customized tAM plugging.

File Contents

# Content
1 // $Id: TreeLoader.cxx 2950 2006-06-16 16:26:16Z loizides $
2
3 #include "MitAna/TreeMod/interface/TreeLoader.h"
4 #include <Riostream.h>
5 #include <TTree.h>
6 #include "MitAna/TreeMod/interface/TreeBranchLoader.h"
7
8 ClassImp(mithep::TreeLoader)
9
10 using namespace mithep;
11
12 //__________________________________________________________________________________________________
13 TreeLoader::TreeLoader()
14 {
15 // Default constructor.
16 }
17
18
19 //__________________________________________________________________________________________________
20 TAMVirtualBranchLoader *TreeLoader::CreateBranchLoader(TTree *tree, TAMBranchInfo* brInfo)
21 {
22 // Create our branch loader if the requested branch name is found in the tree.
23
24 if(tree->GetBranch(brInfo->GetName()) == 0) return 0;
25
26 return new TreeBranchLoader(brInfo);
27 }