Belle II Software  release-05-01-25
SegmentPairRelationFilterFactory.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/segmentPairRelation/BaseSegmentPairRelationFilter.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<BaseSegmentPairRelationFilter>;
24 
26  class SegmentPairRelationFilterFactory : public FilterFactory<BaseSegmentPairRelationFilter> {
27 
28  private:
30  using Super = FilterFactory<BaseSegmentPairRelationFilter>;
31 
32  public:
34  explicit SegmentPairRelationFilterFactory(const std::string& defaultFilterName = "realistic");
35 
37  std::string getIdentifier() const final;
38 
40  std::string getFilterPurpose() const final;
41 
43  std::map<std::string, std::string> getValidFilterNamesAndDescriptions() const final;
44 
46  std::unique_ptr<BaseSegmentPairRelationFilter> create(const std::string& filterName) const final;
47  };
48  }
50 }
Belle2::TrackFindingCDC::SegmentPairRelationFilterFactory
Factory that can create appropriate segment pair relation filters from associated names.
Definition: SegmentPairRelationFilterFactory.h:34
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::BaseSegmentPairRelationFilter
Base class for filtering the neighborhood of axial stereo segment pairs.
Definition: BaseSegmentPairRelationFilter.h:36