THbookBranch.h

Go to the documentation of this file.
00001 // @(#)root/hbook:$Id: THbookBranch.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author: Rene Brun   18/02/2002
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_THbookBranch
00013 #define ROOT_THbookBranch
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // THbookBranch                                                         //
00019 //                                                                      //
00020 // A branch for a THbookTree                                            //
00021 //                                                                      //
00022 //////////////////////////////////////////////////////////////////////////
00023 
00024 #ifndef ROOT_TBranch
00025 #include "TBranch.h"
00026 #endif
00027 
00028 class THbookBranch : public TBranch {
00029 
00030 protected:
00031    TString      fBlockName;   //Hbook block name
00032 
00033 public:
00034    THbookBranch() {;}
00035    THbookBranch(TTree *tree, const char *name, void *address, const char *leaflist, Int_t basketsize=32000, Int_t compress=-1);
00036    THbookBranch(TBranch *branch, const char *name, void *address, const char *leaflist, Int_t basketsize=32000, Int_t compress=-1);
00037    virtual ~THbookBranch();
00038    virtual void     Browse(TBrowser *b);
00039    virtual Int_t    GetEntry(Long64_t entry=0, Int_t getall=0);
00040    const char      *GetBlockName() const {return fBlockName.Data();}
00041    virtual void     SetAddress(void *addobj);
00042            void     SetBlockName(const char *name) {fBlockName=name;}
00043    virtual void     SetEntries(Long64_t n) {fEntries=n;}
00044 
00045    ClassDef(THbookBranch,1)  //A branch for a THbookTree
00046 };
00047 
00048 #endif

Generated on Tue Jul 5 14:22:44 2011 for ROOT_528-00b_version by  doxygen 1.5.1