Belle II Software development
ClusterFilterFactory.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/trackFindingCDC/filters/cluster/BaseClusterFilter.h>
11
12#include <tracking/trackFindingCDC/filters/base/FilterFactory.dcl.h>
13
14namespace Belle2 {
19 namespace TrackFindingCDC {
20 // Guard to prevent repeated instantiations
21 extern template class FilterFactory<BaseClusterFilter>;
22
25
26 private:
29
30 public:
32 explicit ClusterFilterFactory(const std::string& defaultFilterName = "mva_bkg");
33
36
38 std::string getIdentifier() const override;
39
41 std::string getFilterPurpose() const override;
42
44 std::map<std::string, std::string> getValidFilterNamesAndDescriptions() const override;
45
47 std::unique_ptr<BaseClusterFilter> create(const std::string& filterName) const override;
48 };
49 }
51}
std::map< std::string, std::string > getValidFilterNamesAndDescriptions() const override
Getter for valid filter names and a description for each.
ClusterFilterFactory(const std::string &defaultFilterName="mva_bkg")
Constructor forwarding the default filter name.
FilterFactory< BaseClusterFilter > Super
Type of the base class.
std::string getIdentifier() const override
Getter for a short identifier for the factory.
std::unique_ptr< BaseClusterFilter > 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.
Factory that can create appropriate filter instances from a name.
FilterFactory(const std::string &defaultFilterName="")
Abstract base class for different kinds of events.