#include <HcalSiPMnonlinearity.h>
Definition at line 7 of file HcalSiPMnonlinearity.h.
◆ HcalSiPMnonlinearity()
HcalSiPMnonlinearity::HcalSiPMnonlinearity |
( |
const std::vector< float > & |
pars | ) |
|
|
inline |
◆ getPixelsFired()
int HcalSiPMnonlinearity::getPixelsFired |
( |
int |
inpes | ) |
const |
Definition at line 9 of file HcalSiPMnonlinearity.cc.
16 int nroots = gsl_poly_complex_solve_cubic(
a,
b,
c, &
z[1], &
z[2], &
z[3]);
23 for (
int i = 0;
i < 3; ++
i) {
24 if (
z[
i].dat[1] == 0) {
25 realpix =
z[
i].dat[0];
30 return realpix > 0 ? (
int)(realpix + 0.5) : 0;
References a, a2, cms::cuda::assert(), b, b1, HltBtagPostValidation_cff::c, c0, mps_fire::i, createfilelist::int, w, and z.
◆ getRecoCorrectionFactor()
double HcalSiPMnonlinearity::getRecoCorrectionFactor |
( |
double |
inpixelsfired | ) |
const |
|
inline |
◆ a2
double HcalSiPMnonlinearity::a2 |
|
private |
◆ b1
double HcalSiPMnonlinearity::b1 |
|
private |
◆ c0
double HcalSiPMnonlinearity::c0 |
|
private |