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

CollectionApp of the PV DRP process: owns the MemPoolCpu, the PvDetector and the PvDrp. More...

#include <PvaDetector.hh>

Inherits CollectionApp.

Public Member Functions

 PvApp (PvParameters &para)
 Register with the collection as a drp, open the PGP pool, initialize Python, and create the PvDetector and the PvDrp.
 
 ~PvApp ()
 Call handleReset() and finalize Python.
 
void handleReset (const nlohmann::json &msg) override
 Unsubscribe from the partition, unconfigure, disconnect and shut down the connection.
 
- Public Member Functions inherited from CollectionApp
 CollectionApp (const std::string &managerHostname, int platform, const std::string &level, const std::string &alias, const std::string &device=std::string())
 Check the resource limits (throwing a C string if they are inadequate), connect the PUSH and SUB sockets to managerHostname for platform, bind inproc://drp, and register handlers for rollcall, alloc, dealloc, connect, disconnect, reset and the phase-1 transitions (configure, unconfigure, beginrun, endrun, beginstep, endstep, enable, disable).
 
virtual ~CollectionApp ()
 Does nothing; empty body.
 
void run ()
 Message loop: dispatch collection messages from the SUB socket to their handlers by header key, and forward pulseId, fileReport, error and chunkRequest messages from inproc://drp to the manager.
 

Additional Inherited Members

- Public Types inherited from CollectionApp
enum  { zmq_base_port = 29980 }
 Base TCP port of the collection sockets. More...
 
- Protected Member Functions inherited from CollectionApp
void handleRollcall (const nlohmann::json &msg)
 
void handleAlloc (const nlohmann::json &msg)
 
virtual void handleDealloc (const nlohmann::json &msg)
 
void reply (const nlohmann::json &msg)
 
size_t getId () const
 
const std::string & getLevel () const
 
const std::string & getAlias () const
 
ZmqContext & context ()
 
void subscribePartition ()
 
void unsubscribePartition ()
 

Detailed Description

CollectionApp of the PV DRP process: owns the MemPoolCpu, the PvDetector and the PvDrp.

Constructor & Destructor Documentation

◆ PvApp()

Drp::PvApp::PvApp ( PvParameters &  para)

Register with the collection as a drp, open the PGP pool, initialize Python, and create the PvDetector and the PvDrp.

◆ ~PvApp()

Drp::PvApp::~PvApp ( )

Call handleReset() and finalize Python.

Member Function Documentation

◆ handleReset()

void Drp::PvApp::handleReset ( const nlohmann::json &  msg)
overridevirtual

Unsubscribe from the partition, unconfigure, disconnect and shut down the connection.

Implements CollectionApp.


The documentation for this class was generated from the following file: