18 bool pluseSeedFinderA(
float *adc,
int N,
float sigPed,
19 float &peakAdc,
int &leadEdgeBin,
float &sumAdc) {
22 peakAdc=leadEdgeBin=-9999;
25 for(
int i=0;i<N;i++) {
27 if(leadEdgeBin<0 && adc[i]> 5*sigPed) leadEdgeBin=i;
28 if(2<=i && i<=4 && peakAdc < adc[i] ) peakAdc =adc[i];
32 if( adc[0]> 2*sigPed)
return false;
33 if( adc[2]< 5*sigPed)
return false;
34 if( adc[3]< 5*sigPed)
return false;
35 if( adc[4]< 5*sigPed)
return false;
37 if(peakAdc < adc[6] )
return false;