00001 00015 #ifndef ANA_BASE_HH 00016 #define ANA_BASE_HH 00017 00018 #include <TFile.h> 00019 #include <TGraph.h> 00020 #include <TH1D.h> 00021 #include <TH2D.h> 00022 #include <TH3D.h> 00023 #include <TGraphErrors.h> 00024 00025 #include "larlight_base.hh" 00026 #include "DataFormat-TypeDef.hh" 00027 00028 namespace larlight { 00034 class ana_base : public larlight_base{ 00035 00036 public: 00037 00039 ana_base() : larlight_base() { _name="ana_base"; _fout=0;} 00040 00042 virtual ~ana_base(){} 00043 00045 virtual Bool_t initialize(){return true;} 00046 00048 virtual Bool_t analyze(storage_manager* data){return (data);} 00049 00051 virtual Bool_t finalize(){return true;} 00052 00054 void set_output_file(TFile* fout){_fout=fout;} 00055 00056 protected: 00057 00058 TFile* _fout; 00059 }; 00060 } 00061 #endif 00062 // end of doxygen group 00064