QBaseTree.hh

Go to the documentation of this file.
00001 #ifndef _Q_BASETREE_HH_
00002 #define _Q_BASETREE_HH_
00003 
00009 #define QTREE_NAME "qtree" 
00011 #define QEVENT_BRANCH "event_branch."
00012 
00013 #include <TTree.h>
00014 #include "Rtypes.h"
00015 
00016 class QBaseEventR;
00017 
00018 class QBaseTree : public TTree 
00019 {
00020         public:
00021                 enum QTreeType {
00022                         QTREE,
00023                         QATREE,
00024                         QITREE
00025                 };
00026 
00027                 QBaseTree();
00028 
00029                 QBaseTree(QTreeType, const char* title);
00030 
00031                 virtual ~QBaseTree() {}
00032 
00033                 QTreeType GetType() {return fTreeType;}
00034                 
00035                 TBranch* EventBranch(const char* classname, void* Add);
00036                 
00037                 void SetEventBranchAddress(QBaseEventR** Add);
00038 
00039         protected:
00040                 QTreeType fTreeType;
00041 
00042                 ClassDef(QBaseTree,1);
00043 };
00044 
00045 
00046 #endif

Generated on Tue Nov 16 10:49:59 2010 for CUORE Software by  doxygen 1.5.6