8 #include <tracking/trackFindingCDC/filters/wireHit/WireHitFilterFactory.h>
10 #include <tracking/trackFindingCDC/filters/wireHit/BaseWireHitFilter.h>
11 #include <tracking/trackFindingCDC/filters/wireHit/AllWireHitFilter.h>
12 #include <tracking/trackFindingCDC/filters/wireHit/CutsFromDBWireHitFilter.h>
13 #include <tracking/trackFindingCDC/filters/base/FilterFactory.icc.h>
17 using namespace TrackFindingCDC;
22 :
Super(defaultFilterName)
35 return "WireHit filter to reject background. ";
41 {
"all",
"all wireHits are valid."},
42 {
"cuts_from_DB",
"wireHits filtered by cuts from DB."}
46 std::unique_ptr<Filter<CDCWireHit> >
49 if (filterName ==
"all") {
50 return std::make_unique<AllWireHitFilter>();
52 }
else if (filterName ==
"cuts_from_DB") {
53 return std::make_unique<CutsFromDBWireHitFilter>();
virtual std::unique_ptr< BaseWireHitFilter > 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.
~WireHitFilterFactory()
Default destructor.
std::string getIdentifier() const override
Getter for a short identifier for the factory.
std::unique_ptr< BaseWireHitFilter > create(const std::string &filterName) const override
Create a filter with the given name.
std::string getFilterPurpose() const override
Getter for a descriptive purpose of the constructed filters.
WireHitFilterFactory(const std::string &defaultFilterName="all")
Constructor forwarding the default filter name.
Abstract base class for different kinds of events.