// Author: Pierre-Luc Drouin <http://www.physics.carleton.ca/~pldrouin>

#include "QTTreeUtils.h"

#include "debugger.h"

ClassImp(QTTreeUtils)

void QTTreeUtils::ClearBranchesAddresses(TTree* tree)
{
  //This function the the branch addresses of tree to NULL. It doesn't
  //deallocate memory for the buffer.
  TObjArray* blist=tree->GetListOfBranches();
  for(Int_t j=0;j<blist->GetEntries();j++){
    dynamic_cast<TBranch*>(blist->At(j))->SetAddress(NULL);
  }
}

#include "debugger.h"


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.