15 ClassImp(THbookBranch);
25 THbookBranch::THbookBranch(TTree *tree,
const char *name,
void *address,
const char *leaflist, Int_t basketsize, Int_t compress)
26 :TBranch(tree, name,address,leaflist,basketsize,compress)
32 THbookBranch::THbookBranch(TBranch *branch,
const char *name,
void *address,
const char *leaflist, Int_t basketsize, Int_t compress)
33 :TBranch(branch,name,address,leaflist,basketsize,compress)
39 THbookBranch::~THbookBranch()
47 void THbookBranch::Browse(TBrowser *b)
49 THbookTree *tree = (THbookTree*)GetTree();
50 THbookFile *file = tree->GetHbookFile();
59 Int_t THbookBranch::GetEntry(Long64_t entry, Int_t )
61 THbookTree *tree = (THbookTree*)GetTree();
62 THbookFile *file = tree->GetHbookFile();
63 if (tree->GetType() == 0) {
64 return file->GetEntry(entry,tree->GetID(),0,tree->GetX());
66 tree->InitBranches(entry);
67 return file->GetEntryBranch(entry,tree->GetID());
75 void THbookBranch::SetAddress(
void *add)
77 TBranch::SetAddress(add);
79 if (GetUniqueID() != 0)
return;
80 THbookTree *tree = (THbookTree*)GetTree();
81 THbookFile *file = tree->GetHbookFile();
82 if (tree->GetType() != 0) {
83 file->SetBranchAddress(tree->GetID(),GetBlockName(),add);