KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVEventListMaker.h
Go to the documentation of this file.
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 
30 
31 protected:
37 
38  void init()
39  {
41  ktname = kfname = kbname = "";
42  ktag_tree = kFALSE;
43  }
44 
45 public:
47  {
49  init();
50  }
52  {
54  };
55 
56  void Clear()
57  {
58  /*do nothing*/
59  }
60 
61  void SetTreeName(KVString name)
62  {
63  ktname = name;
64  }
66  {
67  return ktname;
68  }
69 
71  {
72  kbname = name;
73  }
75  {
76  return kbname;
77  }
78 
79  void SetFileName(KVString name)
80  {
81  kfname = name;
82  }
84  {
85  return kfname;
86  }
87 
88  void TagWithTreeName(Bool_t tag = kTRUE)
89  {
90  ktag_tree = tag;
91  }
92 
94  {
96  Bool_t temp = kTRUE;
97  temp &= (GetFileName() != "");
98  temp &= (GetTreeName() != "");
99  temp &= (GetBranchName() != "");
100  return temp;
101  }
102 
103  void Process();
104 
105  ClassDef(KVEventListMaker, 1) //compute TEventList on trees
106 
107 };
108 
109 #endif
const Bool_t kFALSE
bool Bool_t
const Bool_t kTRUE
#define ClassDef(name, id)
Compute TEventList for TTree.
KVString GetFileName()
KVString ktname
name of the tree
void TagWithTreeName(Bool_t tag=kTRUE)
Bool_t ktag_tree
il faut separer les noms par un espace exemple "module couronne"
KVString GetBranchName()
KVString GetTreeName()
void SetTreeName(KVString name)
void SetBranchName(KVString name)
void SetFileName(KVString name)
KVString kfname
name of the file
virtual ~KVEventListMaker()
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:72