CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPixelHistoPlotter.h
Go to the documentation of this file.
1 #ifndef _SiPixelHistoPlotter_h_
2 #define _SiPixelHistoPlotter_h_
3 
4 
5 #include <fstream>
6 #include <sstream>
7 #include <map>
8 #include <vector>
9 #include <string>
10 
11 #include "TCanvas.h"
12 
13 class DQMStore;
14 class MonitorElement;
15 class TH1;
16 
18 
19  public:
20 
23 
24  void getNamedImageBuffer(const std::string& path, std::string& image);
25  void createPlots(DQMStore* bei);
26  void setNewPlot(std::string& path, std::string& option,
27  int width, int height);
29 
30  private:
31 
32 
33  struct PlotParameter {
36  int CWidth;
37  int CHeight;
38 
39  };
40 
41  void fillNamedImageBuffer(TCanvas * c1, const std::string& name);
42  void makePlot(DQMStore* bei, const PlotParameter& par);
43  bool hasNamedImage(const std::string & name);
44  void createDummyImage(const std::string& name);
45  void setDrawingOption(TH1* hist);
46 
47  void setSubDetAxisDrawing( std::string detector,
48  TH1F * histo);
49  void setLines( MonitorElement * me,
50  std::string & meName,
51  double & ymin,
52  double & ymax,
53  double & warning,
54  double & error,
55  double & channelFraction);
56 
57  std::map<std::string, std::string> namedPictureBuffer_;
58  std::vector<PlotParameter> plotList_;
59 
60 };
61 #endif
bool hasNamedImage(const std::string &name)
std::map< std::string, std::string > namedPictureBuffer_
void makePlot(DQMStore *bei, const PlotParameter &par)
void setSubDetAxisDrawing(std::string detector, TH1F *histo)
void setLines(MonitorElement *me, std::string &meName, double &ymin, double &ymax, double &warning, double &error, double &channelFraction)
void setDrawingOption(TH1 *hist)
void getNamedImageBuffer(const std::string &path, std::string &image)
void createDummyImage(const std::string &name)
tuple path
else: Piece not in the list, fine.
void fillNamedImageBuffer(TCanvas *c1, const std::string &name)
(Documentation under construction).
void createPlots(DQMStore *bei)
void createStaticPlot(MonitorElement *me, const std::string &file_name)
std::vector< PlotParameter > plotList_
void setNewPlot(std::string &path, std::string &option, int width, int height)