Main Page
Namespaces
Classes
Package Documentation
CondFormats
HcalObjects
src
HcalLinearCompositionFunctor.cc
Go to the documentation of this file.
1
#include "
FWCore/Utilities/interface/Exception.h
"
2
3
#include "
CondFormats/HcalObjects/interface/HcalLinearCompositionFunctor.h
"
4
5
HcalLinearCompositionFunctor::HcalLinearCompositionFunctor
(
6
boost::shared_ptr<AbsHcalFunctor>
p
,
7
const
double
ia,
const
double
ib
)
8
: other_(p), a_(ia), b_(ib)
9
{
10
if
(!
other_
.get())
throw
cms::Exception
(
11
"In HcalLinearCompositionFunctor constructor: "
12
"can not use a null pointer to another functor"
);
13
}
14
15
double
HcalLinearCompositionFunctor::operator()
(
const
double
x
)
const
16
{
17
return
a_
*(*other_)(
x
) +
b_
;
18
}
19
20
BOOST_CLASS_EXPORT_IMPLEMENT(
HcalLinearCompositionFunctor
)
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
HcalLinearCompositionFunctor::operator()
double operator()(double x) const override
Definition:
HcalLinearCompositionFunctor.cc:15
HcalLinearCompositionFunctor::other_
boost::shared_ptr< AbsHcalFunctor > other_
Definition:
HcalLinearCompositionFunctor.h:46
HcalLinearCompositionFunctor::b_
double b_
Definition:
HcalLinearCompositionFunctor.h:48
HcalLinearCompositionFunctor::a_
double a_
Definition:
HcalLinearCompositionFunctor.h:47
HcalLinearCompositionFunctor::HcalLinearCompositionFunctor
HcalLinearCompositionFunctor()
Definition:
HcalLinearCompositionFunctor.h:21
Exception.h
cms::Exception
Definition:
Exception.h:67
HcalLinearCompositionFunctor.h
DDAxes::x
HcalLinearCompositionFunctor
Definition:
HcalLinearCompositionFunctor.h:17
cuy.ib
ib
Definition:
cuy.py:662
Generated for CMSSW Reference Manual by
1.8.11