lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Drp::JungfrauData Namespace Reference

Frame constants and packed UDP packet layout for Jungfrau data. More...

Classes

struct  Header
 Packet header, packed to 2-byte alignment, that precedes the pixel data of each packet. More...
 
struct  JungfrauPacket
 One UDP packet: a Header followed by PixelPerPacket 16-bit pixel values. More...
 

Variables

constexpr size_t Rows { 512 }
 Rows in one frame (512); used for the raw image shape in Jungfrau.cc.
 
constexpr size_t Cols { 1024 }
 Columns in one frame (1024).
 
constexpr size_t PacketNum { 128 }
 Number of UDP packets per frame (128).
 
constexpr size_t PixelNum { Rows * Cols }
 Pixels per frame (Rows * Cols).
 
constexpr size_t PixelPerPacket { PixelNum / PacketNum }
 Pixels carried by one packet (PixelNum / PacketNum).
 
constexpr size_t PayloadSize { PixelPerPacket * sizeof(uint16_t) }
 Payload bytes per packet (PixelPerPacket 16-bit pixels).
 
constexpr size_t FrameSize { PixelNum * sizeof(uint16_t) }
 Bytes per frame (PixelNum 16-bit pixels).
 
constexpr size_t PacketSize = sizeof(JungfrauPacket)
 Size in bytes of one JungfrauPacket; Jungfrau.cc rejects packets of any other size.
 

Detailed Description

Frame constants and packed UDP packet layout for Jungfrau data.

Variable Documentation

◆ Cols

constexpr size_t Drp::JungfrauData::Cols { 1024 }
constexpr

Columns in one frame (1024).

◆ FrameSize

constexpr size_t Drp::JungfrauData::FrameSize { PixelNum * sizeof(uint16_t) }
constexpr

Bytes per frame (PixelNum 16-bit pixels).

◆ PacketNum

constexpr size_t Drp::JungfrauData::PacketNum { 128 }
constexpr

Number of UDP packets per frame (128).

◆ PacketSize

constexpr size_t Drp::JungfrauData::PacketSize = sizeof(JungfrauPacket)
constexpr

Size in bytes of one JungfrauPacket; Jungfrau.cc rejects packets of any other size.

◆ PayloadSize

constexpr size_t Drp::JungfrauData::PayloadSize { PixelPerPacket * sizeof(uint16_t) }
constexpr

Payload bytes per packet (PixelPerPacket 16-bit pixels).

◆ PixelNum

constexpr size_t Drp::JungfrauData::PixelNum { Rows * Cols }
constexpr

Pixels per frame (Rows * Cols).

◆ PixelPerPacket

constexpr size_t Drp::JungfrauData::PixelPerPacket { PixelNum / PacketNum }
constexpr

Pixels carried by one packet (PixelNum / PacketNum).

◆ Rows

constexpr size_t Drp::JungfrauData::Rows { 512 }
constexpr

Rows in one frame (512); used for the raw image shape in Jungfrau.cc.