8#include <tracking/trackFindingCDC/filters/facetRelation/FacetRelationFilterFactory.h>
10#include <tracking/trackFindingCDC/filters/facetRelation/BaseFacetRelationFilter.h>
11#include <tracking/trackFindingCDC/filters/facetRelation/AllFacetRelationFilter.h>
12#include <tracking/trackFindingCDC/filters/facetRelation/MCFacetRelationFilter.h>
13#include <tracking/trackFindingCDC/filters/facetRelation/SimpleFacetRelationFilter.h>
14#include <tracking/trackFindingCDC/filters/facetRelation/Chi2FacetRelationFilter.h>
15#include <tracking/trackFindingCDC/filters/facetRelation/UnionRecordingFacetRelationFilter.h>
16#include <tracking/trackFindingCDC/filters/facetRelation/MVAFacetRelationFilter.h>
18#include <tracking/trackFindingCDC/filters/base/NoneFilter.icc.h>
20#include <tracking/trackFindingCDC/filters/base/FilterFactory.icc.h>
24using namespace TrackFindingCDC;
29 :
Super(defaultFilterName)
35 return "FacetRelation";
40 return "Facet relation filter to construct of a facet network";
43std::map<std::string, std::string>
47 {
"none",
"no facet relation is valid, stop at facet creation."},
48 {
"all",
"all facet relations are valid"},
49 {
"truth",
"facet relations from monte carlo truth"},
50 {
"simple",
"mc free with simple criteria"},
51 {
"chi2",
"mc free based on chi2 fitting"},
52 {
"chi2_old",
"old based on chi2 fitting with single cut regardless of superlayer"},
53 {
"unionrecording",
"record multiple choosable variable sets"},
54 {
"mva",
"filter facets with a mva method"},
58std::unique_ptr<BaseFacetRelationFilter >
61 if (filterName ==
"none") {
62 return std::make_unique<NoneFilter<BaseFacetRelationFilter>>();
64 }
else if (filterName ==
"all") {
65 return std::make_unique<AllFacetRelationFilter>();
67 }
else if (filterName ==
"truth") {
68 return std::make_unique<MCFacetRelationFilter>();
70 }
else if (filterName ==
"simple") {
71 return std::make_unique<SimpleFacetRelationFilter>();
73 }
else if (filterName ==
"chi2") {
74 return std::make_unique<Chi2FacetRelationFilter>();
76 }
else if (filterName ==
"chi2_old") {
77 return std::make_unique<Chi2FacetRelationFilter>(130.0, 200.0);
79 }
else if (filterName ==
"unionrecording") {
80 return std::make_unique<UnionRecordingFacetRelationFilter>();
82 }
else if (filterName ==
"mva") {
83 return std::make_unique<MVAFacetRelationFilter>();
std::unique_ptr< BaseFacetRelationFilter > create(const std::string &filterName) const override
Create a filter with the given name.
std::map< std::string, std::string > getValidFilterNamesAndDescriptions() const override
Getter for valid filter names and a description for each.
std::string getIdentifier() const override
Getter for a short identifier for the factory.
FacetRelationFilterFactory(const std::string &defaultFilterName="chi2")
Constructor forwarding the default filter name.
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< BaseFacetRelationFilter > 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.