Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

SelectObjects.hpp

Go to the documentation of this file.
00001 #ifndef CAFE_SELECTOBJECTS_HPP__
00002 #define CAFE_SELECTOBJECTS_HPP__
00003 
00004 #include "cafe/Event.hpp"
00005 #include "cafe/Formula.hpp"
00006 #include "cafe/Processor.hpp"
00007 
00008 #include <string>
00009 
00010 class TFile;
00011 class TTree;
00012 class TBranch;
00013 class TClonesArray;
00014 
00015 namespace cafe {
00016 
00034     class SelectObjects : public Processor, protected Formula {
00035     public:
00036         SelectObjects(const char *name);
00037         void inputFileOpened(TFile *file);
00038         void inputFileClosing(TFile *file);
00039         bool processEvent(cafe::Event& event);
00040     private:
00041         std::string  _fromBranch;
00042         std::string  _toBranch;
00043         std::string  _treeName;
00044         TTree        *_tree;
00045         TClonesArray *_result;
00046         TBranch      *_branch;
00047     public:
00048         ClassDef(SelectObjects, 0);
00049     };
00050     
00051 }
00052 
00053 #endif // CAFE_SELECTOBJECTS_HPP__

Generated on Tue Mar 28 10:13:04 2006 for CAF by doxygen 1.3.4