Logo ROOT  
Reference Guide
THbookBranch.h
Go to the documentation of this file.
1 // @(#)root/hbook:$Id$
2 // Author: Rene Brun 18/02/2002
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
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_THbookBranch
13 #define ROOT_THbookBranch
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // THbookBranch //
19 // //
20 // A branch for a THbookTree //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #include "TBranch.h"
25 
26 class THbookBranch : public TBranch {
27 
28 protected:
29  TString fBlockName; //Hbook block name
30 
31 public:
32  THbookBranch() {;}
33  THbookBranch(TTree *tree, const char *name, void *address, const char *leaflist, Int_t basketsize=32000, Int_t compress = ROOT::RCompressionSetting::EAlgorithm::kInherit);
34  THbookBranch(TBranch *branch, const char *name, void *address, const char *leaflist, Int_t basketsize=32000, Int_t compress = ROOT::RCompressionSetting::EAlgorithm::kInherit);
35  virtual ~THbookBranch();
36  virtual void Browse(TBrowser *b);
37  virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0);
38  const char *GetBlockName() const {return fBlockName.Data();}
39  virtual void SetAddress(void *addobj);
40  void SetBlockName(const char *name) {fBlockName=name;}
41  virtual void SetEntries(Long64_t n) {fEntries=n;}
42 
43  ClassDef(THbookBranch,1) //A branch for a THbookTree
44 };
45 
46 #endif
n
const Int_t n
Definition: legend1.C:16
THbookBranch::THbookBranch
THbookBranch()
Definition: THbookBranch.h:38
TBrowser
Definition: TBrowser.h:37
TString::Data
const char * Data() const
Definition: TString.h:369
tree
Definition: tree.py:1
TBranch.h
Long64_t
long long Long64_t
Definition: RtypesCore.h:73
TTree
Definition: TTree.h:79
THbookBranch::SetEntries
virtual void SetEntries(Long64_t n)
Set the number of entries in this branch.
Definition: THbookBranch.h:47
THbookBranch::SetAddress
virtual void SetAddress(void *addobj)
Set address of this branch See important remark in the header of THbookTree.
Definition: THbookBranch.cxx:75
TString
Definition: TString.h:136
b
#define b(i)
Definition: RSha256.hxx:118
THbookBranch::GetBlockName
const char * GetBlockName() const
Definition: THbookBranch.h:44
TBranch::fEntries
Long64_t fEntries
Number of entries.
Definition: TBranch.h:130
TBranch
Definition: TBranch.h:89
THbookBranch::fBlockName
TString fBlockName
Definition: THbookBranch.h:35
THbookBranch
HBOOK Branch.
Definition: THbookBranch.h:26
THbookBranch::Browse
virtual void Browse(TBrowser *b)
Browser interface.
Definition: THbookBranch.cxx:47
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
name
char name[80]
Definition: TGX11.cxx:110
THbookBranch::SetBlockName
void SetBlockName(const char *name)
Definition: THbookBranch.h:46
THbookBranch::GetEntry
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
get one entry from hbook ntuple
Definition: THbookBranch.cxx:59
ROOT::RCompressionSetting::EAlgorithm::kInherit
@ kInherit
Some objects use this value to denote that the compression algorithm should be inherited from the par...
Definition: Compression.h:98
THbookBranch::~THbookBranch
virtual ~THbookBranch()
Definition: THbookBranch.cxx:39
int