Commit 6c4ef930 authored by CLICdp user's avatar CLICdp user
Browse files

add trigger packet output


Former-commit-id: e6d47bd33f16cee4089439acbf721fb95e8de73e
parent c3bfae3e
......@@ -82,7 +82,18 @@ StatusCode DataDump::run(Clipboard* clipboard){
// Read one 64-bit chunk of data
ULong64_t pixdata = 0;
const int retval = fread(&pixdata, sizeof(ULong64_t), 1, currentFile);
dataDumpFile << hex << pixdata << dec << endl;
// Check if this is a trigger packet for Adrian
const UChar_t header = ((pixdata & 0xF000000000000000) >> 60) & 0xF;
// Use header 0x4 to get the long timestamps (called syncTime here)
if(header == 0x6){
const UChar_t header2 = ((pixdata & 0x0F00000000000000) >> 56) & 0xF;
if(header2 == 0xF){
dataDumpFile << hex << pixdata << dec << endl;
}
}
//dataDumpFile << hex << pixdata << dec << endl;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment