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/CDCWireHitVarSet.h>
13#include <tracking/trackFindingCDC/filters/wireHit/CutsFromDBWireHitFilter.h>
14#include <tracking/trackFindingCDC/filters/base/FilterFactory.icc.h>
15#include <tracking/trackFindingCDC/filters/base/MVAFilter.icc.h>
19using namespace TrackFindingCDC;
29 :
Super(defaultFilterName)
42 return "WireHit filter to reject background. ";
48 {
"all",
"all wireHits are valid."},
49 {
"cuts_from_DB",
"wireHits filtered by cuts from DB."},
50 {
"mva",
"MVA filter using TOT, ADC, TDC to tag background hits."}
54std::unique_ptr<Filter<CDCWireHit> >
57 if (filterName ==
"all") {
58 return std::make_unique<AllWireHitFilter>();
60 }
else if (filterName ==
"cuts_from_DB") {
61 return std::make_unique<CutsFromDBWireHitFilter>();
63 }
else if (filterName ==
"mva") {
64 return std::make_unique<MVACDCWireHitFilter>();
Factory that can create appropriate filter instances from a name.
virtual std::unique_ptr< BaseWireHitFilter > create(const std::string &filterName) const
Create a filter with the given name, does not set filter specific parameters.
Convenience template to create a mva filter for a set of variables.
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.