KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVDataBranchHandler.h
Go to the documentation of this file.
1 
4 #ifndef __KVDATABRANCHHANDLER_H
5 #define __KVDATABRANCHHANDLER_H
6 
7 #include "KVBase.h"
8 #include "TTree.h"
9 #include "TBranch.h"
10 
16 class KVDataBranchHandler : public KVBase {
18  void* fAddr;
20 
21 public:
22  KVDataBranchHandler(TTree*, TObject*, const Char_t*, const Char_t*, const Char_t* = "");
23  virtual ~KVDataBranchHandler();
24 
27  TBranch* GetBranch() const
28  {
29  return fBranch;
30  };
31 
32  ClassDef(KVDataBranchHandler, 0) //Handles TTree branches for storing member variables of classes
33 };
34 
35 #endif
char Char_t
bool Bool_t
#define ClassDef(name, id)
Base class for KaliVeda framework.
Definition: KVBase.h:141
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 *="")