KaliVeda
Toolkit for HIC analysis
KVEventListMaker.h
1 /*
2 $Id: KVEventListMaker.h,v 1.2 2008/12/17 15:27:25 ebonnet Exp $
3 $Revision: 1.2 $
4 $Date: 2008/12/17 15:27:25 $
5 */
6 
9 
10 #ifndef __KVEVENTLISTMAKER_H
11 #define __KVEVENTLISTMAKER_H
12 
13 #include "KVList.h"
14 #include "KVString.h"
15 
31 
32 protected:
33  KVString ktname;
34  KVString kfname;
35  KVString kbname;
37  Bool_t ktag_tree;
38 
39  void init()
40  {
42  ktname = kfname = kbname = "";
43  ktag_tree = kFALSE;
44  }
45 
46 public:
48  {
50  init();
51  }
53  {
55  };
56 
57  void Clear()
58  {
59  /*do nothing*/
60  }
61 
62  void SetTreeName(KVString name)
63  {
64  ktname = name;
65  }
67  {
68  return ktname;
69  }
70 
72  {
73  kbname = name;
74  }
76  {
77  return kbname;
78  }
79 
80  void SetFileName(KVString name)
81  {
82  kfname = name;
83  }
85  {
86  return kfname;
87  }
88 
89  void TagWithTreeName(Bool_t tag = kTRUE)
90  {
91  ktag_tree = tag;
92  }
93 
95  {
97  Bool_t temp = kTRUE;
98  temp &= (GetFileName() != "");
99  temp &= (GetTreeName() != "");
100  temp &= (GetBranchName() != "");
101  return temp;
102  }
103 
104  void Process();
105 
106  ClassDef(KVEventListMaker, 1) //compute TEventList on trees
107 
108 };
109 
110 #endif
bool Bool_t
constexpr Bool_t kFALSE
constexpr Bool_t kTRUE
#define ClassDef(name, id)
char name[80]
Compute TEventList for TTree.
KVString GetFileName()
void TagWithTreeName(Bool_t tag=kTRUE)
KVString GetBranchName()
KVString GetTreeName()
void SetTreeName(KVString name)
void SetBranchName(KVString name)
void SetFileName(KVString name)
virtual ~KVEventListMaker()
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:73