8#include <tracking/trackFindingCDC/filters/cluster/ClusterFilterFactory.h>
10#include <tracking/trackFindingCDC/filters/cluster/BaseClusterFilter.h>
11#include <tracking/trackFindingCDC/filters/cluster/AllClusterFilter.h>
12#include <tracking/trackFindingCDC/filters/cluster/UnionRecordingClusterFilter.h>
13#include <tracking/trackFindingCDC/filters/cluster/MVABackgroundClusterFilter.h>
15#include <tracking/trackFindingCDC/filters/base/FilterFactory.icc.h>
19using namespace TrackFindingCDC;
24 :
Super(defaultFilterName)
37 return "Cluster filter to reject background";
43 {
"all",
"all cluster are valid"},
44 {
"unionrecording",
"record many multiple choosable variable set"},
45 {
"mva_bkg",
"test clusters for background with a mva method"},
49std::unique_ptr<Filter<CDCWireHitCluster> >
52 if (filterName ==
"all") {
53 return std::make_unique<AllClusterFilter>();
55 }
else if (filterName ==
"unionrecording") {
56 return std::make_unique<UnionRecordingClusterFilter>();
58 }
else if (filterName ==
"mva_bkg") {
59 return std::make_unique<MVABackgroundClusterFilter>();
std::map< std::string, std::string > getValidFilterNamesAndDescriptions() const override
Getter for valid filter names and a description for each.
ClusterFilterFactory(const std::string &defaultFilterName="mva_bkg")
Constructor forwarding the default filter name.
std::string getIdentifier() const override
Getter for a short identifier for the factory.
std::unique_ptr< BaseClusterFilter > create(const std::string &filterName) const override
Create a filter with the given name.
~ClusterFilterFactory()
Default destructor.
std::string getFilterPurpose() const override
Getter for a descriptive purpose of the constructed filters.
Factory that can create appropriate filter instances from a name.
virtual std::unique_ptr< BaseClusterFilter > create(const std::string &filterName) const
Create a filter with the given name, does not set filter specific parameters.
Abstract base class for different kinds of events.