8#include <tracking/ckf/pxd/filters/relations/PXDPairFilterFactory.h>
9#include <tracking/ckf/pxd/filters/relations/SensorPXDPairFilter.h>
10#include <tracking/ckf/pxd/filters/relations/AngularDistancePXDPairFilter.h>
11#include <tracking/ckf/pxd/filters/relations/LoosePXDPairFilter.h>
12#include <tracking/ckf/pxd/filters/relations/InterceptDistancePXDPairFilter.h>
13#include <tracking/ckf/pxd/filters/relations/CylinderDistancePXDPairFilter.h>
15#include <tracking/trackFindingCDC/filters/base/Filter.icc.h>
16#include <tracking/trackFindingCDC/filters/base/FilterFactory.icc.h>
17#include <tracking/trackFindingCDC/filters/base/NoneFilter.icc.h>
18#include <tracking/trackFindingCDC/filters/base/AllFilter.icc.h>
21using namespace TrackFindingCDC;
25 :
Super(defaultFilterName)
38 return "Reject PXD state pairs. ";
44 {
"all",
"all combinations are valid"},
45 {
"none",
"no combination is valid"},
46 {
"sensor",
"use sensor/ladder information"},
47 {
"angulardistance",
"based on the angular distance of the hit positions"},
48 {
"loose",
"loose prefilter"},
49 {
"intercept",
"intercept filter"},
50 {
"cylinderextrapolation",
"filter based selection using an extrapolation to a cylinder with radius of the ToState"},
54std::unique_ptr<BasePXDPairFilter>
57 if (filterName ==
"all") {
58 return std::make_unique<TrackFindingCDC::AllFilter<BasePXDPairFilter>>();
62 if (filterName ==
"none") {
63 return std::make_unique<TrackFindingCDC::NoneFilter<BasePXDPairFilter>>();
67 if (filterName ==
"sensor") {
68 return std::make_unique<SensorPXDPairFilter>();
71 if (filterName ==
"angulardistance") {
72 return std::make_unique<AngularDistancePXDPairFilter>();
75 if (filterName ==
"loose") {
76 return std::make_unique<LoosePXDPairFilter>();
79 if (filterName ==
"intercept") {
80 return std::make_unique<InterceptDistancePXDPairFilter>();
83 if (filterName ==
"cylinderextrapolation") {
84 return std::make_unique<CylinderDistancePXDPairFilter>();
PXDPairFilterFactory(const std::string &defaultFilterName="sensor")
Constructor forwarding the default filter name.
std::map< std::string, std::string > getValidFilterNamesAndDescriptions() const override
Getter for valid filter names and a description for each.
~PXDPairFilterFactory()
Default destructor.
std::string getIdentifier() const override
Getter for a short identifier for the factory.
std::unique_ptr< BasePXDPairFilter > create(const std::string &filterName) const override
Create a filter with the given name.
std::string getFilterPurpose() const override
Getter for a descriptive purpose of the constructed filters.
virtual std::unique_ptr< BasePXDPairFilter > 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.