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 142 of file DQMHistPlotter.h.

Constructor & Destructor Documentation

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 TauDQMHistPlotter::labels_, listHistos::legend, dataset::name, TauDQMHistPlotter::plotDefEntry::plotDefEntry(), TauDQMHistPlotter::plotDefEntry::print(), AlCaHLTBitMon_QueryRunRegistry::string, runGCPTkAlMap::title, verbosity, MuonErrorMatrixValues_cff::xAxis, and MuonErrorMatrixValues_cff::yAxis.

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

Member Function Documentation

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

Definition at line 539 of file DQMHistPlotter.cc.

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

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

Member Data Documentation

vstring TauDQMHistPlotter::cfgEntryDrawJob::labels_

Definition at line 152 of file DQMHistPlotter.h.

std::string TauDQMHistPlotter::cfgEntryDrawJob::legend_

Definition at line 151 of file DQMHistPlotter.h.

std::string TauDQMHistPlotter::cfgEntryDrawJob::name_

Definition at line 146 of file DQMHistPlotter.h.

plotDefList TauDQMHistPlotter::cfgEntryDrawJob::plots_

Definition at line 147 of file DQMHistPlotter.h.

std::string TauDQMHistPlotter::cfgEntryDrawJob::title_

Definition at line 148 of file DQMHistPlotter.h.

std::string TauDQMHistPlotter::cfgEntryDrawJob::xAxis_

Definition at line 149 of file DQMHistPlotter.h.

std::string TauDQMHistPlotter::cfgEntryDrawJob::yAxis_

Definition at line 150 of file DQMHistPlotter.h.