Changeset 12494 for trunk/FACT++/src


Ignore:
Timestamp:
11/11/11 03:20:57 (13 years ago)
Author:
tbretz
Message:
Correctly scale the reference clock value; write DNA as hex value because 64bit values didn't work.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/DataWriteFits.cc

    r12484 r12494  
    124124            // Header values whihc won't change during the run
    125125            WriteKey("ID",    i, hh.board_id,   "Board ID");
    126             WriteKey("DNA",   i, hh.DNA,        "DNA");
    127126            WriteKey("FWVER", i, hh.version_no, "Firmware Version");
     127
     128            ostringstream dna;
     129            dna << "0x" << hex << hh.DNA;
     130            WriteKey("DNA", i, dna.str(), "Unique FPGA device identifier (DNA)");
    128131        }
    129132
     
    166169
    167170        // FIXME: I cannot write a double! WHY?
    168         fFile.WriteKey("REFCLK", avg/cnt, "Average reference clock frequency in Hz");
     171        fFile.WriteKey("REFCLK", avg/cnt*2.048, "Average reference clock frequency in Hz");
    169172    }
    170173    catch (const CCfits::FitsException &e)
Note: See TracChangeset for help on using the changeset viewer.