8 #include <tracking/vxdHoughTracking/filters/trackletFilters/TrackletFilterFactory.h>
9 #include <tracking/trackFindingCDC/filters/base/Filter.icc.h>
10 #include <tracking/trackFindingCDC/filters/base/FilterFactory.icc.h>
11 #include <tracking/trackFindingCDC/filters/base/NoneFilter.icc.h>
12 #include <tracking/trackFindingCDC/filters/base/AllFilter.icc.h>
15 using namespace TrackFindingCDC;
16 using namespace vxdHoughTracking;
18 TrackletFilterFactory::TrackletFilterFactory(
const std::string& defaultFilterName)
19 :
Super(defaultFilterName)
27 return "Factory for Filters for SpacePointTrackCands";
32 return "Rejects SpacePointTrackCands. ";
38 {
"all",
"all combinations are valid"},
39 {
"none",
"no combination is valid"},
43 std::unique_ptr<BaseTrackletFilter>
46 if (filterName ==
"all") {
47 return std::make_unique<TrackFindingCDC::AllFilter<BaseTrackletFilter>>();
51 if (filterName ==
"none") {
52 return std::make_unique<TrackFindingCDC::NoneFilter<BaseTrackletFilter>>();
virtual std::unique_ptr< BaseTrackletFilter > create(const std::string &filterName) const
Create a filter with the given name, does not set filter specific parameters.
std::map< std::string, std::string > getValidFilterNamesAndDescriptions() const override
Getter for valid filter names and a description for each.
~TrackletFilterFactory()
Default destructor.
std::unique_ptr< BaseTrackletFilter > create(const std::string &filterName) const override
Create a filter with the given name.
std::string getIdentifier() const override
Getter for a short identifier for the factory.
std::string getFilterPurpose() const override
Getter for a descriptive purpose of the constructed filters.
Abstract base class for different kinds of events.