27 ClassImp(TEveSelectorToEventList);
32 TEveSelectorToEventList::TEveSelectorToEventList(TEventList* evl,
const char* sel) :
33 TSelectorDraw(), fEvList(evl)
35 fInput.Add(
new TNamed(
"varexp",
""));
36 fInput.Add(
new TNamed(
"selection", sel));
37 SetInputList(&fInput);
43 Bool_t TEveSelectorToEventList::Process(Long64_t entry)
45 if(GetSelect()->EvalInstance(0) != 0)
46 fEvList->Enter(entry);
62 ClassImp(TEvePointSelector);
63 ClassImp(TEvePointSelectorConsumer);
68 TEvePointSelector::TEvePointSelector(TTree* t,
69 TEvePointSelectorConsumer* c,
70 const char* vexp,
const char* sel) :
80 SetInputList(&fInput);
86 Long64_t TEvePointSelector::Select(
const char* selection)
89 if (fSubIdExp.IsNull()) {
92 fSubIdNum = fSubIdExp.CountChar(
':') + 1;
93 var +=
":" + fSubIdExp;
103 fInput.Add(
new TNamed(
"varexp", var.Data()));
104 fInput.Add(
new TNamed(
"selection", sel.Data()));
107 fConsumer->InitFill(fSubIdNum);
110 fTree->Process(
this,
"goff");
112 return fSelectedRows;
118 Long64_t TEvePointSelector::Select(TTree* t,
const char* selection)
121 return Select(selection);
128 void TEvePointSelector::TakeAction()
130 fSelectedRows += fNfill;
133 fConsumer->TakeAction(
this);