mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
Fix for differences in header sizes for Jungfrau data files in cluster finder depending on receiver used.
This commit is contained in:
parent
b67c6dea08
commit
e817cb1222
@ -3,6 +3,7 @@
|
|||||||
#ifndef JUNGFRAUMODULEDATA_H
|
#ifndef JUNGFRAUMODULEDATA_H
|
||||||
#define JUNGFRAUMODULEDATA_H
|
#define JUNGFRAUMODULEDATA_H
|
||||||
#include "slsDetectorData.h"
|
#include "slsDetectorData.h"
|
||||||
|
#include "sls/sls_detector_defs.h"
|
||||||
|
|
||||||
//#define VERSION_V2
|
//#define VERSION_V2
|
||||||
/**
|
/**
|
||||||
@ -41,8 +42,15 @@ class jungfrauModuleData : public slsDetectorData<uint16_t> {
|
|||||||
1286 large etc.) \param c crosstalk parameter for the output buffer
|
1286 large etc.) \param c crosstalk parameter for the output buffer
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef ALDO //VH
|
||||||
|
using header = jf_header; //VH
|
||||||
|
#else //VH
|
||||||
|
using header = sls::defs::sls_receiver_header;
|
||||||
|
#endif //VH
|
||||||
|
|
||||||
#ifndef ZMQ
|
#ifndef ZMQ
|
||||||
#define off sizeof(jf_header)
|
#define off sizeof(header)
|
||||||
#endif
|
#endif
|
||||||
#ifdef ZMQ
|
#ifdef ZMQ
|
||||||
#define off 0
|
#define off 0
|
||||||
@ -104,7 +112,7 @@ class jungfrauModuleData : public slsDetectorData<uint16_t> {
|
|||||||
/* }; */
|
/* }; */
|
||||||
|
|
||||||
int getFrameNumber(char *buff) {
|
int getFrameNumber(char *buff) {
|
||||||
return ((jf_header *)buff)->bunchNumber;
|
return ((header *)buff)->bunchNumber;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user