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

DrpBase and its helpers: run, chunk and file parameters, the TEB result receiver base, the PGP DMA reader, and the common transition handling of a DRP process. More...

Classes

struct  Drp::RunInfo
 Experiment name and run number of the current run, filled by DrpBase::beginrun(). More...
 
struct  Drp::ChunkInfo
 Name and ID of the next data file chunk, filled by DrpBase::enable(). More...
 
class  Drp::FileParameters
 Values needed to build data file names for a run: output directory, instrument, run number, experiment name, host name, node ID and chunk ID. More...
 
class  Drp::TebReceiverBase
 Base of the DRP trigger result receivers. More...
 
class  Drp::PgpReader
 Reads DMA buffers from the PGP driver in bulk and assembles them into PGPEvents (one buffer per lane). More...
 
class  Drp::DrpBase
 Common machinery of a DRP process: TEB and MEB contributors, the TEB result receiver, the trigger primitive, Prometheus metrics, and the handling of the connect, configure, run and chunking transitions. More...
 

Namespaces

namespace  Pds
 Outer namespace of the HSD digitizer helpers.
 
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.
 

Functions

nlohmann::json Drp::createPulseIdMsg (uint64_t pulseId)
 Return a JSON message whose key is pulseId and whose body holds pulseId.
 

Variables

static const char *const Drp::RED_ON = "\033[0;31m"
 ANSI escape sequence that turns terminal text red; used in a few error messages.
 
static const char *const Drp::RED_OFF = "\033[0m"
 ANSI escape sequence that resets terminal text attributes.
 

Detailed Description

DrpBase and its helpers: run, chunk and file parameters, the TEB result receiver base, the PGP DMA reader, and the common transition handling of a DRP process.