Belle II Software development
SegmentTripleRelationFilterFactory.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/segmentTripleRelation/BaseSegmentTripleRelationFilter.h>
11#include <tracking/trackFindingCDC/filters/base/FilterFactory.dcl.h>
12
13namespace Belle2 {
18 namespace TrackFindingCDC {
19 // Guard to prevent repeated instantiations
21
24
25 private:
28
29 public:
31 explicit SegmentTripleRelationFilterFactory(const std::string& defaultFilterName = "simple");
32
34 std::string getIdentifier() const override;
35
37 std::string getFilterPurpose() const override;
38
40 std::map<std::string, std::string> getValidFilterNamesAndDescriptions() const override;
41
43 std::unique_ptr<BaseSegmentTripleRelationFilter> create(const std::string& filterName) const override;
44 };
45 }
47}
Factory that can create appropriate filter instances from a name.
std::unique_ptr< BaseSegmentTripleRelationFilter > create(const std::string &filterName) const override
Create a filter with the given name.
FilterFactory< BaseSegmentTripleRelationFilter > Super
Type of the base class.
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.
SegmentTripleRelationFilterFactory(const std::string &defaultFilterName="simple")
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.