Belle II Software  release-05-01-25
SegmentTripleCreator.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/segmentTriple/ChooseableSegmentTripleFilter.h>
15 
16 #include <tracking/trackFindingCDC/topology/ISuperLayer.h>
17 
18 #include <vector>
19 #include <array>
20 #include <string>
21 
22 namespace Belle2 {
29  namespace TrackFindingCDC {
30  class CDCSegmentTriple;
31  class CDCAxialSegmentPair;
32  class CDCSegment2D;
33 
35  class SegmentTripleCreator
36  : public Findlet<const CDCSegment2D, const CDCAxialSegmentPair, CDCSegmentTriple> {
37 
38  private:
40  using Super = Findlet<const CDCSegment2D, const CDCAxialSegmentPair, CDCSegmentTriple>;
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  const std::vector<CDCAxialSegmentPair>& inputAxialSegmentPairs,
55  std::vector<CDCSegmentTriple>& segmentTriples) final;
56 
57  private:
59  void create(const CDCAxialSegmentPair& axialSegmentPair,
60  const std::vector<const CDCSegment2D*>& middleSegments,
61  std::vector<CDCSegmentTriple>& segmentTriples);
62 
63  private:
65  std::array<std::vector<const CDCSegment2D*>, ISuperLayerUtil::c_N> m_segmentsBySuperLayer;
66 
69  };
70  }
72 }
Belle2::TrackFindingCDC::ChooseableFilter< SegmentTripleFilterFactory >
Belle2::TrackFindingCDC::SegmentTripleCreator::m_segmentTripleFilter
ChooseableSegmentTripleFilter m_segmentTripleFilter
The filter to be used for the segment triple generation.
Definition: SegmentTripleCreator.h:76
Belle2::TrackFindingCDC::SegmentTripleCreator::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: SegmentTripleCreator.cc:33
Belle2::TrackFindingCDC::SegmentTripleCreator::m_segmentsBySuperLayer
std::array< std::vector< const CDCSegment2D * >, ISuperLayerUtil::c_N > m_segmentsBySuperLayer
Structure for the segments grouped by super layer id.
Definition: SegmentTripleCreator.h:73
Belle2::TrackFindingCDC::SegmentTripleCreator::SegmentTripleCreator
SegmentTripleCreator()
Constructor adding the filter as a subordinary processing signal listener.
Definition: SegmentTripleCreator.cc:28
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::SegmentTripleCreator::apply
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.
Definition: SegmentTripleCreator.cc:44
Belle2::TrackFindingCDC::SegmentTripleCreator::create
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...
Definition: SegmentTripleCreator.cc:92
Belle2::TrackFindingCDC::CDCSegment2D
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:40
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::TrackFindingCDC::SegmentTripleCreator::Super
Findlet< const CDCSegment2D, const CDCAxialSegmentPair, CDCSegmentTriple > Super
Type of the base class.
Definition: SegmentTripleCreator.h:48
Belle2::TrackFindingCDC::SegmentTripleCreator::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: SegmentTripleCreator.cc:39
Belle2::TrackFindingCDC::CDCSegmentTriple
Class representing a triple of reconstructed segements in adjacent superlayer.
Definition: CDCSegmentTriple.h:42
Belle2::TrackFindingCDC::ISuperLayerUtil
This is a utility class for the free ISuperLayer type.
Definition: ISuperLayer.h:60