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
ApeEstimator_cff.width
width
Definition: ApeEstimator_cff.py:24
SiStripHistoPlotter::DQMStore
dqm::harvesting::DQMStore DQMStore
Definition: SiStripHistoPlotter.h:18
SiStripHistoPlotter::getNamedImageBuffer
void getNamedImageBuffer(const std::string &path, std::string &image)
Definition: SiStripHistoPlotter.cc:122
SiStripHistoPlotter::hasNamedImage
bool hasNamedImage(const std::string &name)
Definition: SiStripHistoPlotter.cc:189
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
SiStripHistoPlotter::createPlots
void createPlots(DQMStore *dqm_store)
Definition: SiStripHistoPlotter.cc:52
SiStripHistoPlotter::setNewCondDBPlot
void setNewCondDBPlot(std::string const &path, std::string const &option, int width, int height)
Definition: SiStripHistoPlotter.cc:275
SiStripHistoPlotter::condDBPlotsToMake
bool condDBPlotsToMake()
Definition: SiStripHistoPlotter.h:29
fileinputsource_cfi.option
option
Definition: fileinputsource_cfi.py:87
SiStripHistoPlotter::namedPictureBuffer_
std::map< std::string, std::string > namedPictureBuffer_
Definition: SiStripHistoPlotter.h:49
SiStripHistoPlotter::condDBPlotList_
std::vector< PlotParameter > condDBPlotList_
Definition: SiStripHistoPlotter.h:51
dqm::legacy::DQMStore
Definition: DQMStore.h:727
compare.hist
hist
Definition: compare.py:376
SiStripHistoPlotter::createCondDBPlots
void createCondDBPlots(DQMStore *dqm_store)
Definition: SiStripHistoPlotter.cc:285
SiStripHistoPlotter::MonitorElement
dqm::harvesting::MonitorElement MonitorElement
Definition: SiStripHistoPlotter.h:17
SiStripHistoPlotter::PlotParameter::CHeight
int CHeight
Definition: SiStripHistoPlotter.h:36
cmsswSequenceInfo.tp
tp
Definition: cmsswSequenceInfo.py:17
SiStripHistoPlotter::setNewPlot
void setNewPlot(std::string const &path, std::string const &option, int width, int height)
Definition: SiStripHistoPlotter.cc:39
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripHistoPlotter::setDrawingOption
void setDrawingOption(TH1 *hist)
Definition: SiStripHistoPlotter.cc:223
SiStripHistoPlotter::makeCondDBPlots
void makeCondDBPlots(DQMStore *dqm_store, const PlotParameter &par)
Definition: SiStripHistoPlotter.cc:300
SiStripHistoPlotter::plotsToMake
bool plotsToMake()
Definition: SiStripHistoPlotter.h:28
SiStripHistoPlotter::makePlot
void makePlot(DQMStore const *dqm_store, const PlotParameter &par)
Definition: SiStripHistoPlotter.cc:66
SiStripHistoPlotter::PlotParameter::Option
std::string Option
Definition: SiStripHistoPlotter.h:34
alignmentValidation.c1
c1
do drawing
Definition: alignmentValidation.py:1025
SiStripHistoPlotter::getProjection
void getProjection(MonitorElement *me, TH1F *tp)
Definition: SiStripHistoPlotter.cc:240
SiStripHistoPlotter::fillNamedImageBuffer
void fillNamedImageBuffer(TCanvas *c1, const std::string &name)
(Documentation under construction).
Definition: SiStripHistoPlotter.cc:145
SiStripHistoPlotter::plotList_
std::vector< PlotParameter > plotList_
Definition: SiStripHistoPlotter.h:50
SiStripHistoPlotter
Definition: SiStripHistoPlotter.h:15
SiStripHistoPlotter::SiStripHistoPlotter
SiStripHistoPlotter()
Definition: SiStripHistoPlotter.cc:25
SiStripHistoPlotter::PlotParameter::CWidth
int CWidth
Definition: SiStripHistoPlotter.h:35
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
SiStripHistoPlotter::PlotParameter::Path
std::string Path
Definition: SiStripHistoPlotter.h:33
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:56
SiStripHistoPlotter::createDummyImage
void createDummyImage(const std::string &name)
Definition: SiStripHistoPlotter.cc:199
SiStripHistoPlotter::PlotParameter
Definition: SiStripHistoPlotter.h:32
SiStripHistoPlotter::~SiStripHistoPlotter
~SiStripHistoPlotter()
Definition: SiStripHistoPlotter.cc:32
SiStripHistoPlotter::getDummyImage
void getDummyImage(std::string &image)
Definition: SiStripHistoPlotter.cc:207