#ifndef _TTREEUTILS_
#define _TTREEUTILS_
#include "debugger.h"
#include "Rtypes.h"
#include "TTree.h"
#include "TObjArray.h"
#include "TBranch.h"
class QTTreeUtils{
public:
template <typename U> static U* AssignBAddress(const Char_t* bname, TTree* tree, U* dummy)
{
U* ret;
if(!tree->GetBranch(bname)->GetAddress()){
ret=new U;
tree->SetBranchAddress(bname,ret);
}else{
ret=(U*)tree->GetBranch(bname)->GetAddress();
}
return ret;
}
static void ClearBranchesAddresses(TTree* tree);
ClassDef(QTTreeUtils,1)
};
#include "debugger.h"
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.