CMS 3D CMS Logo

SiStripHistoPlotter.h
Go to the documentation of this file.
1 #ifndef _SiStripHistoPlotter_h_
2 #define _SiStripHistoPlotter_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:
22 
23  void getNamedImageBuffer(const std::string& path, std::string& image);
24  void createPlots(DQMStore* dqm_store);
25  void setNewPlot(std::string const& path,
26  std::string const& option,
27  int width,
28  int height);
30  void createCondDBPlots(DQMStore* dqm_store);
31  void setNewCondDBPlot(std::string const& path,
32  std::string const& option,
33  int width,
34  int height);
35  bool
37  {
38  return !plotList_.empty();
39  }
40  bool
42  {
43  return !condDBPlotList_.empty();
44  }
45 
46 private:
47  struct PlotParameter {
50  int CWidth;
51  int CHeight;
52  };
53 
54  void fillNamedImageBuffer(TCanvas * c1, const std::string& name);
55  void makePlot(DQMStore const* dqm_store, const PlotParameter& par);
56  void makeCondDBPlots(DQMStore* dqm_store, const PlotParameter& par);
57  bool hasNamedImage(const std::string & name);
58  void createDummyImage(const std::string& name);
59  void getDummyImage(std::string & image);
60 
61  void setDrawingOption(TH1* hist);
62  void getProjection(MonitorElement* me, TH1F* tp);
63 
64  std::map<std::string, std::string> namedPictureBuffer_;
65  std::vector<PlotParameter> plotList_;
66  std::vector<PlotParameter> condDBPlotList_;
67 };
68 
69 #endif
std::map< std::string, std::string > namedPictureBuffer_
bool hasNamedImage(const std::string &name)
void createPlots(DQMStore *dqm_store)
void setDrawingOption(TH1 *hist)
void createStaticPlot(MonitorElement *me, const std::string &file_name)
void setNewPlot(std::string const &path, std::string const &option, int width, int height)
std::vector< PlotParameter > condDBPlotList_
void getNamedImageBuffer(const std::string &path, std::string &image)
void createCondDBPlots(DQMStore *dqm_store)
void makePlot(DQMStore const *dqm_store, const PlotParameter &par)
void setNewCondDBPlot(std::string const &path, std::string const &option, int width, int height)
void makeCondDBPlots(DQMStore *dqm_store, const PlotParameter &par)
void getProjection(MonitorElement *me, TH1F *tp)
void createDummyImage(const std::string &name)
void fillNamedImageBuffer(TCanvas *c1, const std::string &name)
(Documentation under construction).
std::vector< PlotParameter > plotList_
void getDummyImage(std::string &image)