Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
CalibCalorimetry
HcalAlgos
interface
HcalSiPMnonlinearity.h
Go to the documentation of this file.
1
#ifndef CALIBCALORIMETRY_HCALALGOS_HCALSIPMNONLINEARITY_H
2
#define CALIBCALORIMETRY_HCALALGOS_HCALSIPMNONLINEARITY_H 1
3
4
#include <vector>
5
#include <cassert>
6
7
class
HcalSiPMnonlinearity
{
8
public
:
9
HcalSiPMnonlinearity
(
const
std::vector<float>& pars) {
10
assert
(pars.size() == 3);
11
c0
= (double)pars[0];
12
b1
= (double)pars[1];
13
a2
= (double)pars[2];
14
}
15
16
// for Reco
17
inline
double
getRecoCorrectionFactor
(
double
inpixelsfired)
const
{
18
double
x
= inpixelsfired;
19
return
(
a2
*
x
*
x
+
b1
*
x
+
c0
);
20
}
21
22
// for Sim
23
int
getPixelsFired
(
int
inpes)
const
;
24
25
private
:
26
// quadratic coefficients
27
double
a2
,
b1
,
c0
;
28
};
29
30
#endif
HcalSiPMnonlinearity::a2
double a2
Definition:
HcalSiPMnonlinearity.h:27
HcalSiPMnonlinearity::c0
double c0
Definition:
HcalSiPMnonlinearity.h:27
cms::cuda::assert
assert(be >=bs)
DDAxes::x
HcalSiPMnonlinearity::getRecoCorrectionFactor
double getRecoCorrectionFactor(double inpixelsfired) const
Definition:
HcalSiPMnonlinearity.h:17
HcalSiPMnonlinearity::getPixelsFired
int getPixelsFired(int inpes) const
Definition:
HcalSiPMnonlinearity.cc:9
HcalSiPMnonlinearity
Definition:
HcalSiPMnonlinearity.h:7
HcalSiPMnonlinearity::HcalSiPMnonlinearity
HcalSiPMnonlinearity(const std::vector< float > &pars)
Definition:
HcalSiPMnonlinearity.h:9
HcalSiPMnonlinearity::b1
double b1
Definition:
HcalSiPMnonlinearity.h:27
Generated for CMSSW Reference Manual by
1.8.16