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

Core DRP types: command-line Parameters, PGP event and DMA buffer records, the Pebble buffer allocation and the MemPool buffer pools. More...

#include <thread>
#include <vector>
#include <cstdint>
#include <map>
#include <atomic>
#include <mutex>
#include <condition_variable>
#include <string>
#include "spscqueue.hh"

Classes

struct  Drp::Parameters
 Settings of a DRP process, filled mostly from command-line options (drp.cc and the other DRP executables) and from the connect information. More...
 
struct  Drp::DmaBuffer
 Size and driver index of one DMA buffer of an event. More...
 
struct  Drp::PGPEvent
 One event being assembled from up to PGP_MAX_LANES lanes: a DmaBuffer per lane, the mask of lanes received and the pebble buffer index assigned when the event is complete. More...
 
class  Drp::Pebble
 One page-aligned allocation holding the L1Accept buffers followed by the transition buffers; each buffer ends with a sentinel word used to detect overruns. More...
 
class  Drp::MemPool
 Abstract set of buffer pools for one DRP: the DMA buffers (allocated by the driver; only counted here), the pebble buffers and the transition buffers. More...
 
class  Drp::MemPoolCpu
 MemPool for a PGP card accessed from the CPU: opens the device and maps its DMA buffers. 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.
 

Macros

#define PGP_MAX_LANES   8
 Maximum number of PGP lanes per event (8); size of PGPEvent::buffers.
 

Enumerations

enum  Drp::NamesIndex {
  Drp::BASE = 0 , Drp::CHUNKINFO = 252 , Drp::STEPINFO = 253 , Drp::OFFSETINFO = 254 ,
  Drp::RUNINFO = 255
}
 Fixed NamesId index values used by the DRP. More...
 

Detailed Description

Core DRP types: command-line Parameters, PGP event and DMA buffer records, the Pebble buffer allocation and the MemPool buffer pools.

Macro Definition Documentation

◆ PGP_MAX_LANES

#define PGP_MAX_LANES   8

Maximum number of PGP lanes per event (8); size of PGPEvent::buffers.