CMS 3D CMS Logo

DYTParamObject.cc
Go to the documentation of this file.
3 
4 double DYTParamObject::parameter(unsigned int iParam) const {
5  if (iParam >= paramSize()) {
6  edm::LogWarning("DYTParamObject") << "The requested parameter (" << (iParam + 1) << ") is outside size range ("
7  << paramSize() << ").";
8  return 0.;
9  }
10 
11  return m_params.at(iParam);
12 }
MessageLogger.h
DYTParamObject::paramSize
unsigned int paramSize() const
Definition: DYTParamObject.h:21
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
DYTParamObject::m_params
std::vector< double > m_params
Definition: DYTParamObject.h:25
DYTParamObject.h
DYTParamObject::parameter
double parameter(unsigned int iParam) const
Definition: DYTParamObject.cc:4