Belle II Software development
|
Factory that can create appropriate filter instances from a name. More...
#include <FilterFactory.dcl.h>
Public Types | |
using | CreatedFilter = AFilter |
Type of the filter that this factory creates. | |
Public Member Functions | |
FilterFactory (const std::string &defaultFilterName="") | |
Fill the default filter name values. | |
virtual | ~FilterFactory () |
Make destructor of interface class virtual. | |
virtual std::string | getIdentifier () const =0 |
Getter for a short identifier of the factory. Currently unused. | |
virtual std::string | getFilterPurpose () const =0 |
Getter for a descriptive purpose of the filter. | |
virtual std::map< std::string, std::string > | getValidFilterNamesAndDescriptions () const =0 |
Getter for the valid filter names and a description for each. | |
virtual std::unique_ptr< AFilter > | create (const std::string &filterName) const |
Create a filter with the given name, does not set filter specific parameters. | |
virtual std::string | createFiltersNameDescription () const |
Create a string with a description mentioning the names of the chooseable filter. | |
virtual std::string | createFiltersParametersDescription () const |
Create a string with a description mentioning the parameters of the chooseable filter. | |
const std::string & | getDefaultFilterName () const |
Legacy - Return the default filter suggested by the factory. | |
Private Attributes | |
std::string | m_defaultFilterName |
Legacy - Default filter name suggested by this factory. | |
Factory that can create appropriate filter instances from a name.
Definition at line 25 of file FilterFactory.dcl.h.
using CreatedFilter = AFilter |
Type of the filter that this factory creates.
Definition at line 29 of file FilterFactory.dcl.h.
FilterFactory | ( | const std::string & | defaultFilterName = "" | ) |
Fill the default filter name values.
Definition at line 35 of file FilterFactory.icc.h.
|
virtual |
Create a filter with the given name, does not set filter specific parameters.
Always emits an error and returns nullptr
Reimplemented in FacetFilterFactory, SegmentPairFilterFactory, SegmentPairRelationFilterFactory, TrackRelationFilterFactory, CDCPathPairFilterFactory, CDCPathFilterFactory, CDCStateFilterFactory, PXDPairFilterFactory, PXDResultFilterFactory, PXDStateFilterFactory, SVDPairFilterFactory, SVDResultFilterFactory, SVDStateFilterFactory, AxialSegmentPairFilterFactory, ClusterFilterFactory, FacetRelationFilterFactory, SegmentFilterFactory, SegmentRelationFilterFactory, SegmentTrackFilterFactory, SegmentTripleFilterFactory, SegmentTripleRelationFilterFactory, StereoHitFilterFactory, TrackFilterFactory, TrackQualityFilterFactory, WireHitFilterFactory, PathFilterFactory, RelationFilterFactory, and TrackletFilterFactory.
Definition at line 44 of file FilterFactory.icc.h.
|
virtual |
Create a string with a description mentioning the names of the chooseable filter.
Definition at line 86 of file FilterFactory.icc.h.
|
virtual |
Create a string with a description mentioning the parameters of the chooseable filter.
Definition at line 103 of file FilterFactory.icc.h.
const std::string & getDefaultFilterName |
Legacy - Return the default filter suggested by the factory.
Definition at line 146 of file FilterFactory.icc.h.
|
pure virtual |
Getter for a descriptive purpose of the filter.
Implemented in FacetFilterFactory, SegmentPairFilterFactory, SegmentPairRelationFilterFactory, TrackRelationFilterFactory, CDCPathPairFilterFactory, CDCPathFilterFactory, CDCStateFilterFactory, PXDPairFilterFactory, PXDResultFilterFactory, PXDStateFilterFactory, SVDPairFilterFactory, SVDResultFilterFactory, SVDStateFilterFactory, AxialSegmentPairFilterFactory, ClusterFilterFactory, FacetRelationFilterFactory, SegmentFilterFactory, SegmentRelationFilterFactory, SegmentTrackFilterFactory, SegmentTripleFilterFactory, SegmentTripleRelationFilterFactory, StereoHitFilterFactory, TrackFilterFactory, TrackQualityFilterFactory, WireHitFilterFactory, PathFilterFactory, RelationFilterFactory, and TrackletFilterFactory.
|
pure virtual |
Getter for a short identifier of the factory. Currently unused.
Implemented in FacetFilterFactory, SegmentPairFilterFactory, SegmentPairRelationFilterFactory, TrackRelationFilterFactory, CDCPathPairFilterFactory, CDCPathFilterFactory, CDCStateFilterFactory, PXDPairFilterFactory, PXDResultFilterFactory, PXDStateFilterFactory, SVDPairFilterFactory, SVDResultFilterFactory, SVDStateFilterFactory, AxialSegmentPairFilterFactory, ClusterFilterFactory, FacetRelationFilterFactory, SegmentFilterFactory, SegmentRelationFilterFactory, SegmentTrackFilterFactory, SegmentTripleFilterFactory, SegmentTripleRelationFilterFactory, StereoHitFilterFactory, TrackFilterFactory, WireHitFilterFactory, PathFilterFactory, RelationFilterFactory, and TrackletFilterFactory.
|
pure virtual |
Getter for the valid filter names and a description for each.
Implemented in FacetFilterFactory, SegmentPairFilterFactory, SegmentPairRelationFilterFactory, TrackRelationFilterFactory, CDCPathPairFilterFactory, CDCPathFilterFactory, CDCStateFilterFactory, PXDPairFilterFactory, PXDResultFilterFactory, PXDStateFilterFactory, SVDPairFilterFactory, SVDResultFilterFactory, SVDStateFilterFactory, AxialSegmentPairFilterFactory, ClusterFilterFactory, FacetRelationFilterFactory, SegmentFilterFactory, SegmentRelationFilterFactory, SegmentTrackFilterFactory, SegmentTripleFilterFactory, SegmentTripleRelationFilterFactory, StereoHitFilterFactory, TrackFilterFactory, WireHitFilterFactory, PathFilterFactory, RelationFilterFactory, and TrackletFilterFactory.
|
private |
Legacy - Default filter name suggested by this factory.
Definition at line 67 of file FilterFactory.dcl.h.