Belle II Software development
PathFilterFactory.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#pragma once
9
10#include <tracking/vxdHoughTracking/filters/pathFilters/BasePathFilter.h>
11#include <tracking/trackFindingCDC/filters/base/FilterFactory.dcl.h>
12
13namespace Belle2 {
18 namespace vxdHoughTracking {
19
21 class PathFilterFactory : public TrackFindingCDC::FilterFactory<BasePathFilter> {
22
23 private:
26
27 public:
29 explicit PathFilterFactory(const std::string& defaultFilterName = "all");
30
33
35 std::string getIdentifier() const override;
36
38 std::string getFilterPurpose() const override;
39
41 std::map<std::string, std::string> getValidFilterNamesAndDescriptions() const override;
42
44 std::unique_ptr<BasePathFilter> create(const std::string& filterName) const override;
45 };
46
47 }
49}
Factory that can create apropriate filter instances from a name.
Factory that can create appropriate cluster filters from associated names.
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::unique_ptr< BasePathFilter > 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.
Abstract base class for different kinds of events.