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

Hist2D.hpp

Go to the documentation of this file.
00001 #ifndef CAFE_HIST2D_HPP__
00002 #define CAFE_HIST2D_HPP__
00003 
00004 #include <string>
00005 #include "cafe/Processor.hpp"
00006 
00007 class TFile;
00008 class TH2F;
00009 class TTreeFormula;
00010 class TTreeFormulaManager;
00011 
00012 namespace cafe {
00013 
00014     class Formula;
00015 
00034     class Hist2D : public Processor {
00035     public:
00036         Hist2D(const char *name);
00037         ~Hist2D();
00038         void begin();
00039         void inputFileOpened(TFile *file);
00040         bool processEvent(Event& event);
00041     private:
00042         std::string  _title;
00043         int          _num_binsX;
00044         double       _bin_minX, _bin_maxX;
00045         int          _num_binsY;
00046         double       _bin_minY, _bin_maxY;
00047         TH2F         *_hist;
00048         Formula      *_select;
00049         Formula      *_draw1;
00050         Formula      *_draw2;
00051         TTreeFormulaManager *_mgr;
00052         std::string  _weight;
00053     public:
00054         ClassDef(Hist2D, 0);
00055     };
00056 
00057 }
00058 
00059 
00060 #endif // CAFE_HIST1D_HPP__

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