Belle II Software development
TrackCreatorSingleSegments.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/topology/ISuperLayer.h>
13
14#include <map>
15#include <vector>
16#include <string>
17
18namespace Belle2 {
24 namespace TrackFindingCDC {
25 class CDCSegment2D;
26 class CDCTrack;
27
34 class TrackCreatorSingleSegments : public Findlet<const CDCSegment2D, CDCTrack&> {
35
36 private:
39
40 public:
43
45 std::string getDescription() final;
46
48 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
49
50 public:
52 void
53 apply(const std::vector<CDCSegment2D>& segments, std::vector<CDCTrack>& tracks) final;
54
55 private:
64 std::map<ISuperLayer, size_t> m_param_minimalHitsBySuperLayerId;
65 };
66 }
68}
The Module parameter list class.
A reconstructed sequence of two dimensional hits in one super layer.
Definition: CDCSegment2D.h:39
Class representing a sequence of three dimensional reconstructed hits.
Definition: CDCTrack.h:41
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
Searches for segments that have not been used at all and creates tracks from them.
TrackCreatorSingleSegments()
Constructor setting up default parameters.
void apply(const std::vector< CDCSegment2D > &segments, std::vector< CDCTrack > &tracks) final
Main algorithm.
std::string getDescription() final
Short description of the findlet.
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...
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
Abstract base class for different kinds of events.
STL namespace.