|
lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
|
Creates GPU detectors from shared libraries: each detector type name is mapped to a library that defines createDetector(). More...
#include <PGPDetectorApp.hh>
Public Member Functions | |
| void | register_type (const std::string &name, const std::string &solib) |
| Map detector type name to library solib (both copied). | |
| Drp::Gpu::Detector * | create (const std::string &name, Parameters ¶, MemPoolGpu &pool) |
| Load the library registered for name and call its createDetector() with para and pool. | |
Creates GPU detectors from shared libraries: each detector type name is mapped to a library that defines createDetector().
| Drp::Gpu::Detector * Drp::Gpu::DetectorFactory::create | ( | const std::string & | name, |
| Parameters & | para, | ||
| MemPoolGpu & | pool | ||
| ) |
Load the library registered for name and call its createDetector() with para and pool.
Returns null if name is not registered or loading fails.
| void Drp::Gpu::DetectorFactory::register_type | ( | const std::string & | name, |
| const std::string & | solib | ||
| ) |
Map detector type name to library solib (both copied).