Belle II Software development
|
This is the base class for all MeasurementCreatorFactories used in the MeasurementCreatorModule. More...
#include <MeasurementCreatorFactory.h>
Public Types | |
typedef BaseMeasurementCreatorType | CreatorType |
Typedef for convenience. | |
Public Member Functions | |
void | initialize () |
Use the parameters given to the module and create the measurement creators from them. | |
virtual BaseMeasurementCreatorType * | createMeasurementCreatorFromName (const std::string &) const |
Overload this method to create the measurement creators by their name. | |
const std::vector< std::shared_ptr< BaseMeasurementCreatorType > > & | getCreators () const |
Return the creators to the module. | |
std::map< std::string, std::map< std::string, std::string > > & | getParameters () |
Return a reference to the parameters you can use in the module. | |
void | setParameters (const std::map< std::string, std::map< std::string, std::string > > &creatorsWithParametersDictionary) |
Set the parameters. | |
Private Attributes | |
std::vector< std::shared_ptr< BaseMeasurementCreatorType > > | m_measurementCreators |
A vector with the measurement creators. | |
std::map< std::string, std::map< std::string, std::string > > | m_creatorsWithParametersDictionary |
The map of dictionaries of the parameters. | |
This is the base class for all MeasurementCreatorFactories used in the MeasurementCreatorModule.
It knows about all MeasurementCreators for a given HitType and can setup the creators from the module parameters. You have to implement the createMeasurementCreatorFromName function - all other functions are already implemented in this base class. See the CDCMeasurementCreatorFactory for an example.
Definition at line 32 of file MeasurementCreatorFactory.h.
typedef BaseMeasurementCreatorType CreatorType |
Typedef for convenience.
Definition at line 35 of file MeasurementCreatorFactory.h.
|
inlinevirtual |
Overload this method to create the measurement creators by their name.
Reimplemented in AdditionalMeasurementCreatorFactory, BKLMMeasurementCreatorFactory, CDCMeasurementCreatorFactory, EKLMMeasurementCreatorFactory, PXDMeasurementCreatorFactory, and SVDMeasurementCreatorFactory.
Definition at line 61 of file MeasurementCreatorFactory.h.
|
inline |
Return the creators to the module.
Definition at line 67 of file MeasurementCreatorFactory.h.
|
inline |
Return a reference to the parameters you can use in the module.
Definition at line 73 of file MeasurementCreatorFactory.h.
|
inline |
Use the parameters given to the module and create the measurement creators from them.
Definition at line 38 of file MeasurementCreatorFactory.h.
|
inline |
Set the parameters.
Definition at line 79 of file MeasurementCreatorFactory.h.
|
private |
The map of dictionaries of the parameters.
Fill it with the module parameters.
Definition at line 89 of file MeasurementCreatorFactory.h.
|
private |
A vector with the measurement creators.
Is filled in initialize.
Definition at line 86 of file MeasurementCreatorFactory.h.