Public Member Functions | |
void | applyTo (TLegend *) const |
cfgEntryLegend (const std::string &, const edm::ParameterSet &) | |
void | print () const |
Public Attributes | |
int | borderSize_ |
int | fillColor_ |
std::string | header_ |
std::string | name_ |
std::string | option_ |
double | posX_ |
double | posY_ |
double | sizeX_ |
double | sizeY_ |
Definition at line 75 of file DQMHistPlotter.h.
TauDQMHistPlotter::cfgEntryLegend::cfgEntryLegend | ( | const std::string & | name, |
const edm::ParameterSet & | cfg | ||
) |
Definition at line 292 of file DQMHistPlotter.cc.
References defaultLegendBorderSize, defaultLegendFillColor, defaultLegendHeader, defaultLegendOptions, defaultLegendPosX, defaultLegendPosY, defaultLegendSizeX, defaultLegendSizeY, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), mergeVDriftHistosByStation::name, reco::print(), and verbosity.
{ name_ = name; posX_ = ( cfg.exists("posX") ) ? cfg.getParameter<double>("posX") : defaultLegendPosX; posY_ = ( cfg.exists("posY") ) ? cfg.getParameter<double>("posY") : defaultLegendPosY; sizeX_ = ( cfg.exists("sizeX") ) ? cfg.getParameter<double>("sizeX") : defaultLegendSizeX; sizeY_ = ( cfg.exists("sizeY") ) ? cfg.getParameter<double>("sizeY") : defaultLegendSizeY; header_ = ( cfg.exists("header") ) ? cfg.getParameter<std::string>("header") : defaultLegendHeader; option_ = ( cfg.exists("option") ) ? cfg.getParameter<std::string>("option") : defaultLegendOptions; borderSize_ = ( cfg.exists("borderSize") ) ? cfg.getParameter<int>("borderSize") : defaultLegendBorderSize; fillColor_ = ( cfg.exists("fillColor") ) ? cfg.getParameter<int>("fillColor") : defaultLegendFillColor; if ( verbosity ) print(); }
void TauDQMHistPlotter::cfgEntryLegend::applyTo | ( | TLegend * | legend | ) | const |
Definition at line 322 of file DQMHistPlotter.cc.
{ if ( legend ) { legend->SetX1(posX_); legend->SetY1(posY_); legend->SetX2(posX_ + sizeX_); legend->SetY2(posY_ + sizeY_); legend->SetHeader(header_.data()); legend->SetOption(option_.data()); legend->SetBorderSize(borderSize_); legend->SetFillColor(fillColor_); } }
void TauDQMHistPlotter::cfgEntryLegend::print | ( | void | ) | const |
Definition at line 308 of file DQMHistPlotter.cc.
References gather_cfg::cout.
{ std::cout << "<TauDQMHistPlotter::cfgEntryLegend::print>:" << std::endl; std::cout << " name = " << name_ << std::endl; std::cout << " posX = " << posX_ << std::endl; std::cout << " posY = " << posY_ << std::endl; std::cout << " sizeX = " << sizeX_ << std::endl; std::cout << " sizeY = " << sizeY_ << std::endl; std::cout << " header = " << header_ << std::endl; std::cout << " option = " << option_ << std::endl; std::cout << " borderSize = " << borderSize_ << std::endl; std::cout << " fillColor = " << fillColor_ << std::endl; }
Definition at line 87 of file DQMHistPlotter.h.
Definition at line 88 of file DQMHistPlotter.h.
std::string TauDQMHistPlotter::cfgEntryLegend::header_ |
Definition at line 85 of file DQMHistPlotter.h.
std::string TauDQMHistPlotter::cfgEntryLegend::name_ |
Definition at line 80 of file DQMHistPlotter.h.
std::string TauDQMHistPlotter::cfgEntryLegend::option_ |
Definition at line 86 of file DQMHistPlotter.h.
Definition at line 81 of file DQMHistPlotter.h.
Definition at line 82 of file DQMHistPlotter.h.
Definition at line 83 of file DQMHistPlotter.h.
Definition at line 84 of file DQMHistPlotter.h.