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
PlotMilleMonitor::fHistManager
GFHistManager * fHistManager
Definition: PlotMilleMonitor.h:37
PlotMilleMonitor::DrawResidualsByHit
void DrawResidualsByHit(const char *histName, const char *xy="X", Option_t *option="")
GFHistManager
Definition: GFHistManager.h:20
PlotMilleMonitor::GetHistManager
GFHistManager * GetHistManager()
Definition: PlotMilleMonitor.h:26
MillePedeFileConverter_cfg.fileName
fileName
Definition: MillePedeFileConverter_cfg.py:32
fileinputsource_cfi.option
option
Definition: fileinputsource_cfi.py:87
PlotMilleMonitor
Definition: PlotMilleMonitor.h:17
PlotMilleMonitor::~PlotMilleMonitor
virtual ~PlotMilleMonitor()
PlotMilleMonitor::DrawAllByHit
void DrawAllByHit(const char *xy="X", Option_t *option="")
PlotMilleMonitor::PlotMilleMonitor
PlotMilleMonitor(const char *fileName)
PlotMilleMonitor.h
geometryCSVtoXML.xy
xy
Definition: geometryCSVtoXML.py:19
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
PlotMilleMonitor::PrepareAdd
Int_t PrepareAdd(bool addPlots)
PlotMilleMonitor::AddResidualsByHit
Int_t AddResidualsByHit(const char *histName, std::pair< TFile *, TString > &fileLeg, Int_t layer, const char *xy, Option_t *option)
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
PlotMilleMonitor::Unique
TString Unique(const char *name) const
PlotMilleMonitor::OpenFilesLegends
bool OpenFilesLegends(const char *fileLegendList)
PlotMilleMonitor::fFileLegends
std::vector< std::pair< TFile *, TString > > fFileLegends
Definition: PlotMilleMonitor.h:39