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

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

160 {
161  name_ = name;
162 
163  dqmDirectory_ = cfg.getParameter<std::string>("dqmDirectory");
164 
165  legendEntry_ = cfg.getParameter<std::string>("legendEntry");
166  legendEntryErrorBand_ = ( cfg.exists("legendEntryErrorBand") ) ?
167  cfg.getParameter<std::string>("legendEntryErrorBand") : std::string(legendEntry_).append(" Uncertainty");
168 
169  type_ = cfg.getParameter<std::string>("type");
170 
171  if ( verbosity ) print();
172 }
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 174 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().

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

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_