8#include <tracking/trackFindingCDC/filters/segmentPairRelation/SegmentPairRelationFilterFactory.h>
10#include <tracking/trackFindingCDC/filters/segmentPairRelation/BaseSegmentPairRelationFilter.h>
11#include <tracking/trackFindingCDC/filters/segmentPairRelation/AllSegmentPairRelationFilter.h>
12#include <tracking/trackFindingCDC/filters/segmentPairRelation/MCSegmentPairRelationFilter.h>
13#include <tracking/trackFindingCDC/filters/segmentPairRelation/SimpleSegmentPairRelationFilter.h>
14#include <tracking/trackFindingCDC/filters/segmentPairRelation/UnionRecordingSegmentPairRelationFilter.h>
15#include <tracking/trackFindingCDC/filters/segmentPairRelation/MVARealisticSegmentPairRelationFilter.h>
17#include <tracking/trackFindingCDC/filters/base/NoneFilter.icc.h>
19#include <tracking/trackFindingCDC/filters/base/FilterFactory.icc.h>
23using namespace TrackFindingCDC;
28 :
Super(defaultFilterName)
34 return "SegmentPairRelation";
39 return "Segment pair relation filter to construct of a segment pair network";
42std::map<std::string, std::string>
46 {
"none",
"no segment pair relation is valid, stop at segment pair creation"},
47 {
"all",
"all segment pair relations are valid"},
48 {
"truth",
"segment pair relations from monte carlo truth"},
49 {
"simple",
"mc free with simple criteria"},
50 {
"unionrecording",
"record multiple choosable variable set"},
51 {
"realistic",
"mc free using a mva method"},
55std::unique_ptr<BaseSegmentPairRelationFilter>
58 if (filterName ==
"none") {
59 return std::make_unique<NoneFilter<BaseSegmentPairRelationFilter>>();
61 }
else if (filterName ==
"all") {
62 return std::make_unique<AllSegmentPairRelationFilter>();
64 }
else if (filterName ==
"truth") {
65 return std::make_unique<MCSegmentPairRelationFilter>();
67 }
else if (filterName ==
"simple") {
68 return std::make_unique<SimpleSegmentPairRelationFilter>();
70 }
else if (filterName ==
"unionrecording") {
71 return std::make_unique<UnionRecordingSegmentPairRelationFilter>();
73 }
else if (filterName ==
"realistic") {
74 return std::make_unique<MVARealisticSegmentPairRelationFilter>();
Factory that can create appropriate filter instances from a name.
virtual std::unique_ptr< BaseSegmentPairRelationFilter > 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< BaseSegmentPairRelationFilter > 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.
SegmentPairRelationFilterFactory(const std::string &defaultFilterName="realistic")
Constructor forwarding the default filter name.
Abstract base class for different kinds of events.