Commit 7a1a0210 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline
Browse files

Add Eiger::Geometry::Recv::getDstBufferOffset() to fix 2M multi-module detector

parent 0e9da345
......@@ -146,6 +146,17 @@ class Eiger : public Model
void fillBadFrame(FrameType frame, char *bptr);
int getDstBufferOffset()
{
Port *port = m_port_list[0];
Port::LocationData& dst = port->m_dst;
int off = dst.off;
// do not include bottom-half interchip vert gap
if (!port->m_top_half_recv)
off -= (ChipGap / 2) * dst.lw;
return off;
}
private:
friend class Port;
friend class Geometry;
......
......@@ -712,8 +712,7 @@ void Eiger::Recv::prepareAcq()
for (it = m_thread_list.begin(); it != end; ++it)
(*it)->prepareAcq();
FrameDim recv_frame_dim = m_eiger->getRecvFrameDim();
m_data_offset = recv_frame_dim.getMemSize() * m_idx;
m_data_offset = m_geom->getDstBufferOffset();
}
void Eiger::Recv::startAcq()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment