22 using namespace ROOT::Experimental;
23 namespace REX = ROOT::Experimental;
34 REveSelectorToEventList::REveSelectorToEventList(TEventList* evl,
const char* sel) :
35 TSelectorDraw(), fEvList(evl)
37 fInput.Add(
new TNamed(
"varexp",
""));
38 fInput.Add(
new TNamed(
"selection", sel));
39 SetInputList(&fInput);
45 Bool_t REveSelectorToEventList::Process(Long64_t entry)
47 if(GetSelect()->EvalInstance(0) != 0)
48 fEvList->Enter(entry);
67 REvePointSelector::REvePointSelector(TTree* t,
68 REvePointSelectorConsumer* c,
69 const char* vexp,
const char* sel) :
79 SetInputList(&fInput);
85 Long64_t REvePointSelector::Select(
const char* selection)
88 if (fSubIdExp.IsNull()) {
91 fSubIdNum = fSubIdExp.CountChar(
':') + 1;
92 var +=
":" + fSubIdExp;
102 fInput.Add(
new TNamed(
"varexp", var.Data()));
103 fInput.Add(
new TNamed(
"selection", sel.Data()));
106 fConsumer->InitFill(fSubIdNum);
109 fTree->Process(
this,
"goff");
111 return fSelectedRows;
117 Long64_t REvePointSelector::Select(TTree *t,
const char *selection)
120 return Select(selection);
127 void REvePointSelector::TakeAction()
129 fSelectedRows += fNfill;
132 fConsumer->TakeAction(
this);