CMS 3D CMS Logo

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

Public Member Functions

 cfgEntryDrawJob (const std::string &, const plotDefList &, const std::string &, const std::string &, const std::string &, const std::string &, const vstring &)
 
void print () const
 

Public Attributes

vstring labels_
 
std::string legend_
 
std::string name_
 
plotDefList plots_
 
std::string title_
 
std::string xAxis_
 
std::string yAxis_
 

Detailed Description

Definition at line 138 of file DQMHistPlotter.h.

Constructor & Destructor Documentation

◆ cfgEntryDrawJob()

TauDQMHistPlotter::cfgEntryDrawJob::cfgEntryDrawJob ( const std::string &  name,
const plotDefList plotDefList,
const std::string &  title,
const std::string &  xAxis,
const std::string &  yAxis,
const std::string &  legend,
const vstring labels 
)

Definition at line 509 of file DQMHistPlotter.cc.

515  {
516  name_ = name;
517 
518  for (plotDefList::const_iterator it = plotDefList.begin(); it != plotDefList.end(); ++it) {
519  plots_.push_back(plotDefEntry(*it));
520  }
521 
522  title_ = title;
523 
524  xAxis_ = xAxis;
525  yAxis_ = yAxis;
526 
527  legend_ = legend;
528 
529  for (vstring::const_iterator it = labels.begin(); it != labels.end(); ++it) {
530  labels_.push_back(std::string(*it));
531  }
532 
533  if (verbosity)
534  print();
535 }

References SummaryClient_cfi::labels, TauDQMHistPlotter::labels_, listHistos::legend, Skims_PA_cff::name, edm::print(), AlCaHLTBitMon_QueryRunRegistry::string, overlapproblemtsosanalyzer_cfi::title, verbosity, HLT_2018_cff::xAxis, and HLT_2018_cff::yAxis.

Member Function Documentation

◆ print()

void TauDQMHistPlotter::cfgEntryDrawJob::print ( void  ) const

Definition at line 537 of file DQMHistPlotter.cc.

537  {
538  std::cout << "<TauDQMHistPlotter::cfgSetDrawJob::print>:" << std::endl;
539  std::cout << " name = " << name_ << std::endl;
540  std::cout << "plots = {" << std::endl;
541  for (plotDefList::const_iterator plot = plots_.begin(); plot != plots_.end(); ++plot) {
542  plot->print();
543  }
544  std::cout << "}" << std::endl;
545  std::cout << " title = " << title_ << std::endl;
546  std::cout << " xAxis = " << xAxis_ << std::endl;
547  std::cout << " yAxis = " << yAxis_ << std::endl;
548  std::cout << " legend = " << legend_ << std::endl;
549  std::cout << " labels = " << format_vstring(labels_) << std::endl;
550 }

References gather_cfg::cout, format_vstring(), TauDQMHistPlotter::labels_, and plotFactory::plot.

Member Data Documentation

◆ labels_

vstring TauDQMHistPlotter::cfgEntryDrawJob::labels_

Definition at line 153 of file DQMHistPlotter.h.

◆ legend_

std::string TauDQMHistPlotter::cfgEntryDrawJob::legend_

Definition at line 152 of file DQMHistPlotter.h.

◆ name_

std::string TauDQMHistPlotter::cfgEntryDrawJob::name_

Definition at line 147 of file DQMHistPlotter.h.

◆ plots_

plotDefList TauDQMHistPlotter::cfgEntryDrawJob::plots_

Definition at line 148 of file DQMHistPlotter.h.

◆ title_

std::string TauDQMHistPlotter::cfgEntryDrawJob::title_

Definition at line 149 of file DQMHistPlotter.h.

◆ xAxis_

std::string TauDQMHistPlotter::cfgEntryDrawJob::xAxis_

Definition at line 150 of file DQMHistPlotter.h.

◆ yAxis_

std::string TauDQMHistPlotter::cfgEntryDrawJob::yAxis_

Definition at line 151 of file DQMHistPlotter.h.

SummaryClient_cfi.labels
labels
Definition: SummaryClient_cfi.py:61
gather_cfg.cout
cout
Definition: gather_cfg.py:144
verbosity
const int verbosity
Definition: DQMHistPlotter.cc:90
TauDQMHistPlotter::cfgEntryDrawJob::name_
std::string name_
Definition: DQMHistPlotter.h:147
plotFactory.plot
plot
Definition: plotFactory.py:109
TauDQMHistPlotter::cfgEntryDrawJob::title_
std::string title_
Definition: DQMHistPlotter.h:149
TauDQMHistPlotter::cfgEntryDrawJob::plots_
plotDefList plots_
Definition: DQMHistPlotter.h:148
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TauDQMHistPlotter::cfgEntryDrawJob::xAxis_
std::string xAxis_
Definition: DQMHistPlotter.h:150
listHistos.legend
legend
Definition: listHistos.py:41
TauDQMHistPlotter::plotDefList
std::list< plotDefEntry > plotDefList
Definition: DQMHistPlotter.h:136
TauDQMHistPlotter::cfgEntryDrawJob::yAxis_
std::string yAxis_
Definition: DQMHistPlotter.h:151
format_vstring
std::string format_vstring(const std::vector< std::string > &vs)
Definition: dqmAuxFunctions.cc:36
overlapproblemtsosanalyzer_cfi.title
title
Definition: overlapproblemtsosanalyzer_cfi.py:7
TauDQMHistPlotter::cfgEntryDrawJob::labels_
vstring labels_
Definition: DQMHistPlotter.h:153
HLT_2018_cff.xAxis
xAxis
Definition: HLT_2018_cff.py:44410
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
TauDQMHistPlotter::cfgEntryDrawJob::legend_
std::string legend_
Definition: DQMHistPlotter.h:152
HLT_2018_cff.yAxis
yAxis
Definition: HLT_2018_cff.py:44412
TauDQMHistPlotter::cfgEntryDrawJob::print
void print() const
Definition: DQMHistPlotter.cc:537