Belle II Software development
SegmentTripleCreator.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/filters/segmentTriple/ChooseableSegmentTripleFilter.h>
13
14#include <tracking/trackFindingCDC/topology/ISuperLayer.h>
15
16#include <vector>
17#include <array>
18#include <string>
19
20namespace Belle2 {
27 namespace TrackFindingCDC {
28 class CDCSegmentTriple;
29 class CDCAxialSegmentPair;
30 class CDCSegment2D;
31
34 : public Findlet<const CDCSegment2D, const CDCAxialSegmentPair, CDCSegmentTriple> {
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 const std::vector<CDCAxialSegmentPair>& inputAxialSegmentPairs,
53 std::vector<CDCSegmentTriple>& segmentTriples) final;
54
55 private:
57 void create(const CDCAxialSegmentPair& axialSegmentPair,
58 const std::vector<const CDCSegment2D*>& middleSegments,
59 std::vector<CDCSegmentTriple>& segmentTriples);
60
61 private:
64
67 };
68 }
70}
The Module parameter list class.
Class representing a pair of reconstructed axial segements in adjacent superlayer.
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:39
Class representing a triple of reconstructed segements in adjacent superlayer.
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.
void apply(const std::vector< CDCSegment2D > &inputSegments, const std::vector< CDCAxialSegmentPair > &inputAxialSegmentPairs, std::vector< CDCSegmentTriple > &segmentTriples) final
Main method constructing pairs in adjacent super layers.
void create(const CDCAxialSegmentPair &axialSegmentPair, const std::vector< const CDCSegment2D * > &middleSegments, std::vector< CDCSegmentTriple > &segmentTriples)
Creates segment triples by adding the middle segment to the axial segments and filter out the valuabl...
std::string getDescription() final
Short description of the findlet.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
SegmentTripleCreator()
Constructor adding the filter as a subordinary processing signal listener.
ChooseableSegmentTripleFilter m_segmentTripleFilter
The filter to be used for the segment triple generation.
std::array< std::vector< const CDCSegment2D * >, ISuperLayerUtil::c_N > m_segmentsBySuperLayer
Structure for the segments grouped by super layer id.
Abstract base class for different kinds of events.
STL namespace.
This is a utility class for the free ISuperLayer type.
Definition: ISuperLayer.h:50