Public Member Functions | |
void | applyTo (TH1 *) const |
cfgEntryDrawOption (const std::string &, const cfgEntryDrawOption &) | |
cfgEntryDrawOption (const std::string &, const edm::ParameterSet &) | |
void | print () const |
Public Attributes | |
std::string | drawOption_ |
std::string | drawOptionLegend_ |
int | fillColor_ |
int | fillStyle_ |
int | lineColor_ |
int | lineStyle_ |
int | lineWidth_ |
int | markerColor_ |
double | markerSize_ |
int | markerStyle_ |
std::string | name_ |
Definition at line 111 of file DQMHistPlotter.h.
TauDQMHistPlotter::cfgEntryDrawOption::cfgEntryDrawOption | ( | const std::string & | name, |
const edm::ParameterSet & | cfg | ||
) |
Definition at line 407 of file DQMHistPlotter.cc.
References defaultDrawOption, defaultDrawOptionLegend, defaultFillColor, defaultFillStyle, defaultLineColor, defaultLineStyle, defaultLineWidth, defaultMarkerColor, defaultMarkerSize, defaultMarkerStyle, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), mergeVDriftHistosByStation::name, reco::print(), AlCaHLTBitMon_QueryRunRegistry::string, and PFRecoTauDiscriminationAgainstMuon2_cfi::verbosity.
{ name_ = name; markerColor_ = ( cfg.exists("markerColor") ) ? cfg.getParameter<int>("markerColor") : defaultMarkerColor; markerSize_ = ( cfg.exists("markerSize") ) ? cfg.getParameter<double>("markerSize") : defaultMarkerSize; markerStyle_ = ( cfg.exists("markerStyle") ) ? cfg.getParameter<int>("markerStyle") : defaultMarkerStyle; lineColor_ = ( cfg.exists("lineColor") ) ? cfg.getParameter<int>("lineColor") : defaultLineColor; lineStyle_ = ( cfg.exists("lineStyle") ) ? cfg.getParameter<int>("lineStyle") : defaultLineStyle; lineWidth_ = ( cfg.exists("lineWidth") ) ? cfg.getParameter<int>("lineWidth") : defaultLineWidth; fillColor_ = ( cfg.exists("fillColor") ) ? cfg.getParameter<int>("fillColor") : defaultFillColor; fillStyle_ = ( cfg.exists("fillStyle") ) ? cfg.getParameter<int>("fillStyle") : defaultFillStyle; drawOption_ = ( cfg.exists("drawOption") ) ? cfg.getParameter<std::string>("drawOption") : defaultDrawOption; drawOptionLegend_ = ( cfg.exists("drawOptionLegend") ) ? cfg.getParameter<std::string>("drawOptionLegend") : defaultDrawOptionLegend; if ( verbosity ) print(); }
TauDQMHistPlotter::cfgEntryDrawOption::cfgEntryDrawOption | ( | const std::string & | name, |
const cfgEntryDrawOption & | blueprint | ||
) |
Definition at line 428 of file DQMHistPlotter.cc.
References print(), and PFRecoTauDiscriminationAgainstMuon2_cfi::verbosity.
: name_(name), markerColor_(blueprint.markerColor_), markerSize_(blueprint.markerSize_), markerStyle_(blueprint.markerStyle_), lineColor_(blueprint.lineColor_), lineStyle_(blueprint.lineStyle_), lineWidth_(blueprint.lineWidth_), fillColor_(blueprint.fillColor_), fillStyle_(blueprint.fillStyle_), drawOption_(blueprint.drawOption_), drawOptionLegend_(blueprint.drawOptionLegend_) { if ( verbosity ) print(); }
void TauDQMHistPlotter::cfgEntryDrawOption::applyTo | ( | TH1 * | histogram | ) | const |
Definition at line 454 of file DQMHistPlotter.cc.
Referenced by TauDQMHistPlotter::endRun().
{ if ( histogram ) { histogram->SetMarkerColor(markerColor_); histogram->SetMarkerSize(markerSize_); histogram->SetMarkerStyle(markerStyle_); histogram->SetLineColor(lineColor_); histogram->SetLineStyle(lineStyle_); histogram->SetLineWidth(lineWidth_); histogram->SetFillColor(fillColor_); histogram->SetFillStyle(fillStyle_); } }
void TauDQMHistPlotter::cfgEntryDrawOption::print | ( | void | ) | const |
Definition at line 438 of file DQMHistPlotter.cc.
References gather_cfg::cout.
Referenced by cfgEntryDrawOption().
{ std::cout << "<TauDQMHistPlotter::cfgEntryDrawOption::print>:" << std::endl; std::cout << " name = " << name_ << std::endl; std::cout << " markerColor = " << markerColor_ << std::endl; std::cout << " markerSize = " << markerSize_ << std::endl; std::cout << " markerStyle = " << markerStyle_ << std::endl; std::cout << " lineColor = " << lineColor_ << std::endl; std::cout << " lineStyle = " << lineStyle_ << std::endl; std::cout << " lineWidth = " << lineWidth_ << std::endl; std::cout << " fillColor = " << fillColor_ << std::endl; std::cout << " fillStyle = " << fillStyle_ << std::endl; std::cout << " drawOption = " << drawOption_ << std::endl; std::cout << " drawOptionLegend = " << drawOptionLegend_ << std::endl; }
Definition at line 126 of file DQMHistPlotter.h.
Referenced by TauDQMHistPlotter::endRun().
Definition at line 127 of file DQMHistPlotter.h.
Referenced by TauDQMHistPlotter::endRun().
Definition at line 124 of file DQMHistPlotter.h.
Referenced by TauDQMHistPlotter::endRun().
Definition at line 125 of file DQMHistPlotter.h.
Referenced by TauDQMHistPlotter::endRun().
Definition at line 121 of file DQMHistPlotter.h.
Referenced by TauDQMHistPlotter::endRun().
Definition at line 122 of file DQMHistPlotter.h.
Definition at line 123 of file DQMHistPlotter.h.
Referenced by TauDQMHistPlotter::endRun().
Definition at line 118 of file DQMHistPlotter.h.
Referenced by TauDQMHistPlotter::endRun().
Definition at line 119 of file DQMHistPlotter.h.
Referenced by TauDQMHistPlotter::endRun().
Definition at line 120 of file DQMHistPlotter.h.
std::string TauDQMHistPlotter::cfgEntryDrawOption::name_ |
Definition at line 117 of file DQMHistPlotter.h.