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