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

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

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

Member Function Documentation

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

Definition at line 541 of file DQMHistPlotter.cc.

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

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

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.