mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-05-01 10:20:04 +02:00
write headers is compulsory for eiger
This commit is contained in:
parent
9a61841ac7
commit
8b282e3bbe
@ -27,6 +27,7 @@
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
||||||
|
#define WRITE_HEADERS
|
||||||
|
|
||||||
|
|
||||||
UDPStandardImplementation::UDPStandardImplementation()
|
UDPStandardImplementation::UDPStandardImplementation()
|
||||||
@ -2380,6 +2381,7 @@ void UDPStandardImplementation::writeToFile_withoutCompression(char* buf,int num
|
|||||||
offset += EIGER_HEADER_LENGTH;
|
offset += EIGER_HEADER_LENGTH;
|
||||||
#ifdef WRITE_HEADERS
|
#ifdef WRITE_HEADERS
|
||||||
#ifdef VERY_DEBUG
|
#ifdef VERY_DEBUG
|
||||||
|
if(myDetectorType == EIGER){
|
||||||
int k = 0;
|
int k = 0;
|
||||||
if(dynamicRange != 32){
|
if(dynamicRange != 32){
|
||||||
cprintf(RED, "\np1 fnum:0x%x\n", (*(unsigned int*)(((eiger_packet_header *)((char*)(buf + offset+k*1040)))->num1)));
|
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, "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)));
|
cprintf(RED, "p768 num:%d - %d\n", k,(*(uint16_t*)(((eiger_packet_header *)((char*)(buf + offset +k*1040)))->num2)));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user