8#include <tracking/vxdHoughTracking/filters/relations/RelationFilterFactory.h>
9#include <tracking/vxdHoughTracking/filters/relations/AngleAndTimeRelationFilter.h>
10#include <tracking/vxdHoughTracking/filters/relations/SimpleRelationFilter.h>
11#include <tracking/trackFindingCDC/filters/base/Filter.icc.h>
12#include <tracking/trackFindingCDC/filters/base/FilterFactory.icc.h>
13#include <tracking/trackFindingCDC/filters/base/NoneFilter.icc.h>
14#include <tracking/trackFindingCDC/filters/base/AllFilter.icc.h>
17using namespace TrackFindingCDC;
18using namespace vxdHoughTracking;
21 :
Super(defaultFilterName)
29 return "Factory for SVD Hit Pair Relation Filters";
34 return "Rejects SVD hit pairs based on their relation. ";
40 {
"all",
"all combinations are valid"},
41 {
"none",
"no combination is valid"},
42 {
"angleAndTime",
"filter relation based on their theta value and the hit time"},
43 {
"simple",
"very simple filtering based on theta of the hits in question"},
47std::unique_ptr<BaseRelationFilter>
50 if (filterName ==
"all") {
51 return std::make_unique<TrackFindingCDC::AllFilter<BaseRelationFilter>>();
55 if (filterName ==
"none") {
56 return std::make_unique<TrackFindingCDC::NoneFilter<BaseRelationFilter>>();
60 if (filterName ==
"angleAndTime") {
61 return std::make_unique<AngleAndTimeRelationFilter>();
64 if (filterName ==
"simple") {
65 return std::make_unique<SimpleRelationFilter>();
virtual std::unique_ptr< BaseRelationFilter > 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.
~RelationFilterFactory()
Default destructor.
std::string getIdentifier() const override
Getter for a short identifier for the factory.
std::unique_ptr< BaseRelationFilter > create(const std::string &filterName) const override
Create a filter with the given name.
RelationFilterFactory(const std::string &defaultFilterName="all")
Constructor forwarding the default filter name.
std::string getFilterPurpose() const override
Getter for a descriptive purpose of the constructed filters.
Abstract base class for different kinds of events.