8#include <tracking/trackFindingCDC/filters/trackRelation/TrackRelationFilterFactory.h>
10#include <tracking/trackFindingCDC/filters/base/FilterFactory.icc.h>
12#include <tracking/trackFindingCDC/filters/trackRelation/BaseTrackRelationFilter.h>
13#include <tracking/trackFindingCDC/filters/trackRelation/AllTrackRelationFilter.h>
14#include <tracking/trackFindingCDC/filters/trackRelation/MCTrackRelationFilter.h>
15#include <tracking/trackFindingCDC/filters/trackRelation/UnionRecordingTrackRelationFilter.h>
16#include <tracking/trackFindingCDC/filters/trackRelation/MVAFeasibleTrackRelationFilter.h>
17#include <tracking/trackFindingCDC/filters/trackRelation/MVARealisticTrackRelationFilter.h>
18#include <tracking/trackFindingCDC/filters/trackRelation/PhiTrackRelationFilter.h>
20#include <tracking/trackFindingCDC/filters/base/NoneFilter.icc.h>
24using namespace TrackFindingCDC;
29 :
Super(defaultFilterName)
35 return "TrackRelation";
40 return "Track relation filter to construct a track network for merging";
43std::map<std::string, std::string>
47 {
"none",
"accepts nothing"},
48 {
"all",
"accepts everything"},
49 {
"truth",
"accepts based on monte carlo information"},
50 {
"unionrecording",
"record multiple choosable variable set"},
51 {
"phi",
"filter just based on the phi distance"},
52 {
"feasible",
"a rough efficient compatibility check"},
53 {
"realistic",
"an expensive pure compatibility check"},
57std::unique_ptr<BaseTrackRelationFilter>
60 if (filterName ==
"none") {
61 return std::make_unique<NoneFilter<BaseTrackRelationFilter>>();
63 }
else if (filterName ==
"all") {
64 return std::make_unique<AllTrackRelationFilter>();
66 }
else if (filterName ==
"truth") {
67 return std::make_unique<MCTrackRelationFilter>();
69 }
else if (filterName ==
"unionrecording") {
70 return std::make_unique< UnionRecordingTrackRelationFilter>();
72 }
else if (filterName ==
"feasible") {
73 return std::make_unique<MVAFeasibleTrackRelationFilter>();
75 }
else if (filterName ==
"realistic") {
76 return std::make_unique<MVARealisticTrackRelationFilter>();
78 }
else if (filterName ==
"phi") {
79 return std::make_unique<PhiTrackRelationFilter>();
Factory that can create appropriate filter instances from a name.
virtual std::unique_ptr< BaseTrackRelationFilter > 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 final
Getter for valid filter names and a description for each.
std::unique_ptr< BaseTrackRelationFilter > create(const std::string &filterName) const final
Create a filter with the given name.
std::string getFilterPurpose() const final
Getter for a descriptive purpose of the constructed filters.
std::string getIdentifier() const final
Getter for a short identifier for the factory.
TrackRelationFilterFactory(const std::string &defaultFilterName="realistic")
Constructor forwarding the default filter name.
Abstract base class for different kinds of events.