Diana Software
QBaseTree.hh
Go to the documentation of this file.
1 #ifndef _Q_BASETREE_HH_
2 #define _Q_BASETREE_HH_
18 #define QTREE_NAME "qtree"
20 #include <TTree.h>
21 #include "Rtypes.h"
22 #include "QTreeInfo.hh"
23 
24 class QBaseEventR;
25 
26 class QBaseTree : public TTree
27 {
28  public:
29  enum QTreeType {
32  QITREE
33  };
34 
35  QBaseTree();
36 
37  QBaseTree(QTreeType, const char* title);
38 
39  virtual ~QBaseTree() {}
40 
42 
43  const std::string& GetSoftwareRevision() { return GetTreeInfo().fSoftwareRevision; }
44 
45  const std::string& GetVersionTag() { return GetTreeInfo().fVersionTag; }
46 
47 
48  protected:
49 
51 };
52 
53 
54 #endif
abstract class for diana trees
Definition: QBaseTree.hh:27
QBaseTree()
Definition: QBaseTree.cc:8
const std::string & GetVersionTag()
Definition: QBaseTree.hh:45
ClassDef(QBaseTree, 3)
const std::string & GetSoftwareRevision()
Definition: QBaseTree.hh:43
virtual ~QBaseTree()
Definition: QBaseTree.hh:39
QTreeInfo & GetTreeInfo()
Definition: QBaseTree.cc:21
std::string fVersionTag
Definition: QTreeInfo.hh:15
std::string fSoftwareRevision
Definition: QTreeInfo.hh:14