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

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

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

Member Function Documentation

◆ print()

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

Definition at line 538 of file DQMHistPlotter.cc.

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

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