hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
|
#include <ProcessorFactory.h>
Classes | |
struct | ProcessorInfo |
Processor info container to hold classname, class type and maker. More... | |
Public Member Functions | |
void | registerProcessor (const std::string &classname, ProcessorMaker *maker) |
Register the event processor. | |
Processor * | createProcessor (const std::string &classname, const std::string &module_instance_name, Process &process) |
Make an event processor. | |
void | loadLibrary (const std::string &libname) |
Load a library. | |
Static Public Member Functions | |
static ProcessorFactory & | instance () |
Get the factory instance. | |
Private Member Functions | |
ProcessorFactory () | |
Private Attributes | |
std::map< std::string, ProcessorInfo > | module_info_ |
std::set< std::string > | libs_loaded_ |
Definition at line 22 of file ProcessorFactory.h.
|
inlineprivate |
Constructor
Definition at line 71 of file ProcessorFactory.h.
Processor * createProcessor | ( | const std::string & | classname, |
const std::string & | module_instance_name, | ||
Process & | process | ||
) |
Make an event processor.
classname | Class name of event processor. |
module_instance_name |
process | The process type to create. |
Definition at line 33 of file ProcessorFactory.cxx.
|
inlinestatic |
Get the factory instance.
Factory for creating the Processor object.
Definition at line 30 of file ProcessorFactory.h.
void loadLibrary | ( | const std::string & | libname | ) |
Load a library.
libname | The library to load. |
Definition at line 41 of file ProcessorFactory.cxx.
void registerProcessor | ( | const std::string & | classname, |
ProcessorMaker * | maker | ||
) |
Register the event processor.
classname | The name of the class associated with processor. |
maker | TODO. |
Definition at line 12 of file ProcessorFactory.cxx.
|
private |
A set of names of loaded libraries.
Definition at line 86 of file ProcessorFactory.h.
|
private |
A map of names to processor containers.
Definition at line 83 of file ProcessorFactory.h.