8#include <tracking/trackFindingCDC/filters/segmentTriple/SegmentTripleFilterFactory.h>
10#include <tracking/trackFindingCDC/filters/segmentTriple/BaseSegmentTripleFilter.h>
11#include <tracking/trackFindingCDC/filters/segmentTriple/AllSegmentTripleFilter.h>
12#include <tracking/trackFindingCDC/filters/segmentTriple/MCSegmentTripleFilter.h>
13#include <tracking/trackFindingCDC/filters/segmentTriple/SimpleSegmentTripleFilter.h>
15#include <tracking/trackFindingCDC/filters/base/NoneFilter.icc.h>
16#include <tracking/trackFindingCDC/filters/base/FilterFactory.icc.h>
20using namespace TrackFindingCDC;
25 :
Super(defaultFilterName)
31 return "SegmentTriple";
36 return "Segment triple filter to construct of a segment triple network";
39std::map<std::string, std::string>
43 {
"none",
"no segment triple is valid"},
44 {
"all",
"all segment triples are valid"},
45 {
"truth",
"monte carlo truth"},
46 {
"simple",
"mc free with simple criteria"},
50std::unique_ptr<Filter<CDCSegmentTriple> >
53 if (filterName ==
"none") {
54 return std::make_unique<NoneFilter<BaseSegmentTripleFilter>>();
56 }
else if (filterName ==
"all") {
57 return std::make_unique<AllSegmentTripleFilter>();
59 }
else if (filterName ==
"truth") {
60 return std::make_unique<MCSegmentTripleFilter>();
62 }
else if (filterName ==
"simple") {
63 return std::make_unique<SimpleSegmentTripleFilter>();
Factory that can create appropriate filter instances from a name.
virtual std::unique_ptr< BaseSegmentTripleFilter > create(const std::string &filterName) const
Create a filter with the given name, does not set filter specific parameters.
std::unique_ptr< BaseSegmentTripleFilter > 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.
std::string getFilterPurpose() const override
Getter for a descriptive purpose of the constructed filters.
SegmentTripleFilterFactory(const std::string &defaultFilterName="simple")
Constructor forwarding the default filter name.
Abstract base class for different kinds of events.