test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PlotMilleMonitor.h
Go to the documentation of this file.
1 // Original Author: Gero Flucke
2 // last change : $Date: 2009/01/20 18:28:38 $
3 // by : $Author: flucke $
4 #ifndef PLOTMILLEMONITOR_H
5 #define PLOTMILLEMONITOR_H
6 
7 #include "PlotMilleMonitor.h"
8 
9 #include <Rtypes.h>
10 #include <TString.h>
11 #include <vector>
12 #include <utility>
13 
14 class TFile;
15 class GFHistManager;
16 
18 {
19  public:
20  explicit PlotMilleMonitor(const char *fileName);
21  virtual ~PlotMilleMonitor();
22 
23  void DrawAllByHit(const char *xy = "X", Option_t *option = "");// option: 'add','sum','sumonly','norm','gaus'
24  void DrawResidualsByHit(const char *histName, const char *xy = "X", Option_t *option = "");// histName='resid','reduResid','sigma','angle'; option: 'add','sum','sumonly','norm,'gaus'
25 
27 
28  TString Unique(const char *name) const;
29  // void CopyAddBinning(TString &name, const TH1 *hist) const;// extend 'name' taking binning from hist
30  private:
31  Int_t PrepareAdd(bool addPlots);
32  bool OpenFilesLegends(const char *fileLegendList);
33  Int_t AddResidualsByHit(const char *histName, std::pair<TFile*,TString> &fileLeg,
34  Int_t layer, const char *xy, Option_t *option);
35 
36 
38  // TFile *fFile;
39  std::vector<std::pair<TFile*, TString> > fFileLegends;
40 // std::vector<TFile*> fFiles
41 };
42 
43 #endif
TString Unique(const char *name) const
Int_t AddResidualsByHit(const char *histName, std::pair< TFile *, TString > &fileLeg, Int_t layer, const char *xy, Option_t *option)
Int_t PrepareAdd(bool addPlots)
GFHistManager * fHistManager
bool OpenFilesLegends(const char *fileLegendList)
std::vector< std::pair< TFile *, TString > > fFileLegends
void DrawAllByHit(const char *xy="X", Option_t *option="")
void DrawResidualsByHit(const char *histName, const char *xy="X", Option_t *option="")
PlotMilleMonitor(const char *fileName)
virtual ~PlotMilleMonitor()
GFHistManager * GetHistManager()