// $Header: /data/reve-cvs/reve/revecore/TTreeTools.cxx,v 1.1.1.1 2005/12/04 19:42:49 aljam Exp $
//__________________________________________________________________________
// TTreeTools
//
// Collection of classes for TTree interaction.
#include "TTreeTools.h"
#include <TTree.h>
#include <TTreeFormula.h>
/**************************************************************************/
/**************************************************************************/
ClassImp(TSelectorToEventList)
TSelectorToEventList::TSelectorToEventList(TEventList* evl, const Text_t* sel) :
TSelectorDraw(), fEvList(evl)
{
fInput.Add(new TNamed("varexp", ""));
fInput.Add(new TNamed("selection", sel));
SetInputList(&fInput);
}
Bool_t TSelectorToEventList::Process(Long64_t entry)
{
if(ProcessCut(entry)) { ProcessFill(entry); return true; }
return false;
}
Bool_t TSelectorToEventList::ProcessCut(Long64_t entry)
{
return GetSelect()->EvalInstance(0) != 0;
}
/**************************************************************************/
/**************************************************************************/
ClassImp(TTreeQuery)
Int_t TTreeQuery::Select(TTree* t, const Text_t* selection)
{
TSelectorToEventList sel(this, selection);
t->Process(&sel, "goff");
return GetN();
}
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.