Belle II Software  release-05-02-19
SegmentTrackFilterFactory.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, Nils Braun *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/filters/segmentTrack/BaseSegmentTrackFilter.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<BaseSegmentTrackFilter>;
24 
26  class SegmentTrackFilterFactory : public FilterFactory<BaseSegmentTrackFilter> {
27 
28  private:
30  using Super = FilterFactory<BaseSegmentTrackFilter>;
31 
32  public:
34  explicit SegmentTrackFilterFactory(const std::string& defaultFilterName = "mva");
35 
37  std::string getIdentifier() const override;
38 
40  std::string getFilterPurpose() const override;
41 
43  std::map<std::string, std::string> getValidFilterNamesAndDescriptions() const override;
44 
46  std::unique_ptr<BaseSegmentTrackFilter> create(const std::string& filterName) const override;
47  };
48  }
50 }
Belle2::TrackFindingCDC::SegmentTrackFilterFactory
Factory that can create appropriate segment to track combinations filters from associated names.
Definition: SegmentTrackFilterFactory.h:34
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19