Changeset 9925 for fact/tools/FAD/printdata
- Timestamp:
- 09/07/10 08:10:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/FAD/printdata/printdata.cpp
r271 r9925 160 160 if ((ntohs (evnt->evnt_header.drs_temperature[i]) & 0x8000) == 0x8000) 161 161 { 162 printf ("Temperature %d: % d\n", i, 0xE000 | (ntohs (evnt->evnt_header.drs_temperature[i])) >> 3);162 printf ("Temperature %d: %4.2f\n", i, double(0xE000 | (ntohs (evnt->evnt_header.drs_temperature[i])) >> 3)/16 ); 163 163 } 164 164 else 165 165 { 166 printf ("Temperature %d: % d\n", i, ntohs (evnt->evnt_header.drs_temperature[i]) >> 3);166 printf ("Temperature %d: %4.2f\n", i, double(ntohs (evnt->evnt_header.drs_temperature[i]) >> 3)/16 ); 167 167 } 168 168 } … … 174 174 { 175 175 fread (&evnt->evnt_header.dac[i], sizeof (evnt->evnt_header.dac[i]), 1, fhandle); 176 printf ("DAC %d: % d\n", i, ntohs (evnt->evnt_header.dac[i]));176 printf ("DAC %d: %4.2f\n", i, double(ntohs(evnt->evnt_header.dac[i]))/65536.*2.5 ); 177 177 } 178 178 }
Note:
See TracChangeset
for help on using the changeset viewer.