mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-21 00:58:01 +02:00
changing zmq process to allow for partial readout and fixing interpolation
This commit is contained in:
@ -454,11 +454,11 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
#ifdef INTERP
|
||||
else if (fMode==eFlat) {
|
||||
int nb;
|
||||
int nb, nby;
|
||||
double emi=0, ema=1;
|
||||
int *ff=mt->getFlatField(nb, emi, ema);
|
||||
int *ff=mt->getFlatField(nb, nby, emi, ema);
|
||||
nnx=nb;
|
||||
nny=nb;
|
||||
nny=nby;
|
||||
dout= new int32_t[nb*nb];
|
||||
for (int ix=0; ix<nb*nb; ix++) {
|
||||
dout[ix]=ff[ix];
|
||||
@ -811,7 +811,7 @@ int main(int argc, char *argv[]) {
|
||||
// timestamp=doc["timestamp"].GetUint();
|
||||
packetNumber=doc["packetNumber"].GetUint();
|
||||
// cout << acqIndex << " " << frameIndex << " " << subFrameIndex << " "<< bunchId << " " << timestamp << " " << packetNumber << endl;
|
||||
if (packetNumber>=40) {
|
||||
if (packetNumber>0) {
|
||||
//*((int*)buff)=frameIndex;
|
||||
if (insubframe==0) f0=frameIndex;
|
||||
memcpy(buff,&frameIndex,sizeof(int));
|
||||
@ -823,7 +823,7 @@ int main(int argc, char *argv[]) {
|
||||
insubframe++;
|
||||
nsubframes=frameIndex+1-f0;
|
||||
} else {
|
||||
cprintf(RED, "Incomplete frame: received only %d packet\n", packetNumber);
|
||||
cprintf(RED, "Empty frame %d\n", frameIndex);
|
||||
//length =
|
||||
zmqsocket->ReceiveData(0, dummybuff, size);
|
||||
}
|
||||
|
@ -41,12 +41,12 @@ include_directories(
|
||||
include
|
||||
)
|
||||
|
||||
#add_library(zmq STATIC IMPORTED GLOBAL)
|
||||
add_library(zmq STATIC IMPORTED GLOBAL)
|
||||
|
||||
#set(ZMQ_STATIC_ARCHIVE ${CMAKE_CURRENT_SOURCE_DIR}/include/libzmq.a)
|
||||
#set_target_properties(zmq PROPERTIES
|
||||
# IMPORTED_LOCATION ${ZMQ_STATIC_ARCHIVE}
|
||||
#)
|
||||
set(ZMQ_STATIC_ARCHIVE ${CMAKE_CURRENT_SOURCE_DIR}/include/libzmq.a)
|
||||
set_target_properties(zmq PROPERTIES
|
||||
IMPORTED_LOCATION ${ZMQ_STATIC_ARCHIVE}
|
||||
)
|
||||
|
||||
add_library(slsReceiverStatic STATIC
|
||||
${SOURCES}
|
||||
@ -88,7 +88,7 @@ set_target_properties(slsReceiver PROPERTIES
|
||||
target_link_libraries(slsReceiver
|
||||
slsReceiverShared
|
||||
pthread
|
||||
# zmq
|
||||
zmq
|
||||
rt
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user