CMS 3D CMS Logo

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
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
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
TString Unique(const char *name) const
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()