Go to the source code of this file.
double cePulserToAdc |
( |
int |
ia, |
|
|
double |
adcScale, |
|
|
double |
pedestal, |
|
|
double |
negScale, |
|
|
const double |
rfLines[6], |
|
|
double |
r6, |
|
|
double |
qvscale |
|
) |
| |
|
inline |
Definition at line 25 of file cePulserToAdc.h.
27 double dadc = adcScale*
cePulser(ia, rfLines, r6, qvscale);
28 if ( ia < 0.0 ) dadc *= negScale;
29 return dadc + pedestal;
double cePulser(int ia, const double rfLines[6], double r6, double qvscale)
double cePulserToAdc |
( |
double * |
x, |
|
|
double * |
pars |
|
) |
| |
Definition at line 32 of file cePulserToAdc.h.
34 double adcScale = pars[0];
35 double pedestal = pars[1];
36 double negScale = pars[2];
37 const double* rfLines = pars + 3;
39 double qvscale = pars[10];
40 return cePulserToAdc(ia, adcScale, pedestal, negScale, rfLines, r6, qvscale);
double cePulserToAdc(int ia, double adcScale, double pedestal, double negScale, const double rfLines[6], double r6, double qvscale)
TF1* cePulserToAdcTF1 |
( |
std::string |
fname = "adcpulser" , |
|
|
double |
tol = 0.01 , |
|
|
double |
adcScale = 3.0*14.0 |
|
) |
| |
|
inline |
Definition at line 47 of file cePulserToAdc.h.
50 const Index npar = 11;
53 pf->SetParName(0,
"AdcScale");
54 pf->SetParName(1,
"Pedestal");
55 pf->SetParName(2,
"NegScale");
56 pf->SetParameter(0, adcScale);
57 pf->SetParameter(1, 0.0);
58 pf->SetParameter(2, 1.0);
59 pf->FixParameter(10, 1.8*183.0);
int initCePulserTF1(TF1 *pf, unsigned int ipoff, double tol=0.01)
double cePulserToAdc(int ia, double adcScale, double pedestal, double negScale, const double rfLines[6], double r6, double qvscale)