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/trackingUtilities/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 <cdc/topology/ISuperLayer.h>
17
18#include <vector>
19#include <array>
20#include <string>
21
22namespace Belle2 {
27 class ModuleParamList;
28
29 namespace TrackingUtilities {
30 class CDCSegment2D;
31 class CDCSegmentPair;
32 class CDCSegment2D;
33 }
34 namespace TrackFindingCDC {
35
37 class SegmentPairCreator : public
38 TrackingUtilities::Findlet<const TrackingUtilities::CDCSegment2D, TrackingUtilities::CDCSegmentPair> {
39
40 private:
43
44 public:
47
49 std::string getDescription() final;
50
52 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
53
55 void apply(const std::vector<TrackingUtilities::CDCSegment2D>& inputSegments,
56 std::vector<TrackingUtilities::CDCSegmentPair>& segmentPairs) final;
57
58 private:
60 void create(const std::vector<const TrackingUtilities::CDCSegment2D*>& fromSegments,
61 const std::vector<const TrackingUtilities::CDCSegment2D*>& toSegments,
62 std::vector<TrackingUtilities::CDCSegmentPair>& segmentPairs);
63
64 private:
67
68 private:
71
73 ChooseableSegmentPairFilter m_segmentPairFilter;
74
75 // Object pools
77 std::array<std::vector<const TrackingUtilities::CDCSegment2D*>, CDC::ISuperLayerUtil::c_N> m_segmentsBySuperLayer;
78 };
79 }
81}
The Module parameter list class.
Class providing construction combinatorics for the axial stereo segment pairs.
ChooseableSegmentPairFilter m_segmentPairFilter
The filter to be used for the segment pair generation.
void apply(const std::vector< TrackingUtilities::CDCSegment2D > &inputSegments, std::vector< TrackingUtilities::CDCSegmentPair > &segmentPairs) final
Main method constructing pairs in adjacent super layers.
AxialSegmentPairCreator m_axialSegmentPairCreator
Findlet responsible for the creation of axial axial segment pairs.
std::string getDescription() final
Short description of the findlet.
SegmentPairCreator()
Constructor adding the filter as a subordinary processing signal listener.
std::array< std::vector< const TrackingUtilities::CDCSegment2D * >, CDC::ISuperLayerUtil::c_N > m_segmentsBySuperLayer
Structure for the segments grouped by super layer id.
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.
void create(const std::vector< const TrackingUtilities::CDCSegment2D * > &fromSegments, const std::vector< const TrackingUtilities::CDCSegment2D * > &toSegments, std::vector< TrackingUtilities::CDCSegmentPair > &segmentPairs)
Creates segment pairs from a combination of from segments and to segments.
TrackingUtilities::Findlet< const TrackingUtilities::CDCSegment2D, TrackingUtilities::CDCSegmentPair > Super
Type of the base class.
A reconstructed sequence of two dimensional hits in one super layer.
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
STL class.
STL class.
Abstract base class for different kinds of events.
STL namespace.
This is a utility class for the free ISuperLayer type.
Definition ISuperLayer.h:50