Belle II Software development
UnionRecordingFacetRelationFilter.cc
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#include <tracking/trackFindingCDC/filters/facetRelation/UnionRecordingFacetRelationFilter.h>
9
10#include <tracking/trackFindingCDC/filters/facetRelation/MVAFacetRelationFilter.h>
11
12#include <tracking/trackFindingCDC/filters/facetRelation/FitFacetRelationVarSet.h>
13#include <tracking/trackFindingCDC/filters/facetRelation/BendFacetRelationVarSet.h>
14#include <tracking/trackFindingCDC/filters/facetRelation/BasicFacetRelationVarSet.h>
15#include <tracking/trackFindingCDC/filters/facetRelation/BaseFacetRelationFilter.h>
16
17#include <tracking/trackFindingCDC/filters/facet/FitlessFacetVarSet.h>
18
19#include <tracking/trackFindingCDC/filters/base/UnionRecordingFilter.icc.h>
20
21#include <tracking/trackFindingCDC/varsets/RelationVarSet.h>
22
23using namespace Belle2;
24using namespace TrackFindingCDC;
25
27
28std::vector<std::string>
30{
31 std::vector<std::string> varSetNames = Super::getValidVarSetNames();
32 varSetNames.insert(varSetNames.end(), {"basic", "relation", " bend", "fit", "mva"});
33 return varSetNames;
34}
35
36std::unique_ptr<BaseVarSet<Relation<const CDCFacet> > >
38{
39 if (name == "basic") {
40 return std::make_unique<BasicFacetRelationVarSet>();
41 } else if (name == "relation") {
42 return std::make_unique<RelationVarSet<FitlessFacetVarSet> >();
43 } else if (name == "bend") {
44 return std::make_unique<BendFacetRelationVarSet>();
45 } else if (name == "fit") {
46 return std::make_unique<FitFacetRelationVarSet>();
47 } else if (name == "mva") {
48 MVAFacetRelationFilter mvaFacetRelationFilter;
49 return std::move(mvaFacetRelationFilter).releaseVarSet();
50 } else {
51 return Super::createVarSet(name);
52 }
53}
Background facetRelation detection based on MVA.
std::unique_ptr< AVarSet > releaseVarSet() &&
Steal the set of variables form this filter - filter becomes dysfunctional afterwards.
std::vector< std::string > getValidVarSetNames() const override
Get the valid names of variable sets for facet relations.
std::unique_ptr< BaseVarSet< Relation< const CDCFacet > > > createVarSet(const std::string &name) const override
Create a concrete variables set for facet relations from a name.
Convenience template to create a recording filter for a filter factory.
virtual std::unique_ptr< AVarSet > createVarSet(const std::string &name) const
Create a variable set for the given name.
virtual std::vector< std::string > getValidVarSetNames() const
Getter for the list of valid names of concrete variable sets.
Abstract base class for different kinds of events.