Definition at line 8 of file TPNFit.h.
double TPNFit::doFit |
( |
int |
maxsample, |
|
|
double * |
adc |
|
) |
| |
Definition at line 46 of file TPNFit.cc.
References a, ampl, b, trackerHits::c, connectstrParser::f1, connectstrParser::f2, connectstrParser::f3, firstsample, fNsamples, fNum_samp_after_max, fNum_samp_bef_max, fv1, fv2, fv3, i, lastsample, Gflash::par, timeatmax, val, and detailsBasic3DVector::y.
64 if(
adc[kn] < 0.) testneg=1;
66 if(testneg == 1)
return 103;
77 TVectorD
f1(nval,
fv1);
79 TVectorD
f2(nval,
fv2);
81 TVectorD
f3(nval,
fv3);
90 aij[0]=
f1*
f1; aij[1]=f1*
f2; aij[2]=f1*
f3;
91 aij[3]= f2*
f1; aij[4]=f2*
f2; aij[5]=f2*
f3;
92 aij[6]= f3*
f1; aij[7]=f3*
f2; aij[8]=f3*
f3;
103 double *
par= c.GetMatrixArray();
int adc(sample_type sample)
get the ADC sample (12 bits)
const double par[8 *NPar][4]