Belle II Software development
SegmentRelationFilterFactory.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/segmentRelation/BaseSegmentRelationFilter.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<BaseSegmentRelationFilter>;
26
29
30 private:
33
34 public:
36 explicit SegmentRelationFilterFactory(const std::string& defaultFilterName = "realistic");
37
39 std::string getIdentifier() const override;
40
42 std::string getFilterPurpose() const override;
43
45 std::map<std::string, std::string> getValidFilterNamesAndDescriptions() const override;
46
48 std::unique_ptr<BaseSegmentRelationFilter> create(const std::string& filterName) const override;
49 };
50 }
52}
Factory that can create appropriate filter instances from a name.
Factory that can create appropriate segment relation filters from associated names.
Abstract base class for different kinds of events.