Belle II Software development
SegmentAliasResolver.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/trackingUtilities/findlets/base/Findlet.h>
11
12#include <tracking/trackFindingCDC/fitting/CDCRiemannFitter.h>
13
14#include <tracking/trackFindingCDC/eventdata/utils/DriftLengthEstimator.h>
15
16#include <vector>
17#include <string>
18
19namespace Belle2 {
24
25 namespace TrackingUtilities {
26 class CDCSegment2D;
27 }
28 namespace TrackFindingCDC {
29
31 class SegmentAliasResolver : public TrackingUtilities::Findlet<TrackingUtilities::CDCSegment2D&> {
32
33 private:
36
37 public:
39 std::string getDescription() final;
40
42 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
43
45 void initialize() final;
46
47 public:
49 void apply(std::vector<TrackingUtilities::CDCSegment2D>& outputSegments) final;
50
51 private:
53 void refit(TrackingUtilities::CDCSegment2D& segment, bool reestimate);
54
55 private:
57 std::vector<std::string> m_param_investigateAlias = { /*"full",*/ "cross", "borders", /*"middle"*/};
58
60 bool m_fullAlias = false; // Activated by the parameter
61
63 bool m_crossAliases = false; // Activated by the parameter
64
66 bool m_borderAliases = false; // Activated by the parameter
67
69 bool m_middleAliases = false; // Activated by the parameter
70
73
76
79
82 };
83 }
85}
The Module parameter list class.
Class implementing the Riemann fit for two dimensional trajectory circle.
Resolves between the potential alias versions of the segments and contained hits.
DriftLengthEstimator m_driftLengthEstimator
Instance of the drift length estimator to be used.
TrackingUtilities::Findlet< TrackingUtilities::CDCSegment2D & > Super
Type of the base class.
bool m_middleAliases
Switch whether the hits in the middle with lowest drift radius should be aliased.
void apply(std::vector< TrackingUtilities::CDCSegment2D > &outputSegments) final
Main algorithm applying the fit to each segment.
void initialize() final
Signals the beginning of the event processing.
bool m_param_reestimatePositions
Parameter : Switch to restimate the reconstructed positions with a pass of facets.
std::vector< std::string > m_param_investigateAlias
Parameter : Which alias resolutions should be applied.
bool m_param_reestimateDriftLength
Parameter : Switch to reestimate the drift length before each fit.
void refit(TrackingUtilities::CDCSegment2D &segment, bool reestimate)
Fit the alias segment.
bool m_fullAlias
Switch whether the complete segment should be aliased.
std::string getDescription() final
Short description of the findlet.
bool m_borderAliases
Switch whether the border hits at the beginning and the end should be aliased.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
CDCRiemannFitter m_riemannFitter
Instance of the riemann fitter to be used.
bool m_crossAliases
Switch whether the segment should be aliased at the waist where an rl side switch was missed.
A reconstructed sequence of two dimensional hits in one super layer.
Interface for a minimal algorithm part that wants to expose some parameters to a module.
Definition Findlet.h:26
STL class.
Abstract base class for different kinds of events.
STL namespace.
Helper construct implementing the (re)estimation of the drift length for various hit objects.