CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
TauDQMHistPlotter::cfgEntryDrawOption Struct Reference

Public Member Functions

void applyTo (TH1 *) const
 
 cfgEntryDrawOption (const std::string &, const edm::ParameterSet &)
 
 cfgEntryDrawOption (const std::string &, const cfgEntryDrawOption &)
 
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_
 

Detailed Description

Definition at line 104 of file DQMHistPlotter.h.

Constructor & Destructor Documentation

◆ cfgEntryDrawOption() [1/2]

TauDQMHistPlotter::cfgEntryDrawOption::cfgEntryDrawOption ( const std::string &  name,
const edm::ParameterSet cfg 
)

Definition at line 399 of file DQMHistPlotter.cc.

References looper::cfg, mergeVDriftHistosByStation::name, print(), AlCaHLTBitMon_QueryRunRegistry::string, and verbosity.

399  {
400  name_ = name;
401 
402  markerColor_ = (cfg.exists("markerColor")) ? cfg.getParameter<int>("markerColor") : defaultMarkerColor;
403  markerSize_ = (cfg.exists("markerSize")) ? cfg.getParameter<double>("markerSize") : defaultMarkerSize;
404  markerStyle_ = (cfg.exists("markerStyle")) ? cfg.getParameter<int>("markerStyle") : defaultMarkerStyle;
405 
406  lineColor_ = (cfg.exists("lineColor")) ? cfg.getParameter<int>("lineColor") : defaultLineColor;
407  lineStyle_ = (cfg.exists("lineStyle")) ? cfg.getParameter<int>("lineStyle") : defaultLineStyle;
408  lineWidth_ = (cfg.exists("lineWidth")) ? cfg.getParameter<int>("lineWidth") : defaultLineWidth;
409 
410  fillColor_ = (cfg.exists("fillColor")) ? cfg.getParameter<int>("fillColor") : defaultFillColor;
411  fillStyle_ = (cfg.exists("fillStyle")) ? cfg.getParameter<int>("fillStyle") : defaultFillStyle;
412 
413  drawOption_ = (cfg.exists("drawOption")) ? cfg.getParameter<std::string>("drawOption") : defaultDrawOption;
415  (cfg.exists("drawOptionLegend")) ? cfg.getParameter<std::string>("drawOptionLegend") : defaultDrawOptionLegend;
416 
417  if (verbosity)
418  print();
419 }
const int verbosity

◆ cfgEntryDrawOption() [2/2]

TauDQMHistPlotter::cfgEntryDrawOption::cfgEntryDrawOption ( const std::string &  name,
const cfgEntryDrawOption blueprint 
)

Definition at line 421 of file DQMHistPlotter.cc.

References print(), and verbosity.

422  : name_(name),
423  markerColor_(blueprint.markerColor_),
424  markerSize_(blueprint.markerSize_),
425  markerStyle_(blueprint.markerStyle_),
426  lineColor_(blueprint.lineColor_),
427  lineStyle_(blueprint.lineStyle_),
428  lineWidth_(blueprint.lineWidth_),
429  fillColor_(blueprint.fillColor_),
430  fillStyle_(blueprint.fillStyle_),
431  drawOption_(blueprint.drawOption_),
432  drawOptionLegend_(blueprint.drawOptionLegend_) {
433  if (verbosity)
434  print();
435 }
const int verbosity

Member Function Documentation

◆ applyTo()

void TauDQMHistPlotter::cfgEntryDrawOption::applyTo ( TH1 *  histogram) const

Definition at line 452 of file DQMHistPlotter.cc.

Referenced by TauDQMHistPlotter::endRun().

452  {
453  if (histogram) {
454  histogram->SetMarkerColor(markerColor_);
455  histogram->SetMarkerSize(markerSize_);
456  histogram->SetMarkerStyle(markerStyle_);
457  histogram->SetLineColor(lineColor_);
458  histogram->SetLineStyle(lineStyle_);
459  histogram->SetLineWidth(lineWidth_);
460  histogram->SetFillColor(fillColor_);
461  histogram->SetFillStyle(fillStyle_);
462  }
463 }

◆ print()

void TauDQMHistPlotter::cfgEntryDrawOption::print ( void  ) const

Definition at line 437 of file DQMHistPlotter.cc.

References gather_cfg::cout.

Referenced by cfgEntryDrawOption().

437  {
438  std::cout << "<TauDQMHistPlotter::cfgEntryDrawOption::print>:" << std::endl;
439  std::cout << " name = " << name_ << std::endl;
440  std::cout << " markerColor = " << markerColor_ << std::endl;
441  std::cout << " markerSize = " << markerSize_ << std::endl;
442  std::cout << " markerStyle = " << markerStyle_ << std::endl;
443  std::cout << " lineColor = " << lineColor_ << std::endl;
444  std::cout << " lineStyle = " << lineStyle_ << std::endl;
445  std::cout << " lineWidth = " << lineWidth_ << std::endl;
446  std::cout << " fillColor = " << fillColor_ << std::endl;
447  std::cout << " fillStyle = " << fillStyle_ << std::endl;
448  std::cout << " drawOption = " << drawOption_ << std::endl;
449  std::cout << " drawOptionLegend = " << drawOptionLegend_ << std::endl;
450 }

Member Data Documentation

◆ drawOption_

std::string TauDQMHistPlotter::cfgEntryDrawOption::drawOption_

Definition at line 118 of file DQMHistPlotter.h.

Referenced by TauDQMHistPlotter::endRun().

◆ drawOptionLegend_

std::string TauDQMHistPlotter::cfgEntryDrawOption::drawOptionLegend_

Definition at line 119 of file DQMHistPlotter.h.

Referenced by TauDQMHistPlotter::endRun().

◆ fillColor_

int TauDQMHistPlotter::cfgEntryDrawOption::fillColor_

Definition at line 116 of file DQMHistPlotter.h.

Referenced by TauDQMHistPlotter::endRun().

◆ fillStyle_

int TauDQMHistPlotter::cfgEntryDrawOption::fillStyle_

Definition at line 117 of file DQMHistPlotter.h.

Referenced by TauDQMHistPlotter::endRun().

◆ lineColor_

int TauDQMHistPlotter::cfgEntryDrawOption::lineColor_

Definition at line 113 of file DQMHistPlotter.h.

Referenced by TauDQMHistPlotter::endRun().

◆ lineStyle_

int TauDQMHistPlotter::cfgEntryDrawOption::lineStyle_

Definition at line 114 of file DQMHistPlotter.h.

◆ lineWidth_

int TauDQMHistPlotter::cfgEntryDrawOption::lineWidth_

Definition at line 115 of file DQMHistPlotter.h.

Referenced by TauDQMHistPlotter::endRun().

◆ markerColor_

int TauDQMHistPlotter::cfgEntryDrawOption::markerColor_

Definition at line 110 of file DQMHistPlotter.h.

Referenced by TauDQMHistPlotter::endRun().

◆ markerSize_

double TauDQMHistPlotter::cfgEntryDrawOption::markerSize_

Definition at line 111 of file DQMHistPlotter.h.

Referenced by TauDQMHistPlotter::endRun().

◆ markerStyle_

int TauDQMHistPlotter::cfgEntryDrawOption::markerStyle_

Definition at line 112 of file DQMHistPlotter.h.

◆ name_

std::string TauDQMHistPlotter::cfgEntryDrawOption::name_

Definition at line 109 of file DQMHistPlotter.h.