KaliVeda
Toolkit for HIC analysis
KVDataBranchHandler.h
1 
4 #ifndef __KVDATABRANCHHANDLER_H
5 #define __KVDATABRANCHHANDLER_H
6 
7 #include "KVBase.h"
8 #include "TTree.h"
9 #include "TBranch.h"
10 
17 class KVDataBranchHandler : public KVBase {
19  void* fAddr;
21 
22 public:
23  KVDataBranchHandler(TTree*, TObject*, const Char_t*, const Char_t*, const Char_t* = "");
24  virtual ~KVDataBranchHandler();
25 
28  TBranch* GetBranch() const
29  {
30  return fBranch;
31  };
32 
33  ClassDef(KVDataBranchHandler, 0) //Handles TTree branches for storing member variables of classes
34 };
35 
36 #endif
bool Bool_t
char Char_t
#define ClassDef(name, id)
Base class for KaliVeda framework.
Definition: KVBase.h:142
Handles TTree branches for storing member variables of classes.
virtual ~KVDataBranchHandler()
Destructor.
TBranch * GetBranch() const
TBranch * fBranch
the branch
void * fAddr
address of variable
TBranch * CreateBranch()
Create new branch in TTree for member variable and return its address.
TTree * fTree
the TTree
KVDataBranchHandler(TTree *, TObject *, const Char_t *, const Char_t *, const Char_t *="")