00001 // Original Author: Gero Flucke 00002 // last change : $Date: 2009/01/20 20:21:39 $ 00003 // by : $Author: flucke $ 00004 #ifndef PLOTMILLEMONITOR_H 00005 #define PLOTMILLEMONITOR_H 00006 00007 #include "PlotMilleMonitor.h" 00008 00009 #include <Rtypes.h> 00010 #include <TString.h> 00011 #include <vector> 00012 #include <utility> 00013 00014 class TFile; 00015 class GFHistManager; 00016 00017 class PlotMilleMonitor 00018 { 00019 public: 00020 explicit PlotMilleMonitor(const char *fileName); 00021 virtual ~PlotMilleMonitor(); 00022 00023 void DrawAllByHit(const char *xy = "X", Option_t *option = "");// option: 'add','sum','sumonly','norm','gaus' 00024 void DrawResidualsByHit(const char *histName, const char *xy = "X", Option_t *option = "");// histName='resid','reduResid','sigma','angle'; option: 'add','sum','sumonly','norm,'gaus' 00025 00026 GFHistManager* GetHistManager() { return fHistManager;} 00027 00028 TString Unique(const char *name) const; 00029 // void CopyAddBinning(TString &name, const TH1 *hist) const;// extend 'name' taking binning from hist 00030 private: 00031 Int_t PrepareAdd(bool addPlots); 00032 bool OpenFilesLegends(const char *fileLegendList); 00033 Int_t AddResidualsByHit(const char *histName, std::pair<TFile*,TString> &fileLeg, 00034 Int_t layer, const char *xy, Option_t *option); 00035 00036 00037 GFHistManager *fHistManager; 00038 // TFile *fFile; 00039 std::vector<std::pair<TFile*, TString> > fFileLegends; 00040 // std::vector<TFile*> fFiles 00041 }; 00042 00043 #endif