3 //__________________________________________________________________________
6 // Collection of classes for TTree interaction.
8 #include "TTreeTools.h"
10 #include <TTreeFormula.h>
12 /**************************************************************************/
13 /**************************************************************************/
15 ClassImp(TSelectorToEventList)
17 TSelectorToEventList::TSelectorToEventList(TEventList* evl, const Text_t* sel) :
18 TSelectorDraw(), fEvList(evl)
20 fInput.Add(new TNamed("varexp", ""));
21 fInput.Add(new TNamed("selection", sel));
22 SetInputList(&fInput);
25 Bool_t TSelectorToEventList::Process(Long64_t entry)
27 if(ProcessCut(entry)) { ProcessFill(entry); return true; }
31 Bool_t TSelectorToEventList::ProcessCut(Long64_t )
33 return GetSelect()->EvalInstance(0) != 0;
36 /**************************************************************************/
37 /**************************************************************************/
41 Int_t TTreeQuery::Select(TTree* t, const Text_t* selection)
43 TSelectorToEventList sel(this, selection);
44 t->Process(&sel, "goff");