// $Header #ifndef REVE_TTreeTools_H #define REVE_TTreeTools_H #include #include /**************************************************************************/ // TSelectorToEventList /**************************************************************************/ class TSelectorToEventList : public TSelectorDraw { protected: TEventList* fEvList; TList fInput; public: TSelectorToEventList(TEventList* evl, const Text_t* sel); virtual Bool_t Process(Long64_t entry); virtual Bool_t ProcessCut(Long64_t entry); virtual void ProcessFill(Long64_t entry) { fEvList->Enter(entry); } ClassDef(TSelectorToEventList, 1) }; /**************************************************************************/ // TTreeQuery /**************************************************************************/ class TTreeQuery : public TEventList { public: TTreeQuery() : TEventList() {} Int_t Select(TTree* t, const Text_t* selection); ClassDef(TTreeQuery, 1) }; /**************************************************************************/ /**************************************************************************/ #endif