CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 144 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 516 of file DQMHistPlotter.cc.

References TauDQMHistPlotter::labels_, mergeVDriftHistosByStation::name, reco::print(), AlCaHLTBitMon_QueryRunRegistry::string, indexGen::title, and PFRecoTauDiscriminationAgainstMuon2_cfi::verbosity.

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

Member Function Documentation

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

Definition at line 545 of file DQMHistPlotter.cc.

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

546 {
547  std::cout << "<TauDQMHistPlotter::cfgSetDrawJob::print>:" << std::endl;
548  std::cout << " name = " << name_ << std::endl;
549  std::cout << "plots = {" << std::endl;
550  for ( plotDefList::const_iterator plot = plots_.begin();
551  plot != plots_.end(); ++plot ) {
552  plot->print();
553  }
554  std::cout << "}" << std::endl;
555  std::cout << " title = " << title_ << std::endl;
556  std::cout << " xAxis = " << xAxis_ << std::endl;
557  std::cout << " yAxis = " << yAxis_ << std::endl;
558  std::cout << " legend = " << legend_ << std::endl;
559  std::cout << " labels = " << format_vstring(labels_) << std::endl;
560 }
std::string format_vstring(const std::vector< std::string > &vs)
tuple cout
Definition: gather_cfg.py:121

Member Data Documentation

vstring TauDQMHistPlotter::cfgEntryDrawJob::labels_

Definition at line 154 of file DQMHistPlotter.h.

std::string TauDQMHistPlotter::cfgEntryDrawJob::legend_

Definition at line 153 of file DQMHistPlotter.h.

std::string TauDQMHistPlotter::cfgEntryDrawJob::name_

Definition at line 148 of file DQMHistPlotter.h.

plotDefList TauDQMHistPlotter::cfgEntryDrawJob::plots_

Definition at line 149 of file DQMHistPlotter.h.

std::string TauDQMHistPlotter::cfgEntryDrawJob::title_

Definition at line 150 of file DQMHistPlotter.h.

std::string TauDQMHistPlotter::cfgEntryDrawJob::xAxis_

Definition at line 151 of file DQMHistPlotter.h.

std::string TauDQMHistPlotter::cfgEntryDrawJob::yAxis_

Definition at line 152 of file DQMHistPlotter.h.