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

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 &para, MemPoolGpu &pool)
 Load the library registered for name and call its createDetector() with para and pool.
 

Detailed Description

Creates GPU detectors from shared libraries: each detector type name is mapped to a library that defines createDetector().

Member Function Documentation

◆ create()

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.

◆ register_type()

void Drp::Gpu::DetectorFactory::register_type ( const std::string &  name,
const std::string &  solib 
)

Map detector type name to library solib (both copied).


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