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