Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:32

0001 // Original Author: Gero Flucke
0002 // last change    : $Date: 2009/01/20 18:28:38 $
0003 // by             : $Author: flucke $
0004 #ifndef PLOTMILLEMONITOR_H
0005 #define PLOTMILLEMONITOR_H
0006 
0007 #include "PlotMilleMonitor.h"
0008 
0009 #include <Rtypes.h>
0010 #include <TString.h>
0011 #include <vector>
0012 #include <utility>
0013 
0014 class TFile;
0015 class GFHistManager;
0016 
0017 class PlotMilleMonitor
0018 {
0019  public:
0020   explicit PlotMilleMonitor(const char *fileName);
0021   virtual ~PlotMilleMonitor();
0022 
0023   void DrawAllByHit(const char *xy = "X", Option_t *option = "");// option: 'add','sum','sumonly','norm','gaus'
0024   void DrawResidualsByHit(const char *histName, const char *xy = "X", Option_t *option = "");// histName='resid','reduResid','sigma','angle'; option: 'add','sum','sumonly','norm,'gaus'
0025 
0026   GFHistManager* GetHistManager() { return fHistManager;}
0027 
0028   TString Unique(const char *name) const;
0029   //  void CopyAddBinning(TString &name, const TH1 *hist) const;// extend 'name' taking binning from hist
0030  private: 
0031   Int_t PrepareAdd(bool addPlots);
0032   bool OpenFilesLegends(const char *fileLegendList);
0033   Int_t AddResidualsByHit(const char *histName, std::pair<TFile*,TString> &fileLeg,
0034               Int_t layer, const char *xy, Option_t *option);
0035 
0036 
0037   GFHistManager *fHistManager;
0038   //  TFile         *fFile;
0039   std::vector<std::pair<TFile*, TString> > fFileLegends;
0040 //  std::vector<TFile*>  fFiles
0041 };
0042 
0043 #endif