00001 #ifndef CAFE_RUNCONTROLLER_HPP__ 00002 #define CAFE_RUNCONTROLLER_HPP__ 00003 00004 #include <string> 00005 #include <set> 00006 #include "cafe/Controller.hpp" 00007 00008 class TTree; 00009 class TFile; 00010 00011 namespace cafe { 00012 00013 class Processor; 00014 00047 class RunController : public Controller { 00048 public: 00049 RunController(const char *name); 00050 ~RunController(); 00051 00052 void processTree(TTree *tree, Event& event); 00053 bool Run(unsigned int max_events = 0); 00054 private: 00055 std::string _input; 00056 unsigned int _num_events; 00057 unsigned int _max_events; 00058 unsigned int _max_files; 00059 unsigned int _num_files; 00060 unsigned int _progress; 00061 int _skip; 00062 std::set<std::string> _friends; 00063 bool _partialReads; 00064 int _rootDebug; 00065 int _treeDebug; 00066 TFile *_eventList; 00067 std::string _treeName; 00068 public: 00069 ClassDef(RunController, 0); 00070 }; 00071 } 00072 00073 #endif // CAFE_RUNCONTROLLER_HPP__
1.3.4