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