CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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:
20 
23 
24  void getNamedImageBuffer(const std::string& path, std::string& image);
25  void createPlots(DQMStore* dqm_store);
26  void setNewPlot(std::string& path, std::string& option,
27  int width, int height);
29  void createCondDBPlots(DQMStore* dqm_store);
30  void setNewCondDBPlot(std::string& path, std::string& option,
31  int width, int height);
32  bool plotsToMake() { return ((plotList_.size() > 0) ? true : false);}
33  bool condDBPlotsToMake(){ return ((condDBPlotList_.size() > 0) ? true : false);}
34 
35 
36  private:
37 
38 
39  struct PlotParameter {
42  int CWidth;
43  int CHeight;
44 
45  };
46 
47  void fillNamedImageBuffer(TCanvas * c1, const std::string& name);
48  void makePlot(DQMStore* dqm_store, const PlotParameter& par);
49  void makeCondDBPlots(DQMStore* dqm_store, const PlotParameter& par);
50  bool hasNamedImage(const std::string & name);
51  void createDummyImage(const std::string& name);
52  void getDummyImage(std::string & image);
53 
54  void setDrawingOption(TH1* hist);
55  void getProjection(MonitorElement* me, TH1F* tp);
56 
57 
58  std::map<std::string, std::string> namedPictureBuffer_;
59  std::vector<PlotParameter> plotList_;
60  std::vector<PlotParameter> condDBPlotList_;
61 
62 };
63 #endif
std::map< std::string, std::string > namedPictureBuffer_
bool hasNamedImage(const std::string &name)
void createPlots(DQMStore *dqm_store)
void setDrawingOption(TH1 *hist)
void setNewCondDBPlot(std::string &path, std::string &option, int width, int height)
void createStaticPlot(MonitorElement *me, const std::string &file_name)
std::vector< PlotParameter > condDBPlotList_
void getNamedImageBuffer(const std::string &path, std::string &image)
void createCondDBPlots(DQMStore *dqm_store)
void makeCondDBPlots(DQMStore *dqm_store, const PlotParameter &par)
void getProjection(MonitorElement *me, TH1F *tp)
void setNewPlot(std::string &path, std::string &option, int width, int height)
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)
void makePlot(DQMStore *dqm_store, const PlotParameter &par)