Belle II Software  release-08-01-10
AxialTrackHitMigrator.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 <vector>
13 #include <string>
14 
15 namespace Belle2 {
22  namespace TrackFindingCDC {
23  class CDCWireHit;
24  class CDCTrack;
25 
27  class AxialTrackHitMigrator : public Findlet<const CDCWireHit* const, CDCTrack> {
28 
29  private:
32 
33  public:
35  std::string getDescription() final;
36 
38  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
39 
41  void apply(const std::vector<const CDCWireHit*>& axialWireHits,
42  std::vector<CDCTrack>& axialTracks) final;
43 
44  private:
46  double m_param_dropDistance = 0.20;
47 
49  double m_param_addDistance = 0.25;
50  };
51  }
53 }
The Module parameter list class.
Exchanges hits between axial tracks based on their distance to the respective trajectory.
double m_param_addDistance
Parameter : Distance for a hit to be added.
std::string getDescription() final
Short description of the findlet.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
double m_param_dropDistance
Parameter : Distance for a hit to be removed.
void apply(const std::vector< const CDCWireHit * > &axialWireHits, std::vector< CDCTrack > &axialTracks) final
Do the hit migration.
Class representing a sequence of three dimensional reconstructed hits.
Definition: CDCTrack.h:41
Class representing a hit wire in the central drift chamber.
Definition: CDCWireHit.h:55
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition: Findlet.h:26
Abstract base class for different kinds of events.