Main Page
Namespaces
Classes
Package Documentation
src
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
{
6
7
if
(iParam >=
paramSize
())
8
{
9
edm::LogWarning
(
"DYTParamObject"
)
10
<<
"The requested parameter ("
<< (iParam + 1)
11
<<
") is outside size range ("
<<
paramSize
() <<
")."
;
12
return
0.;
13
}
14
15
return
m_params
.at(iParam);
16
17
}
MessageLogger.h
edm::LogWarning
Definition:
MessageLogger.h:141
DYTParamObject::m_params
std::vector< double > m_params
Definition:
DYTParamObject.h:28
DYTParamObject::parameter
double parameter(unsigned int iParam) const
Definition:
DYTParamObject.cc:4
DYTParamObject::paramSize
unsigned int paramSize() const
Definition:
DYTParamObject.h:23
DYTParamObject.h
Generated for CMSSW Reference Manual by
1.8.11