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 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_
 

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 398 of file DQMHistPlotter.cc.

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

References looper::cfg, defaultDrawOption, defaultDrawOptionLegend, defaultFillColor, defaultFillStyle, defaultLineColor, defaultLineStyle, defaultLineWidth, defaultMarkerColor, defaultMarkerSize, defaultMarkerStyle, Skims_PA_cff::name, print(), AlCaHLTBitMon_QueryRunRegistry::string, and verbosity.

◆ cfgEntryDrawOption() [2/2]

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

Definition at line 420 of file DQMHistPlotter.cc.

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

References print(), and verbosity.

Member Function Documentation

◆ applyTo()

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

Definition at line 451 of file DQMHistPlotter.cc.

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

Referenced by TauDQMHistPlotter::endRun().

◆ print()

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

Definition at line 436 of file DQMHistPlotter.cc.

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

References gather_cfg::cout.

Referenced by cfgEntryDrawOption().

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.

defaultFillColor
const int defaultFillColor
Definition: DQMHistPlotter.cc:77
defaultMarkerStyle
const int defaultMarkerStyle
Definition: DQMHistPlotter.cc:73
defaultLineWidth
const int defaultLineWidth
Definition: DQMHistPlotter.cc:76
TauDQMHistPlotter::cfgEntryDrawOption::name_
std::string name_
Definition: DQMHistPlotter.h:109
TauDQMHistPlotter::cfgEntryDrawOption::drawOption_
std::string drawOption_
Definition: DQMHistPlotter.h:118
defaultFillStyle
const int defaultFillStyle
Definition: DQMHistPlotter.cc:78
gather_cfg.cout
cout
Definition: gather_cfg.py:144
defaultLineColor
const int defaultLineColor
Definition: DQMHistPlotter.cc:74
verbosity
const int verbosity
Definition: DQMHistPlotter.cc:90
TauDQMHistPlotter::cfgEntryDrawOption::lineStyle_
int lineStyle_
Definition: DQMHistPlotter.h:114
defaultMarkerSize
const int defaultMarkerSize
Definition: DQMHistPlotter.cc:72
defaultMarkerColor
const int defaultMarkerColor
Definition: DQMHistPlotter.cc:71
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TauDQMHistPlotter::cfgEntryDrawOption::lineColor_
int lineColor_
Definition: DQMHistPlotter.h:113
defaultDrawOption
const std::string defaultDrawOption
Definition: DQMHistPlotter.cc:79
TauDQMHistPlotter::cfgEntryDrawOption::print
void print() const
Definition: DQMHistPlotter.cc:436
TauDQMHistPlotter::cfgEntryDrawOption::fillColor_
int fillColor_
Definition: DQMHistPlotter.h:116
TauDQMHistPlotter::cfgEntryDrawOption::markerStyle_
int markerStyle_
Definition: DQMHistPlotter.h:112
defaultDrawOptionLegend
const std::string defaultDrawOptionLegend
Definition: DQMHistPlotter.cc:80
TauDQMHistPlotter::cfgEntryDrawOption::lineWidth_
int lineWidth_
Definition: DQMHistPlotter.h:115
looper.cfg
cfg
Definition: looper.py:297
TauDQMHistPlotter::cfgEntryDrawOption::drawOptionLegend_
std::string drawOptionLegend_
Definition: DQMHistPlotter.h:119
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
TauDQMHistPlotter::cfgEntryDrawOption::fillStyle_
int fillStyle_
Definition: DQMHistPlotter.h:117
TauDQMHistPlotter::cfgEntryDrawOption::markerSize_
double markerSize_
Definition: DQMHistPlotter.h:111
defaultLineStyle
const int defaultLineStyle
Definition: DQMHistPlotter.cc:75
TauDQMHistPlotter::cfgEntryDrawOption::markerColor_
int markerColor_
Definition: DQMHistPlotter.h:110