Belle II Software  release-05-01-25
TrackCreatorSingleSegments.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - 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/topology/ISuperLayer.h>
15 
16 #include <map>
17 #include <vector>
18 #include <string>
19 
20 namespace Belle2 {
26  namespace TrackFindingCDC {
27  class CDCSegment2D;
28  class CDCTrack;
29 
36  class TrackCreatorSingleSegments : public Findlet<const CDCSegment2D, CDCTrack&> {
37 
38  private:
40  using Super = Findlet<const CDCSegment2D, CDCTrack&>;
41 
42  public:
45 
47  std::string getDescription() final;
48 
50  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
51 
52  public:
54  void
55  apply(const std::vector<CDCSegment2D>& segments, std::vector<CDCTrack>& tracks) final;
56 
57  private:
66  std::map<ISuperLayer, size_t> m_param_minimalHitsBySuperLayerId;
67  };
68  }
70 }
Belle2::TrackFindingCDC::TrackCreatorSingleSegments::m_param_minimalHitsBySuperLayerId
std::map< ISuperLayer, size_t > m_param_minimalHitsBySuperLayerId
Parameter: Map of super layer ids to minimum hit number for which left over segments shall be forward...
Definition: TrackCreatorSingleSegments.h:74
Belle2::TrackFindingCDC::CDCTrack
Class representing a sequence of three dimensional reconstructed hits.
Definition: CDCTrack.h:51
Belle2::TrackFindingCDC::TrackCreatorSingleSegments::TrackCreatorSingleSegments
TrackCreatorSingleSegments()
Constructor setting up default parameters.
Definition: TrackCreatorSingleSegments.cc:23
Belle2::TrackFindingCDC::TrackCreatorSingleSegments::apply
void apply(const std::vector< CDCSegment2D > &segments, std::vector< CDCTrack > &tracks) final
Main algorithm.
Definition: TrackCreatorSingleSegments.cc:43
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::TrackCreatorSingleSegments::Super
Findlet< const CDCSegment2D, CDCTrack & > Super
Type of the base class.
Definition: TrackCreatorSingleSegments.h:48
Belle2::TrackFindingCDC::TrackCreatorSingleSegments::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Definition: TrackCreatorSingleSegments.cc:33
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::TrackCreatorSingleSegments::getDescription
std::string getDescription() final
Short description of the findlet.
Definition: TrackCreatorSingleSegments.cc:28