Belle II Software development
SegmentPairFilterFactory.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/trackFindingCDC/filters/segmentPair/BaseSegmentPairFilter.h>
11
12#include <tracking/trackFindingCDC/filters/base/FilterFactory.dcl.h>
13
14#include <map>
15#include <string>
16#include <memory>
17
18namespace Belle2 {
23 namespace TrackFindingCDC {
24 // Guard to prevent repeated instantiations
25 extern template class FilterFactory<BaseSegmentPairFilter>;
26
29
30 private:
33
34 public:
36 explicit SegmentPairFilterFactory(const std::string& defaultFilterName = "realistic");
37
39 std::string getIdentifier() const final;
40
42 std::string getFilterPurpose() const final;
43
45 std::map<std::string, std::string> getValidFilterNamesAndDescriptions() const final;
46
48 std::unique_ptr<BaseSegmentPairFilter> create(const std::string& filterName) const final;
49 };
50 }
52}
Factory that can create apropriate filter instances from a name.
Factory that can create appropriate segment pair filters from associated names.
Abstract base class for different kinds of events.
STL namespace.