CMS 3D CMS Logo

SiStripHistoPlotter.h
Go to the documentation of this file.
1 #ifndef _SiStripHistoPlotter_h_
2 #define _SiStripHistoPlotter_h_
3 
4 #include <fstream>
5 #include <sstream>
6 #include <map>
7 #include <vector>
8 #include <string>
9 
10 #include "TCanvas.h"
12 
13 class TH1;
14 
16 public:
19 
22 
23  void getNamedImageBuffer(const std::string& path, std::string& image);
24  void createPlots(DQMStore* dqm_store);
25  void setNewPlot(std::string const& path, std::string const& option, int width, int height);
26  void createCondDBPlots(DQMStore* dqm_store);
27  void setNewCondDBPlot(std::string const& path, std::string const& option, int width, int height);
28  bool plotsToMake() { return !plotList_.empty(); }
29  bool condDBPlotsToMake() { return !condDBPlotList_.empty(); }
30 
31 private:
32  struct PlotParameter {
35  int CWidth;
36  int CHeight;
37  };
38 
39  void fillNamedImageBuffer(TCanvas* c1, const std::string& name);
40  void makePlot(DQMStore const* dqm_store, const PlotParameter& par);
41  void makeCondDBPlots(DQMStore* dqm_store, const PlotParameter& par);
42  bool hasNamedImage(const std::string& name);
43  void createDummyImage(const std::string& name);
44  void getDummyImage(std::string& image);
45 
46  void setDrawingOption(TH1* hist);
47  void getProjection(MonitorElement* me, TH1F* tp);
48 
49  std::map<std::string, std::string> namedPictureBuffer_;
50  std::vector<PlotParameter> plotList_;
51  std::vector<PlotParameter> condDBPlotList_;
52 };
53 
54 #endif
std::map< std::string, std::string > namedPictureBuffer_
bool hasNamedImage(const std::string &name)
void createPlots(DQMStore *dqm_store)
dqm::harvesting::DQMStore DQMStore
void setDrawingOption(TH1 *hist)
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)
dqm::harvesting::MonitorElement MonitorElement
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)