Main Page
Namespaces
Classes
Package Documentation
CondFormats
RecoMuonObjects
src
DYTParamObject.cc
Go to the documentation of this file.
1
#include "
CondFormats/RecoMuonObjects/interface/DYTParamObject.h
"
2
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
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
edm::LogWarning
Definition:
MessageLogger.h:141
DYTParamObject::m_params
std::vector< double > m_params
Definition:
DYTParamObject.h:25
DYTParamObject::parameter
double parameter(unsigned int iParam) const
Definition:
DYTParamObject.cc:4
DYTParamObject::paramSize
unsigned int paramSize() const
Definition:
DYTParamObject.h:21
DYTParamObject.h
Generated for CMSSW Reference Manual by
1.8.11