Belle II Software  release-05-01-25
AxialSegmentPairCreator.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2012 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Oliver Frost *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #pragma once
11 
12 #include <tracking/trackFindingCDC/findlets/base/Findlet.h>
13 
14 #include <tracking/trackFindingCDC/filters/axialSegmentPair/ChooseableAxialSegmentPairFilter.h>
15 
16 #include <tracking/trackFindingCDC/topology/ISuperLayer.h>
17 
18 #include <vector>
19 #include <array>
20 #include <string>
21 
22 namespace Belle2 {
28  namespace TrackFindingCDC {
29  class CDCAxialSegmentPair;
30  class CDCSegment2D;
31 
33  class AxialSegmentPairCreator : public Findlet<const CDCSegment2D, CDCAxialSegmentPair> {
34 
35  private:
37  using Super = Findlet<const CDCSegment2D, CDCAxialSegmentPair>;
38 
39  public:
42 
44  std::string getDescription() final;
45 
47  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
48 
50  void apply(const std::vector<CDCSegment2D>& inputSegments,
51  std::vector<CDCAxialSegmentPair>& axialSegmentPairs) final;
52 
53  private:
55  void create(const std::vector<const CDCSegment2D*>& startSegments,
56  const std::vector<const CDCSegment2D*>& endSegments,
57  std::vector<CDCAxialSegmentPair>& axialSegmentPairs);
58 
59  private:
61  std::array<std::vector<const CDCSegment2D*>, ISuperLayerUtil::c_N> m_segmentsBySuperLayer;
62 
65  };
66  }
68 }
Belle2::TrackFindingCDC::ChooseableFilter< AxialSegmentPairFilterFactory >
Belle2::TrackFindingCDC::AxialSegmentPairCreator::m_segmentsBySuperLayer
std::array< std::vector< const CDCSegment2D * >, ISuperLayerUtil::c_N > m_segmentsBySuperLayer
Structure for the segments grouped by super layer id.
Definition: AxialSegmentPairCreator.h:69
Belle2::TrackFindingCDC::AxialSegmentPairCreator::create
void create(const std::vector< const CDCSegment2D * > &startSegments, const std::vector< const CDCSegment2D * > &endSegments, std::vector< CDCAxialSegmentPair > &axialSegmentPairs)
Creates segment pairs from a combination of start segments and end segments.
Definition: AxialSegmentPairCreator.cc:84
Belle2::TrackFindingCDC::CDCAxialSegmentPair
Class representing a pair of reconstructed axial segements in adjacent superlayer.
Definition: CDCAxialSegmentPair.h:41
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::AxialSegmentPairCreator::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: AxialSegmentPairCreator.cc:26
Belle2::TrackFindingCDC::CDCSegment2D
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:40
Belle2::TrackFindingCDC::AxialSegmentPairCreator::apply
void apply(const std::vector< CDCSegment2D > &inputSegments, std::vector< CDCAxialSegmentPair > &axialSegmentPairs) final
Main method constructing pairs in adjacent super layers.
Definition: AxialSegmentPairCreator.cc:36
Belle2::TrackFindingCDC::AxialSegmentPairCreator::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: AxialSegmentPairCreator.cc:31
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::TrackFindingCDC::AxialSegmentPairCreator::Super
Findlet< const CDCSegment2D, CDCAxialSegmentPair > Super
Type of the base class.
Definition: AxialSegmentPairCreator.h:45
Belle2::TrackFindingCDC::ISuperLayerUtil
This is a utility class for the free ISuperLayer type.
Definition: ISuperLayer.h:60
Belle2::TrackFindingCDC::AxialSegmentPairCreator::AxialSegmentPairCreator
AxialSegmentPairCreator()
Constructor adding the filter as a subordinary processing signal listener.
Definition: AxialSegmentPairCreator.cc:21
Belle2::TrackFindingCDC::AxialSegmentPairCreator::m_axialSegmentPairFilter
ChooseableAxialSegmentPairFilter m_axialSegmentPairFilter
The filter to be used for the segment pair generation.
Definition: AxialSegmentPairCreator.h:72