Belle II Software  release-05-02-19
ClusterFilterFactory.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/filters/cluster/BaseClusterFilter.h>
13 
14 #include <tracking/trackFindingCDC/filters/base/FilterFactory.dcl.h>
15 
16 namespace Belle2 {
21  namespace TrackFindingCDC {
22  // Guard to prevent repeated instantiations
23  extern template class FilterFactory<BaseClusterFilter>;
24 
26  class ClusterFilterFactory : public FilterFactory<BaseClusterFilter> {
27 
28  private:
30  using Super = FilterFactory<BaseClusterFilter>;
31 
32  public:
34  explicit ClusterFilterFactory(const std::string& defaultFilterName = "mva_bkg");
35 
38 
40  std::string getIdentifier() const override;
41 
43  std::string getFilterPurpose() const override;
44 
46  std::map<std::string, std::string> getValidFilterNamesAndDescriptions() const override;
47 
49  std::unique_ptr<BaseClusterFilter> create(const std::string& filterName) const override;
50  };
51  }
53 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::ClusterFilterFactory
Factory that can create appropriate cluster filters from associated names.
Definition: ClusterFilterFactory.h:34