2 #include "fcs_trg_base.h"
22 for(
int tb=0;tb<8;tb++) {
23 u_short radc = adc.d[tb] ;
32 if(radc>sum) peak |= 1 ;
60 if(radc>=last || peak==0) {
69 if(sum>0 && fcs_trgDebug>=2){
71 printf(
"ns=%1d det=%1d dep=%2d ch=%2d sum=%6d gain=%6d s*g=%6d pT=%6.3f\n",
72 geo.ns,geo.det,geo.dep,geo.ch,
73 sum,pg->gain,(sum*pg->gain)>>6,
74 0.00024711*((sum*pg->gain)>>6) );
76 printf(
"ns=%1d det=%1d dep=%2d ch=%2d sum=%6d gain=%6d s*g=%6d MIP=%5.3f\n",
77 geo.ns,geo.det,geo.dep,geo.ch,
78 sum,pg->gain,(sum*pg->gain)>>6,
79 float((sum*pg->gain)>>6)/100.0);
83 sum *= pg?pg->gain:0x100 ;