3 #include <DAQ_TPX/tpxGain.h>
6 int main(
int argc,
char *argv[])
8 const char *fname =
"/RTS/conf/tpx/tpx_gains.txt" ;
19 ret = tpx_gain.from_file(fname) ;
21 fprintf(stderr,
"********* some failure on file %s!\n",fname) ;
25 printf(
"File opened: %s\n",fname) ;
26 printf(
"Run used [if available]: %08u\n",tpx_gain.c_run) ;
27 printf(
"Date changed [if available]: date %08u, time %06u\n",tpx_gain.c_date,tpx_gain.c_time) ;
31 for(
int s=1;s<=24;s++) {
32 for(
int r=1;r<=45;r++) {
33 for(
int p=1;p<=182;p++) {
36 g = tpx_gain.get_gains(s,r,p)->g ;
37 t0 = tpx_gain.get_gains(s,r,p)->t0 ;
39 printf(
"%d %d %d %.3f %.3f\n",s,r,p,g,t0) ;