8 #include <tracking/trackFindingCDC/filters/segmentPair/SegmentPairFilterFactory.h>
10 #include <tracking/trackFindingCDC/filters/segmentPair/BaseSegmentPairFilter.h>
11 #include <tracking/trackFindingCDC/filters/segmentPair/AllSegmentPairFilter.h>
12 #include <tracking/trackFindingCDC/filters/segmentPair/MCSegmentPairFilter.h>
13 #include <tracking/trackFindingCDC/filters/segmentPair/FitlessSegmentPairFilter.h>
14 #include <tracking/trackFindingCDC/filters/segmentPair/SimpleSegmentPairFilter.h>
15 #include <tracking/trackFindingCDC/filters/segmentPair/UnionRecordingSegmentPairFilter.h>
16 #include <tracking/trackFindingCDC/filters/segmentPair/MVAFeasibleSegmentPairFilter.h>
17 #include <tracking/trackFindingCDC/filters/segmentPair/MVARealisticSegmentPairFilter.h>
19 #include <tracking/trackFindingCDC/filters/base/NoneFilter.icc.h>
20 #include <tracking/trackFindingCDC/filters/base/FilterFactory.icc.h>
24 using namespace TrackFindingCDC;
29 :
Super(defaultFilterName)
40 return "Segment pair filter to construct of a segment pair network";
43 std::map<std::string, std::string>
47 {
"none",
"no segment pair is valid"},
48 {
"all",
"all segment pairs are valid"},
49 {
"truth",
"monte carlo truth"},
50 {
"fitless",
"mc free with simple criteria without the common fit"},
51 {
"simple",
"mc free with simple criteria"},
52 {
"unionrecording",
"record many multiple choosable variable set"},
53 {
"feasible",
"multivariat method based on variables of the first and last hit in each segment meant as precut"},
54 {
"realistic",
"realistic filter using a common fit and combination of all information with an mva"},
58 std::unique_ptr<Filter<CDCSegmentPair> >
61 if (filterName ==
"none") {
62 return std::make_unique<NoneFilter<BaseSegmentPairFilter>>();
64 }
else if (filterName ==
"all") {
65 return std::make_unique<AllSegmentPairFilter>();
67 }
else if (filterName ==
"truth") {
68 return std::make_unique<MCSegmentPairFilter>();
70 }
else if (filterName ==
"fitless") {
71 return std::make_unique<FitlessSegmentPairFilter>();
73 }
else if (filterName ==
"simple") {
74 return std::make_unique<SimpleSegmentPairFilter>();
76 }
else if (filterName ==
"unionrecording") {
77 return std::make_unique<UnionRecordingSegmentPairFilter>();
79 }
else if (filterName ==
"feasible") {
80 return std::make_unique<MVAFeasibleSegmentPairFilter>();
82 }
else if (filterName ==
"realistic") {
83 return std::make_unique<MVARealisticSegmentPairFilter>();
virtual std::unique_ptr< BaseSegmentPairFilter > create(const std::string &filterName) const
Create a filter with the given name, does not set filter specific parameters.
std::unique_ptr< BaseSegmentPairFilter > create(const std::string &filterName) const final
Create a filter with the given name.
std::map< std::string, std::string > getValidFilterNamesAndDescriptions() const final
Getter for valid filter names and a description for each.
std::string getFilterPurpose() const final
Getter for a descriptive purpose of the constructed filters.
SegmentPairFilterFactory(const std::string &defaultFilterName="realistic")
Constructor forwarding the default filter name.
std::string getIdentifier() const final
Getter for a short identifier for the factory.
Abstract base class for different kinds of events.