Belle II Software  release-08-01-10
CDCPathFilterFactory.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/ckf/cdc/filters/paths/BaseCDCPathFilter.h>
11 #include <tracking/trackFindingCDC/filters/base/FilterFactory.dcl.h>
12 
13 namespace Belle2 {
19  class CDCPathFilterFactory : public TrackFindingCDC::FilterFactory<BaseCDCPathFilter> {
20 
21  private:
24 
25  public:
27  explicit CDCPathFilterFactory(const std::string& defaultFilterName = "size");
28 
31 
33  std::string getIdentifier() const override;
34 
36  std::string getFilterPurpose() const override;
37 
39  std::map<std::string, std::string> getValidFilterNamesAndDescriptions() const override;
40 
42  std::unique_ptr<BaseCDCPathFilter> create(const std::string& filterName) const override;
43  };
45 }
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::unique_ptr< BaseCDCPathFilter > create(const std::string &filterName) const override
Create a filter with the given name.
~CDCPathFilterFactory()
Default destructor.
std::string getIdentifier() const override
Getter for a short identifier for the factory.
CDCPathFilterFactory(const std::string &defaultFilterName="size")
Constructor forwarding the default filter name.
std::string getFilterPurpose() const override
Getter for a descriptive purpose of the constructed filters.
Factory that can create apropriate filter instances from a name.
Abstract base class for different kinds of events.