Public Member Functions | |
void | applyTo (TPaveText *) const |
cfgEntryLabel (const std::string &, const edm::ParameterSet &) | |
void | print () const |
Public Attributes | |
int | borderSize_ |
int | fillColor_ |
std::string | name_ |
std::string | option_ |
double | posX_ |
double | posY_ |
double | sizeX_ |
double | sizeY_ |
vstring | text_ |
int | textAlign_ |
double | textAngle_ |
int | textColor_ |
double | textSize_ |
Definition at line 91 of file DQMHistPlotter.h.
TauDQMHistPlotter::cfgEntryLabel::cfgEntryLabel | ( | const std::string & | name, |
const edm::ParameterSet & | cfg | ||
) |
Definition at line 340 of file DQMHistPlotter.cc.
References defaultLabelBorderSize, defaultLabelFillColor, defaultLabelOptions, defaultLabelPosX, defaultLabelPosY, defaultLabelSizeX, defaultLabelSizeY, defaultLabelTextAlign, defaultLabelTextAngle, defaultLabelTextColor, defaultLabelTextSize, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), mergeVDriftHistosByStation::name, reco::print(), and verbosity.
{ name_ = name; posX_ = ( cfg.exists("posX") ) ? cfg.getParameter<double>("posX") : defaultLabelPosX; posY_ = ( cfg.exists("posY") ) ? cfg.getParameter<double>("posY") : defaultLabelPosY; sizeX_ = ( cfg.exists("sizeX") ) ? cfg.getParameter<double>("sizeX") : defaultLabelSizeX; sizeY_ = ( cfg.exists("sizeY") ) ? cfg.getParameter<double>("sizeY") : defaultLabelSizeY; option_ = ( cfg.exists("option") ) ? cfg.getParameter<std::string>("option") : defaultLabelOptions; borderSize_ = ( cfg.exists("borderSize") ) ? cfg.getParameter<int>("borderSize") : defaultLabelBorderSize; fillColor_ = ( cfg.exists("fillColor") ) ? cfg.getParameter<int>("fillColor") : defaultLabelFillColor; textColor_ = ( cfg.exists("textColor") ) ? cfg.getParameter<int>("textColor") : defaultLabelTextColor; textSize_ = ( cfg.exists("textSize") ) ? cfg.getParameter<double>("textSize") : defaultLabelTextSize; textAlign_ = ( cfg.exists("textAlign") ) ? cfg.getParameter<int>("textAlign") : defaultLabelTextAlign; textAngle_ = ( cfg.exists("textAngle") ) ? cfg.getParameter<double>("textAngle") : defaultLabelTextAngle; text_ = cfg.getParameter<vstring>("text"); if ( verbosity ) print(); }
void TauDQMHistPlotter::cfgEntryLabel::applyTo | ( | TPaveText * | label | ) | const |
Definition at line 378 of file DQMHistPlotter.cc.
References geometryCSVtoXML::line.
Referenced by TauDQMHistPlotter::endRun().
{ if ( label ) { //--- WARNING: need to call TPaveText::SetX1NDC, **not** TPaveText::SetX1 !! // (see documentation of base-class constructor // TPave::TPave(Double_t, Double_t,Double_t, Double_t, Int_t, Option_t*) // in TPave.cxx for details) label->SetX1NDC(posX_); label->SetY1NDC(posY_); label->SetX2NDC(posX_ + sizeX_); label->SetY2NDC(posY_ + sizeY_); label->SetOption(option_.data()); label->SetBorderSize(borderSize_); label->SetFillColor(fillColor_); label->SetTextColor(textColor_); label->SetTextSize(textSize_); label->SetTextAlign(textAlign_); label->SetTextAngle(textAngle_); for ( vstring::const_iterator line = text_.begin(); line != text_.end(); ++line ) { label->AddText(line->data()); } } }
void TauDQMHistPlotter::cfgEntryLabel::print | ( | void | ) | const |
Definition at line 360 of file DQMHistPlotter.cc.
References gather_cfg::cout, and format_vstring().
{ std::cout << "<TauDQMHistPlotter::cfgEntryLabel::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 << " option = " << option_ << std::endl; std::cout << " borderSize = " << borderSize_ << std::endl; std::cout << " fillColor = " << fillColor_ << std::endl; std::cout << " textColor = " << textColor_ << std::endl; std::cout << " textSize = " << textSize_ << std::endl; std::cout << " textAlign = " << textAlign_ << std::endl; std::cout << " textAngle = " << textAngle_ << std::endl; std::cout << " text = " << format_vstring(text_) << std::endl; }
Definition at line 102 of file DQMHistPlotter.h.
Definition at line 103 of file DQMHistPlotter.h.
std::string TauDQMHistPlotter::cfgEntryLabel::name_ |
Definition at line 96 of file DQMHistPlotter.h.
std::string TauDQMHistPlotter::cfgEntryLabel::option_ |
Definition at line 101 of file DQMHistPlotter.h.
Definition at line 97 of file DQMHistPlotter.h.
Definition at line 98 of file DQMHistPlotter.h.
Definition at line 99 of file DQMHistPlotter.h.
Definition at line 100 of file DQMHistPlotter.h.
Definition at line 108 of file DQMHistPlotter.h.
Definition at line 106 of file DQMHistPlotter.h.
Definition at line 107 of file DQMHistPlotter.h.
Definition at line 104 of file DQMHistPlotter.h.
Definition at line 105 of file DQMHistPlotter.h.