write headers is compulsory for eiger

This commit is contained in:
Dhanya Maliakal 2015-06-16 16:28:24 +02:00
parent 9a61841ac7
commit 8b282e3bbe

View File

@ -27,6 +27,7 @@
using namespace std;
#define WRITE_HEADERS
UDPStandardImplementation::UDPStandardImplementation()
@ -2380,6 +2381,7 @@ void UDPStandardImplementation::writeToFile_withoutCompression(char* buf,int num
offset += EIGER_HEADER_LENGTH;
#ifdef WRITE_HEADERS
#ifdef VERY_DEBUG
if(myDetectorType == EIGER){
int k = 0;
if(dynamicRange != 32){
cprintf(RED, "\np1 fnum:0x%x\n", (*(unsigned int*)(((eiger_packet_header *)((char*)(buf + offset+k*1040)))->num1)));
@ -2419,6 +2421,7 @@ void UDPStandardImplementation::writeToFile_withoutCompression(char* buf,int num
cprintf(RED, "p769:0x%x\n", (*(uint8_t*)(((eiger_packet_header *)((char*)(buf + offset +k*1040)))->num3)));
cprintf(RED, "p768 num:%d - %d\n", k,(*(uint16_t*)(((eiger_packet_header *)((char*)(buf + offset +k*1040)))->num2)));
}
}
#endif
#endif
}