Belle II Software  release-08-01-10
RelationFilterFactory.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/relations/BaseRelationFilter.h>
11 #include <tracking/trackFindingCDC/filters/base/FilterFactory.dcl.h>
12 
13 namespace Belle2 {
18  namespace vxdHoughTracking {
19 
21  class RelationFilterFactory : public TrackFindingCDC::FilterFactory<BaseRelationFilter> {
22 
23  private:
26 
27  public:
29  explicit RelationFilterFactory(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<BaseRelationFilter> 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 filters for relations between hits 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< BaseRelationFilter > create(const std::string &filterName) const override
Create a filter with the given name.
RelationFilterFactory(const std::string &defaultFilterName="all")
Constructor forwarding the default filter name.
std::string getFilterPurpose() const override
Getter for a descriptive purpose of the constructed filters.
Abstract base class for different kinds of events.