Belle II Software development
SegmentPairCreator.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/findlets/minimal/AxialSegmentPairCreator.h>
13
14#include <tracking/trackFindingCDC/filters/segmentPair/ChooseableSegmentPairFilter.h>
15
16#include <tracking/trackFindingCDC/topology/ISuperLayer.h>
17
18#include <vector>
19#include <array>
20#include <string>
21
22namespace Belle2 {
27 class ModuleParamList;
28
29 namespace TrackFindingCDC {
30 class CDCSegment2D;
31 class CDCSegmentPair;
32
34 class SegmentPairCreator : public Findlet<const CDCSegment2D, CDCSegmentPair> {
35
36 private:
39
40 public:
43
45 std::string getDescription() final;
46
48 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
49
51 void apply(const std::vector<CDCSegment2D>& inputSegments,
52 std::vector<CDCSegmentPair>& segmentPairs) final;
53
54 private:
56 void create(const std::vector<const CDCSegment2D*>& fromSegments,
57 const std::vector<const CDCSegment2D*>& toSegments,
58 std::vector<CDCSegmentPair>& segmentPairs);
59
60 private:
63
64 private:
67
70
71 // Object pools
74 };
75 }
77}
The Module parameter list class.
Class providing construction combinatorics for the axial stereo segment pairs.
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:39
Class representing a pair of one reconstructed axial segment and one stereo segment in adjacent super...
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
Class providing construction combinatorics for the axial stereo segment pairs.
ChooseableSegmentPairFilter m_segmentPairFilter
The filter to be used for the segment pair generation.
AxialSegmentPairCreator m_axialSegmentPairCreator
Findlet responsible for the creation of axial axial segment pairs.
void create(const std::vector< const CDCSegment2D * > &fromSegments, const std::vector< const CDCSegment2D * > &toSegments, std::vector< CDCSegmentPair > &segmentPairs)
Creates segment pairs from a combination of from segments and to segments.
std::string getDescription() final
Short description of the findlet.
SegmentPairCreator()
Constructor adding the filter as a subordinary processing signal listener.
bool m_param_axialBridging
Parameter : Switch to enable the search for axial to axial pairs to enable more stable reconstruction...
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
std::array< std::vector< const CDCSegment2D * >, ISuperLayerUtil::c_N > m_segmentsBySuperLayer
Structure for the segments grouped by super layer id.
void apply(const std::vector< CDCSegment2D > &inputSegments, std::vector< CDCSegmentPair > &segmentPairs) final
Main method constructing pairs in adjacent super layers.
Abstract base class for different kinds of events.
STL namespace.
This is a utility class for the free ISuperLayer type.
Definition: ISuperLayer.h:50