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
26class THbookBranch : public TBranch {
27
28protected:
29 TString fBlockName; //Hbook block name
30
31public:
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 ~THbookBranch() override;
36 void Browse(TBrowser *b) override;
37 Int_t GetEntry(Long64_t entry=0, Int_t getall=0) override;
38 const char *GetBlockName() const {return fBlockName.Data();}
39 void SetAddress(void *addobj) override;
40 void SetBlockName(const char *name) {fBlockName=name;}
41 void SetEntries(Long64_t n) override {fEntries=n;}
42
43 ClassDefOverride(THbookBranch,1) //A branch for a THbookTree
44};
45
46#endif
int Int_t
Definition: RtypesCore.h:45
long long Long64_t
Definition: RtypesCore.h:80
#define ClassDefOverride(name, id)
Definition: Rtypes.h:339
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t b
char name[80]
Definition: TGX11.cxx:110
A TTree is a list of TBranches.
Definition: TBranch.h:89
Long64_t fEntries
Number of entries.
Definition: TBranch.h:130
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
HBOOK Branch.
Definition: THbookBranch.h:26
Int_t GetEntry(Long64_t entry=0, Int_t getall=0) override
get one entry from hbook ntuple
void SetEntries(Long64_t n) override
Set the number of entries in this branch.
Definition: THbookBranch.h:41
TString fBlockName
Definition: THbookBranch.h:29
const char * GetBlockName() const
Definition: THbookBranch.h:38
void SetAddress(void *addobj) override
Set address of this branch See important remark in the header of THbookTree.
void SetBlockName(const char *name)
Definition: THbookBranch.h:40
~THbookBranch() override
void Browse(TBrowser *b) override
Browser interface.
Basic string class.
Definition: TString.h:136
const char * Data() const
Definition: TString.h:369
A TTree represents a columnar dataset.
Definition: TTree.h:79
const Int_t n
Definition: legend1.C:16
Definition: tree.py:1
@ kInherit
Some objects use this value to denote that the compression algorithm should be inherited from the par...
Definition: Compression.h:86