Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/THbookBranch.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/hbook:$Id$
0002 // Author: Rene Brun   18/02/2002
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_THbookBranch
0013 #define ROOT_THbookBranch
0014 
0015 
0016 //////////////////////////////////////////////////////////////////////////
0017 //                                                                      //
0018 // THbookBranch                                                         //
0019 //                                                                      //
0020 // A branch for a THbookTree                                            //
0021 //                                                                      //
0022 //////////////////////////////////////////////////////////////////////////
0023 
0024 #include "TBranch.h"
0025 
0026 class THbookBranch : public TBranch {
0027 
0028 protected:
0029    TString      fBlockName;   //Hbook block name
0030 
0031 public:
0032    THbookBranch() {}
0033    THbookBranch(TTree *tree, const char *name, void *address, const char *leaflist, Int_t basketsize=32000, Int_t compress = ROOT::RCompressionSetting::EAlgorithm::kInherit);
0034    THbookBranch(TBranch *branch, const char *name, void *address, const char *leaflist, Int_t basketsize=32000, Int_t compress = ROOT::RCompressionSetting::EAlgorithm::kInherit);
0035    ~THbookBranch() override;
0036    void     Browse(TBrowser *b) override;
0037    Int_t    GetEntry(Long64_t entry=0, Int_t getall=0) override;
0038    const char      *GetBlockName() const {return fBlockName.Data();}
0039    void     SetAddress(void *addobj) override;
0040            void     SetBlockName(const char *name) {fBlockName=name;}
0041    void     SetEntries(Long64_t n) override {fEntries=n;}
0042 
0043    ClassDefOverride(THbookBranch,1)  //A branch for a THbookTree
0044 };
0045 
0046 #endif