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

Frame constants and the packed UDP packet layout for Jungfrau data, used by Jungfrau.cc to assemble frames. More...

#include <cstddef>
#include <cstdint>

Classes

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

Namespaces

namespace  Drp
 This class services detectors whose event data is formatted from the AxiStreamBatcherEventBuilder firmware module This class depends upon the existence of a python module "psdaq.configdb.<detType>_config.py", which contains the following functions: <detType>_init (str) - returns a handle (PyObject) for interacting with the device configuration <detType>_connect (handle) - returns a dictionary with "paddr" element for Xpm link ID.
 
namespace  Drp::JungfrauData
 Frame constants and packed UDP packet layout for Jungfrau data.
 

Variables

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

Detailed Description

Frame constants and the packed UDP packet layout for Jungfrau data, used by Jungfrau.cc to assemble frames.