CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
TauDQMHistPlotter::cfgEntryProcess Struct Reference

Public Member Functions

 cfgEntryProcess (const std::string &, const edm::ParameterSet &)
 
void print () const
 

Public Attributes

std::string dqmDirectory_
 
std::string legendEntry_
 
std::string legendEntryErrorBand_
 
std::string name_
 
std::string type_
 

Detailed Description

Definition at line 31 of file DQMHistPlotter.h.

Constructor & Destructor Documentation

TauDQMHistPlotter::cfgEntryProcess::cfgEntryProcess ( const std::string &  name,
const edm::ParameterSet cfg 
)

Definition at line 161 of file DQMHistPlotter.cc.

References dqmDirectory_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), legendEntry_, legendEntryErrorBand_, dataset::name, name_, print(), AlCaHLTBitMon_QueryRunRegistry::string, type_, and verbosity.

162 {
163  name_ = name;
164 
165  dqmDirectory_ = cfg.getParameter<std::string>("dqmDirectory");
166 
167  legendEntry_ = cfg.getParameter<std::string>("legendEntry");
168  legendEntryErrorBand_ = ( cfg.exists("legendEntryErrorBand") ) ?
169  cfg.getParameter<std::string>("legendEntryErrorBand") : std::string(legendEntry_).append(" Uncertainty");
170 
171  type_ = cfg.getParameter<std::string>("type");
172 
173  if ( verbosity ) print();
174 }
T getParameter(std::string const &) const
bool exists(std::string const &parameterName) const
checks if a parameter exists
const int verbosity

Member Function Documentation

void TauDQMHistPlotter::cfgEntryProcess::print ( void  ) const

Definition at line 176 of file DQMHistPlotter.cc.

References gather_cfg::cout, dqmDirectory_, legendEntry_, legendEntryErrorBand_, name_, and type_.

Referenced by TauDQMHistPlotter::cfgEntryAxisX::cfgEntryAxisX(), TauDQMHistPlotter::cfgEntryAxisY::cfgEntryAxisY(), TauDQMHistPlotter::cfgEntryDrawOption::cfgEntryDrawOption(), TauDQMHistPlotter::cfgEntryLabel::cfgEntryLabel(), TauDQMHistPlotter::cfgEntryLegend::cfgEntryLegend(), and cfgEntryProcess().

177 {
178  std::cout << "<TauDQMHistPlotter::cfgEntryProcess::print>:" << std::endl;
179  std::cout << " name = " << name_ << std::endl;
180  std::cout << " dqmDirectory = " << dqmDirectory_ << std::endl;
181  std::cout << " legendEntry = " << legendEntry_ << std::endl;
182  std::cout << " legendEntryErrorBand = " << legendEntryErrorBand_ << std::endl;
183  std::cout << " type = " << type_ << std::endl;
184 }

Member Data Documentation

std::string TauDQMHistPlotter::cfgEntryProcess::dqmDirectory_

Definition at line 36 of file DQMHistPlotter.h.

Referenced by cfgEntryProcess(), and print().

std::string TauDQMHistPlotter::cfgEntryProcess::legendEntry_

Definition at line 37 of file DQMHistPlotter.h.

Referenced by cfgEntryProcess(), and print().

std::string TauDQMHistPlotter::cfgEntryProcess::legendEntryErrorBand_

Definition at line 38 of file DQMHistPlotter.h.

Referenced by cfgEntryProcess(), and print().

std::string TauDQMHistPlotter::cfgEntryProcess::name_
std::string TauDQMHistPlotter::cfgEntryProcess::type_