12 #ifndef ROOT7_REveTreeTools
13 #define ROOT7_REveTreeTools
19 namespace Experimental {
26 class REveSelectorToEventList :
public TSelectorDraw
28 REveSelectorToEventList(
const REveSelectorToEventList &);
29 REveSelectorToEventList &operator=(
const REveSelectorToEventList &);
32 TEventList *fEvList{
nullptr};
36 REveSelectorToEventList(TEventList *evl,
const char *sel);
37 virtual ~REveSelectorToEventList() {}
39 virtual Int_t Version()
const {
return 1; }
40 virtual Bool_t Process(Long64_t entry);
42 ClassDef(REveSelectorToEventList, 1);
50 class REvePointSelector;
52 class REvePointSelectorConsumer
55 enum ETreeVarType_e { kTVT_XYZ, kTVT_RPhiZ };
58 ETreeVarType_e fSourceCS;
61 REvePointSelectorConsumer(ETreeVarType_e cs = kTVT_XYZ) : fSourceCS(cs) {}
62 virtual ~REvePointSelectorConsumer() {}
64 virtual void InitFill(Int_t ) {}
65 virtual void TakeAction(REvePointSelector *) = 0;
67 ETreeVarType_e GetSourceCS()
const {
return fSourceCS; }
68 void SetSourceCS(ETreeVarType_e cs) { fSourceCS = cs; }
76 class REvePointSelector :
public TSelectorDraw
78 REvePointSelector(
const REvePointSelector &);
79 REvePointSelector &operator=(
const REvePointSelector &);
82 TTree *fTree{
nullptr};
83 REvePointSelectorConsumer *fConsumer{
nullptr};
94 REvePointSelector(TTree *t =
nullptr, REvePointSelectorConsumer *c =
nullptr,
const char *vexp =
"",
const char *sel =
"");
95 virtual ~REvePointSelector() {}
97 virtual Long64_t Select(
const char *selection =
nullptr);
98 virtual Long64_t Select(TTree *t,
const char *selection =
nullptr);
99 virtual void TakeAction();
101 TTree *GetTree()
const {
return fTree; }
102 void SetTree(TTree *t) { fTree = t; }
104 REvePointSelectorConsumer *GetConsumer()
const {
return fConsumer; }
105 void SetConsumer(REvePointSelectorConsumer *c) { fConsumer = c; }
107 const char *GetVarexp()
const {
return fVarexp; }
108 void SetVarexp(
const char *v) { fVarexp = v; }
110 const char *GetSelection()
const {
return fSelection; }
111 void SetSelection(
const char *s) { fSelection = s; }
113 const char *GetSubIdExp()
const {
return fSubIdExp; }
114 void SetSubIdExp(
const char *s) { fSubIdExp = s; }
116 Int_t GetSubIdNum()
const {
return fSubIdNum; }
118 ClassDef(REvePointSelector, 1);