Belle II Software development
SegmentCreatorFacetAutomaton.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/findlets/base/Findlet.h>
11
12#include <tracking/trackFindingCDC/ca/MultipassCellularPathFinder.h>
13#include <tracking/trackFindingCDC/utilities/WeightedRelation.h>
14#include <tracking/trackFindingCDC/ca/Path.h>
15
16#include <vector>
17#include <string>
18
19namespace Belle2 {
26 namespace TrackFindingCDC {
27 class CDCSegment2D;
28 class CDCFacet;
29
32 : public Findlet<const CDCFacet, const WeightedRelation<const CDCFacet>, CDCSegment2D> {
33
34 private:
36 using Super =
38
39 public:
41 std::string getDescription() final;
42
44 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
45
47 void apply(const std::vector<CDCFacet>& inputFacets,
48 const std::vector<WeightedRelation<const CDCFacet>>& inputFacetRelations,
49 std::vector<CDCSegment2D>& outputSegments) final;
50
51 private:
54
57
60
63
64 private: // cellular automaton
67
68 private: // object pools
70 std::vector< Path<const CDCFacet> > m_facetPaths;
71 };
72 }
74}
The Module parameter list class.
Class representing a triple of neighboring oriented wire with additional trajectory information.
Definition: CDCFacet.h:32
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:39
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
Class to combine the run of the cellular automaton and the repeated path extraction.
Findlet that generates segments within clusters based on a cellular automaton on triples of hits.
bool m_param_relaxSingleLayerSearch
Parameter : Switch to relax the alias and reverse search for segments contained in a single layer.
bool m_param_allSingleAliases
Paraneter : Switch to activate the write out of all available orientations of single facet segments.
bool m_param_searchReversed
Parameter : Switch to construct the reversed segment if it is available in the facet graph as well.
std::string getDescription() final
Short description of the findlet.
bool m_param_searchAlias
Parameter : Switch to construct the alias segment if it is available in the facet graph as well.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
MultipassCellularPathFinder< const CDCFacet > m_cellularPathFinder
Instance of the cellular automaton path finder.
std::vector< Path< const CDCFacet > > m_facetPaths
Memory for the facet paths generated from the graph.
void apply(const std::vector< CDCFacet > &inputFacets, const std::vector< WeightedRelation< const CDCFacet > > &inputFacetRelations, std::vector< CDCSegment2D > &outputSegments) final
Main function of the segment finding by the cellular automaton.
Type for two related objects with a weight.
Abstract base class for different kinds of events.
STL namespace.