mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 03:10:02 +02:00
moench04CtbZmq10GbData.h aoff guess (l. 115 or 116)
This commit is contained in:
parent
b7cdfbb4d2
commit
f9f485c99e
@ -5,6 +5,8 @@
|
|||||||
#include "slsDetectorData.h"
|
#include "slsDetectorData.h"
|
||||||
#include "sls/sls_detector_defs.h"
|
#include "sls/sls_detector_defs.h"
|
||||||
|
|
||||||
|
#define CTB
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
class moench04CtbZmq10GbData : public slsDetectorData<uint16_t> {
|
class moench04CtbZmq10GbData : public slsDetectorData<uint16_t> {
|
||||||
|
|
||||||
@ -17,6 +19,9 @@ class moench04CtbZmq10GbData : public slsDetectorData<uint16_t> {
|
|||||||
const int dSamples;
|
const int dSamples;
|
||||||
int off;
|
int off;
|
||||||
|
|
||||||
|
// Single point of definition if we need to customize
|
||||||
|
using header = sls::defs::sls_receiver_header;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
Implements the slsReceiverData structure for the moench02 prototype read
|
Implements the slsReceiverData structure for the moench02 prototype read
|
||||||
@ -28,7 +33,7 @@ class moench04CtbZmq10GbData : public slsDetectorData<uint16_t> {
|
|||||||
// slsDetectorData<uint16_t>(400, 400, nas*2*32+nds*8), aSamples(nas),
|
// slsDetectorData<uint16_t>(400, 400, nas*2*32+nds*8), aSamples(nas),
|
||||||
// dSamples(nds), nadc(32), sc_width(25), sc_height(200) {
|
// dSamples(nds), nadc(32), sc_width(25), sc_height(200) {
|
||||||
|
|
||||||
moench04CtbZmq10GbData(int nas = 5000, int nds = 0)
|
moench04CtbZmq10GbData(int nas = 5000, int nds = 0, int oo = 2 * 2)
|
||||||
: slsDetectorData<uint16_t>(400, 400,
|
: slsDetectorData<uint16_t>(400, 400,
|
||||||
#ifdef RAWDATA
|
#ifdef RAWDATA
|
||||||
sizeof(slsDetectorDefs::sls_receiver_header) +
|
sizeof(slsDetectorDefs::sls_receiver_header) +
|
||||||
@ -36,7 +41,7 @@ class moench04CtbZmq10GbData : public slsDetectorData<uint16_t> {
|
|||||||
((nas > 0) && (nds > 0)
|
((nas > 0) && (nds > 0)
|
||||||
? max(nas, nds) * (32 * 2 + 8)
|
? max(nas, nds) * (32 * 2 + 8)
|
||||||
: nas * 32 * 2 + nds * 8)),
|
: nas * 32 * 2 + nds * 8)),
|
||||||
nadc(32), sc_width(25), sc_height(200), aSamples(nas), dSamples(nds) {
|
nadc(32), sc_width(25), sc_height(200), aSamples(nas), dSamples(nds), off(oo) {
|
||||||
#ifdef RAWDATA
|
#ifdef RAWDATA
|
||||||
off=sizeof(slsDetectorDefs::sls_receiver_header);
|
off=sizeof(slsDetectorDefs::sls_receiver_header);
|
||||||
#endif
|
#endif
|
||||||
@ -107,7 +112,8 @@ class moench04CtbZmq10GbData : public slsDetectorData<uint16_t> {
|
|||||||
|
|
||||||
|
|
||||||
int getGain(char *data, int x, int y) {
|
int getGain(char *data, int x, int y) {
|
||||||
int aoff=aSamples*2*32;
|
// int aoff=aSamples*2*32;
|
||||||
|
int aoff=off+aSamples*2*32;
|
||||||
int irow;
|
int irow;
|
||||||
int isc = x / sc_width;
|
int isc = x / sc_width;
|
||||||
int icol = x % sc_width;
|
int icol = x % sc_width;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user