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.

References SummaryClient_cfi::labels, TauDQMHistPlotter::labels_, compareTotals::legend, Skims_PA_cff::name, print(), AlCaHLTBitMon_QueryRunRegistry::string, runGCPTkAlMap::title, verbosity, HLT_2022v12_cff::xAxis, and HLT_2022v12_cff::yAxis.

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 }
std::list< plotDefEntry > plotDefList
const int verbosity

Member Function Documentation

◆ print()

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

Definition at line 537 of file DQMHistPlotter.cc.

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

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 }
std::string format_vstring(const std::vector< std::string > &vs)

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.