Belle II Software  release-05-02-19
SegmentTrackAdderWithNormalization.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2016 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Nils Braun *
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/collectors/selectors/SingleMatchSelector.h>
15 #include <tracking/trackFindingCDC/findlets/minimal/TrackNormalizer.h>
16 
17 #include <tracking/trackFindingCDC/utilities/WeightedRelation.h>
18 #include <tracking/trackFindingCDC/utilities/HitComperator.h>
19 
20 #include <vector>
21 
22 namespace Belle2 {
27  namespace TrackFindingCDC {
28  class CDCTrack;
29  class CDCSegment2D;
30  class CDCRecoHit3D;
31 
36  class SegmentTrackAdderWithNormalization
37  : public Findlet<WeightedRelation<CDCTrack, const CDCSegment2D>&, CDCTrack&, const CDCSegment2D> {
38 
39  private:
41  using Super = Findlet<WeightedRelation<CDCTrack, const CDCSegment2D>&, CDCTrack&, const CDCSegment2D>;
42 
43  public:
46 
48  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) override;
49 
51  std::string getDescription() override;
52 
54  void apply(std::vector<WeightedRelation<CDCTrack, const CDCSegment2D>>& relations,
55  std::vector<CDCTrack>& tracks, const std::vector<CDCSegment2D>& segment) override;
56 
57  private:
58  // Parameters
61 
62  // Findlets
65 
68  };
69  }
71 }
Belle2::TrackFindingCDC::SegmentTrackAdderWithNormalization::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub-findlets.
Definition: SegmentTrackAdderWithNormalization.cc:31
Belle2::TrackFindingCDC::SegmentTrackAdderWithNormalization::m_singleHitSelector
SingleMatchSelector< CDCTrack, CDCRecoHit3D, HitComperator > m_singleHitSelector
The selector for finding the track each hit should belong to.
Definition: SegmentTrackAdderWithNormalization.h:72
Belle2::TrackFindingCDC::SegmentTrackAdderWithNormalization::Super
Findlet< WeightedRelation< CDCTrack, const CDCSegment2D > &, CDCTrack &, const CDCSegment2D > Super
Type of the base class.
Definition: SegmentTrackAdderWithNormalization.h:49
Belle2::TrackFindingCDC::SegmentTrackAdderWithNormalization::m_param_removeUnmatchedSegments
bool m_param_removeUnmatchedSegments
Parameter : Swtich to remove hits in segments that have no matching track from all tracks.
Definition: SegmentTrackAdderWithNormalization.h:68
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackFindingCDC::SingleMatchSelector
Selector to remove all relations in the list, which share the same collection item - except one in ca...
Definition: SingleMatchSelector.h:54
Belle2::TrackFindingCDC::SegmentTrackAdderWithNormalization::m_trackNormalizer
TrackNormalizer m_trackNormalizer
Findlet for performing the normalization of the tracks afterwards.
Definition: SegmentTrackAdderWithNormalization.h:75
Belle2::TrackFindingCDC::SegmentTrackAdderWithNormalization::getDescription
std::string getDescription() override
Short description of the findlet.
Definition: SegmentTrackAdderWithNormalization.cc:41
Belle2::TrackFindingCDC::WeightedRelation
Type for two related objects with a weight.
Definition: CDCSegment2D.h:36
Belle2::TrackFindingCDC::SegmentTrackAdderWithNormalization::apply
void apply(std::vector< WeightedRelation< CDCTrack, const CDCSegment2D >> &relations, std::vector< CDCTrack > &tracks, const std::vector< CDCSegment2D > &segment) override
Apply the findlet.
Definition: SegmentTrackAdderWithNormalization.cc:47
Belle2::TrackFindingCDC::TrackNormalizer
Findlet for normalizing the track (trajectory) into common requirements (e.g. let it start at the fir...
Definition: TrackNormalizer.h:32
Belle2::TrackFindingCDC::SegmentTrackAdderWithNormalization::SegmentTrackAdderWithNormalization
SegmentTrackAdderWithNormalization()
Constructor for registering the sub-findlets.
Definition: SegmentTrackAdderWithNormalization.cc:24