Belle II Software  release-05-01-25
SegmentPairCreator.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/findlets/minimal/AxialSegmentPairCreator.h>
15 
16 #include <tracking/trackFindingCDC/filters/segmentPair/ChooseableSegmentPairFilter.h>
17 
18 #include <tracking/trackFindingCDC/topology/ISuperLayer.h>
19 
20 #include <vector>
21 #include <array>
22 #include <string>
23 
24 namespace Belle2 {
29  class ModuleParamList;
30 
31  namespace TrackFindingCDC {
32  class CDCSegment2D;
33  class CDCSegmentPair;
34 
36  class SegmentPairCreator : public Findlet<const CDCSegment2D, CDCSegmentPair> {
37 
38  private:
40  using Super = Findlet<const CDCSegment2D, CDCSegmentPair>;
41 
42  public:
45 
47  std::string getDescription() final;
48 
50  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
51 
53  void apply(const std::vector<CDCSegment2D>& inputSegments,
54  std::vector<CDCSegmentPair>& segmentPairs) final;
55 
56  private:
58  void create(const std::vector<const CDCSegment2D*>& fromSegments,
59  const std::vector<const CDCSegment2D*>& toSegments,
60  std::vector<CDCSegmentPair>& segmentPairs);
61 
62  private:
64  bool m_param_axialBridging = false;
65 
66  private:
69 
72 
73  // Object pools
75  std::array<std::vector<const CDCSegment2D*>, ISuperLayerUtil::c_N> m_segmentsBySuperLayer;
76  };
77  }
79 }
Belle2::TrackFindingCDC::AxialSegmentPairCreator
Class providing construction combinatorics for the axial stereo segment pairs.
Definition: AxialSegmentPairCreator.h:41
Belle2::TrackFindingCDC::CDCSegmentPair
Class representing a pair of one reconstructed axial segement and one stereo segment in adjacent supe...
Definition: CDCSegmentPair.h:44
Belle2::TrackFindingCDC::ChooseableFilter< SegmentPairFilterFactory >
Belle2::TrackFindingCDC::SegmentPairCreator::m_axialSegmentPairCreator
AxialSegmentPairCreator m_axialSegmentPairCreator
Findlet responsible for the creation of axial axial segment pairs.
Definition: SegmentPairCreator.h:76
Belle2::TrackFindingCDC::SegmentPairCreator::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: SegmentPairCreator.cc:39
Belle2::TrackFindingCDC::SegmentPairCreator::apply
void apply(const std::vector< CDCSegment2D > &inputSegments, std::vector< CDCSegmentPair > &segmentPairs) final
Main method constructing pairs in adjacent super layers.
Definition: SegmentPairCreator.cc:51
Belle2::TrackFindingCDC::SegmentPairCreator::m_param_axialBridging
bool m_param_axialBridging
Parameter : Switch to enable the search for axial to axial pairs to enable more stable reconstruction...
Definition: SegmentPairCreator.h:72
Belle2::TrackFindingCDC::SegmentPairCreator::m_segmentPairFilter
ChooseableSegmentPairFilter m_segmentPairFilter
The filter to be used for the segment pair generation.
Definition: SegmentPairCreator.h:79
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::SegmentPairCreator::SegmentPairCreator
SegmentPairCreator()
Constructor adding the filter as a subordinary processing signal listener.
Definition: SegmentPairCreator.cc:28
Belle2::TrackFindingCDC::SegmentPairCreator::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: SegmentPairCreator.cc:34
Belle2::TrackFindingCDC::SegmentPairCreator::Super
Findlet< const CDCSegment2D, CDCSegmentPair > Super
Type of the base class.
Definition: SegmentPairCreator.h:48
Belle2::TrackFindingCDC::CDCSegment2D
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:40
Belle2::TrackFindingCDC::SegmentPairCreator::create
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.
Definition: SegmentPairCreator.cc:162
Belle2::TrackFindingCDC::SegmentPairCreator::m_segmentsBySuperLayer
std::array< std::vector< const CDCSegment2D * >, ISuperLayerUtil::c_N > m_segmentsBySuperLayer
Structure for the segments grouped by super layer id.
Definition: SegmentPairCreator.h:83
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::TrackFindingCDC::ISuperLayerUtil
This is a utility class for the free ISuperLayer type.
Definition: ISuperLayer.h:60