]>
Commit | Line | Data |
---|---|---|
5a5a1232 | 1 | // $Header |
2 | ||
3 | #ifndef REVE_TTreeTools_H | |
4 | #define REVE_TTreeTools_H | |
5 | ||
6 | #include <TSelectorDraw.h> | |
7 | #include <TEventList.h> | |
8 | ||
9 | /**************************************************************************/ | |
10 | // TSelectorToEventList | |
11 | /**************************************************************************/ | |
12 | ||
13 | class TSelectorToEventList : public TSelectorDraw | |
14 | { | |
15 | protected: | |
16 | TEventList* fEvList; | |
17 | TList fInput; | |
18 | public: | |
19 | TSelectorToEventList(TEventList* evl, const Text_t* sel); | |
20 | ||
21 | virtual Bool_t Process(Long64_t entry); | |
22 | virtual Bool_t ProcessCut(Long64_t entry); | |
23 | virtual void ProcessFill(Long64_t entry) { fEvList->Enter(entry); } | |
24 | ||
25 | ClassDef(TSelectorToEventList, 1) | |
26 | }; | |
27 | ||
28 | /**************************************************************************/ | |
29 | // TTreeQuery | |
30 | /**************************************************************************/ | |
31 | ||
32 | class TTreeQuery : public TEventList | |
33 | { | |
34 | public: | |
35 | TTreeQuery() : TEventList() {} | |
36 | ||
37 | Int_t Select(TTree* t, const Text_t* selection); | |
38 | ||
39 | ClassDef(TTreeQuery, 1) | |
40 | }; | |
41 | ||
42 | /**************************************************************************/ | |
43 | /**************************************************************************/ | |
44 | ||
45 | #endif |