Belle II Software development
AxialSegmentPairCreator.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/filters/axialSegmentPair/ChooseableAxialSegmentPairFilter.h>
13
14#include <cdc/topology/ISuperLayer.h>
15
16#include <vector>
17#include <array>
18#include <string>
19
20namespace Belle2 {
25
26 namespace TrackingUtilities {
28 class CDCSegment2D;
29 }
30 namespace TrackFindingCDC {
31
34 TrackingUtilities::Findlet<const TrackingUtilities::CDCSegment2D, TrackingUtilities::CDCAxialSegmentPair> {
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<TrackingUtilities::CDCSegment2D>& inputSegments,
52 std::vector<TrackingUtilities::CDCAxialSegmentPair>& axialSegmentPairs) final;
53
54 private:
56 void create(const std::vector<const TrackingUtilities::CDCSegment2D*>& startSegments,
57 const std::vector<const TrackingUtilities::CDCSegment2D*>& endSegments,
58 std::vector<TrackingUtilities::CDCAxialSegmentPair>& axialSegmentPairs);
59
60 private:
62 std::array<std::vector<const TrackingUtilities::CDCSegment2D*>, CDC::ISuperLayerUtil::c_N> m_segmentsBySuperLayer;
63
65 ChooseableAxialSegmentPairFilter m_axialSegmentPairFilter;
66 };
67 }
69}
The Module parameter list class.
void apply(const std::vector< TrackingUtilities::CDCSegment2D > &inputSegments, std::vector< TrackingUtilities::CDCAxialSegmentPair > &axialSegmentPairs) final
Main method constructing pairs in adjacent super layers.
TrackingUtilities::Findlet< const TrackingUtilities::CDCSegment2D, TrackingUtilities::CDCAxialSegmentPair > Super
Type of the base class.
AxialSegmentPairCreator()
Constructor adding the filter as a subordinary processing signal listener.
std::string getDescription() final
Short description of the findlet.
std::array< std::vector< const TrackingUtilities::CDCSegment2D * >, CDC::ISuperLayerUtil::c_N > m_segmentsBySuperLayer
Structure for the segments grouped by super layer id.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
void create(const std::vector< const TrackingUtilities::CDCSegment2D * > &startSegments, const std::vector< const TrackingUtilities::CDCSegment2D * > &endSegments, std::vector< TrackingUtilities::CDCAxialSegmentPair > &axialSegmentPairs)
Creates segment pairs from a combination of start segments and end segments.
ChooseableAxialSegmentPairFilter m_axialSegmentPairFilter
The filter to be used for the segment pair generation.
Class representing a pair of reconstructed axial segments in adjacent superlayer.
A reconstructed sequence of two dimensional hits in one super layer.
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