8#include <tracking/trackFindingCDC/filters/axialSegmentPair/AxialSegmentPairFilterFactory.h>
10#include <tracking/trackFindingCDC/filters/axialSegmentPair/BaseAxialSegmentPairFilter.h>
11#include <tracking/trackFindingCDC/filters/axialSegmentPair/AllAxialSegmentPairFilter.h>
12#include <tracking/trackFindingCDC/filters/axialSegmentPair/MCAxialSegmentPairFilter.h>
13#include <tracking/trackFindingCDC/filters/axialSegmentPair/SimpleAxialSegmentPairFilter.h>
14#include <tracking/trackFindingCDC/filters/axialSegmentPair/UnionRecordingAxialSegmentPairFilter.h>
16#include <tracking/trackFindingCDC/filters/axialSegmentPair/MVAFeasibleAxialSegmentPairFilter.h>
17#include <tracking/trackFindingCDC/filters/axialSegmentPair/MVARealisticAxialSegmentPairFilter.h>
19#include <tracking/trackFindingCDC/filters/base/NoneFilter.icc.h>
21#include <tracking/trackFindingCDC/filters/base/FilterFactory.icc.h>
24using namespace TrackFindingCDC;
29 :
Super(defaultFilterName)
35 return "AxialSegmentPair";
40 return "AxialSegment pair filter to construct of a axialSegment pair network";
43std::map<std::string, std::string>
47 {
"none",
"no axialSegment pair is valid"},
48 {
"all",
"all axialSegment pairs are valid"},
49 {
"truth",
"monte carlo truth"},
50 {
"unionrecording",
"record many multiple choosable variable set"},
51 {
"feasible",
"check if the segment relation is feasible"},
52 {
"realistic",
"check if the segment relation is a good combination"},
53 {
"simple",
"mc free with simple criteria"},
57std::unique_ptr<Filter<CDCAxialSegmentPair> >
60 if (filterName ==
"none") {
61 return std::make_unique<NoneFilter<BaseAxialSegmentPairFilter> >();
63 }
else if (filterName ==
"all") {
64 return std::make_unique<AllAxialSegmentPairFilter>();
66 }
else if (filterName ==
"truth") {
67 return std::make_unique<MCAxialSegmentPairFilter>();
69 }
else if (filterName ==
"unionrecording") {
70 return std::make_unique<UnionRecordingAxialSegmentPairFilter>();
72 }
else if (filterName ==
"simple") {
73 return std::make_unique<SimpleAxialSegmentPairFilter>();
75 }
else if (filterName ==
"feasible") {
76 return std::make_unique<MVAFeasibleAxialSegmentPairFilter>();
78 }
else if (filterName ==
"realistic") {
79 return std::make_unique<MVARealisticAxialSegmentPairFilter>();
std::map< std::string, std::string > getValidFilterNamesAndDescriptions() const override
Getter for valid filter names and a description for each.
AxialSegmentPairFilterFactory(const std::string &defaultFilterName="realistic")
Constructor forwarding the default filter name.
std::unique_ptr< BaseAxialSegmentPairFilter > create(const std::string &filterName) const override
Create a filter with the given name.
std::string getIdentifier() const override
Getter for a short identifier for the factory.
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< BaseAxialSegmentPairFilter > 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.