Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
(std::shared_ptr<AbsHcalFunctor>
p
,
6
const
double
ia,
7
const
double
ib
)
8
: other_(p), a_(ia), b_(ib) {
9
if
(!
other_
.get())
10
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
{
return
a_
* (*other_)(
x
) +
b_
; }
16
17
BOOST_CLASS_EXPORT_IMPLEMENT(
HcalLinearCompositionFunctor
)
cuy.ib
int ib
Definition:
cuy.py:661
HcalLinearCompositionFunctor::other_
std::shared_ptr< AbsHcalFunctor > other_
Definition:
HcalLinearCompositionFunctor.h:42
HcalLinearCompositionFunctor::b_
double b_
Definition:
HcalLinearCompositionFunctor.h:44
HcalLinearCompositionFunctor::a_
double a_
Definition:
HcalLinearCompositionFunctor.h:43
HcalLinearCompositionFunctor::HcalLinearCompositionFunctor
HcalLinearCompositionFunctor()
Definition:
HcalLinearCompositionFunctor.h:20
Exception.h
cms::Exception
Definition:
Exception.h:70
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
HcalLinearCompositionFunctor.h
x
float x
Definition:
beamSpotDipStandalone.cc:55
DDAxes::x
HcalLinearCompositionFunctor::operator()
double operator()(double x) const override
Definition:
HcalLinearCompositionFunctor.cc:15
HcalLinearCompositionFunctor
Definition:
HcalLinearCompositionFunctor.h:17
Generated for CMSSW Reference Manual by
1.8.5