|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Collection application of the GPU DRP: handles the control transitions and drives a Drp::Gpu::PGPDrp and the GPU detector. More...
#include <PGPDetectorApp.hh>
Inherits CollectionApp.
Public Member Functions | |
| PGPDetectorApp (Parameters ¶) | |
| Join the collection as a drp process, create the GPU memory pool from para, initialize Python and release the GIL. | |
| virtual | ~PGPDetectorApp () |
| Reset as handleReset() does, delete the detector and finalize Python. | |
| void | initialize () |
| Register the GPU detector types (fakecam, epixuhremu, epixuhrsim) with their libraries, create the detector for detType (throwing a std::string if that fails) and create the PGPDrp. | |
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) |
| 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 () |
Collection application of the GPU DRP: handles the control transitions and drives a Drp::Gpu::PGPDrp and the GPU detector.
In simulator mode (device /dev/null) it also starts phase 2 of each transition with Detector::issuePhase2().
| Drp::Gpu::PGPDetectorApp::PGPDetectorApp | ( | Parameters & | para | ) |
Join the collection as a drp process, create the GPU memory pool from para, initialize Python and release the GIL.
initialize() must be called next.
|
virtual |
Reset as handleReset() does, delete the detector and finalize Python.
| void Drp::Gpu::PGPDetectorApp::initialize | ( | ) |
Register the GPU detector types (fakecam, epixuhremu, epixuhrsim) with their libraries, create the detector for detType (throwing a std::string if that fails) and create the PGPDrp.
It is separate from the constructor so that the destructor, which finalizes Python, runs if it throws (per the code comment).