Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:32

0001 
0002 #ifndef Fireworks_Core_FWTSelectorToEventList_h
0003 #define Fireworks_Core_FWTSelectorToEventList_h
0004 
0005 #include "TSelectorEntries.h"
0006 
0007 class TTree;
0008 class TEventList;
0009 class TTreePlayer;
0010 
0011 class FWTSelectorToEventList : public TSelectorEntries {
0012 private:
0013   TEventList* fEvList;
0014   TTreePlayer* fPlayer;
0015   Bool_t fOwnEvList;
0016 
0017 public:
0018   FWTSelectorToEventList(TTree* tree, TEventList* evl, const char* sel);
0019   ~FWTSelectorToEventList() override;
0020 
0021   Bool_t Process(Long64_t entry) override;
0022 
0023   virtual Long64_t ProcessTree(Long64_t nentries = 1000000000, Long64_t firstentry = 0);
0024 
0025   TEventList* GetEventList() const { return fEvList; }
0026   void ClearEventList();
0027 
0028   Bool_t GetOwnEventList() const { return fOwnEvList; }
0029   void SetOwnEventList(Bool_t o) { fOwnEvList = o; }
0030 
0031   ClassDefOverride(FWTSelectorToEventList, 0);
0032 };
0033 
0034 #endif