Belle II Software development
SegmentTrackAdderWithNormalization.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/collectors/selectors/SingleMatchSelector.h>
13#include <tracking/trackFindingCDC/findlets/minimal/TrackNormalizer.h>
14
15#include <tracking/trackFindingCDC/utilities/WeightedRelation.h>
16#include <tracking/trackFindingCDC/utilities/HitComperator.h>
17
18#include <vector>
19
20namespace Belle2 {
25 namespace TrackFindingCDC {
26 class CDCTrack;
27 class CDCSegment2D;
28 class CDCRecoHit3D;
29
35 : public Findlet<WeightedRelation<CDCTrack, const CDCSegment2D>&, CDCTrack&, const CDCSegment2D> {
36
37 private:
40
41 public:
44
46 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) override;
47
49 std::string getDescription() override;
50
52 void apply(std::vector<WeightedRelation<CDCTrack, const CDCSegment2D>>& relations,
53 std::vector<CDCTrack>& tracks, const std::vector<CDCSegment2D>& segment) override;
54
55 private:
56 // Parameters
59
60 // Findlets
63
66 };
67 }
69}
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
Add the matched segments to the tracks and normalize the tracks afterwards.
void apply(std::vector< WeightedRelation< CDCTrack, const CDCSegment2D > > &relations, std::vector< CDCTrack > &tracks, const std::vector< CDCSegment2D > &segment) override
Apply the findlet.
std::string getDescription() override
Short description of the findlet.
TrackNormalizer m_trackNormalizer
Findlet for performing the normalization of the tracks afterwards.
SingleMatchSelector< CDCTrack, CDCRecoHit3D, HitComperator > m_singleHitSelector
The selector for finding the track each hit should belong to.
bool m_param_removeUnmatchedSegments
Parameter : Switch to remove hits in segments that have no matching track from all tracks.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub-findlets.
SegmentTrackAdderWithNormalization()
Constructor for registering the sub-findlets.
Selector to remove all relations in the list, which share the same collection item - except one in ca...
Findlet for normalizing the track (trajectory) into common requirements (e.g. let it start at the fir...
Type for two related objects with a weight.
Abstract base class for different kinds of events.