Belle II Software development
MonopoleStereoHitFinder.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/findlets/minimal/RLTaggedWireHitCreator.h>
13
14#include <tracking/trackFindingCDC/collectors/matchers/StereoHitTrackQuadTreeMatcher.h>
15#include <tracking/trackingUtilities/collectors/selectors/SingleMatchSelector.h>
16#include <tracking/trackingUtilities/collectors/selectors/FilterSelector.h>
17#include <tracking/trackFindingCDC/collectors/adders/StereoHitTrackAdder.h>
18
19#include <tracking/trackingUtilities/filters/base/ChooseableFilter.dcl.h>
20#include <tracking/trackFindingCDC/filters/stereoHits/StereoHitFilterFactory.h>
21#include <tracking/trackingUtilities/utilities/HitComperator.h>
22
23#include <tracking/trackFindingCDC/hough/hyperbolic/HitHyperHough.h>
24#include <tracking/trackFindingCDC/findlets/minimal/TrackInspector.h>
25
26#include <vector>
27
28namespace Belle2 {
33 namespace TrackingUtilities {
34 class CDCTrack;
35 class CDCWireHit;
36 }
37 namespace TrackFindingCDC {
38
45 class MonopoleStereoHitFinder : public TrackingUtilities::Findlet<TrackingUtilities::CDCWireHit&, TrackingUtilities::CDCTrack&> {
46
47 private:
50
51 public:
54
56 std::string getDescription() final;
57
59 void beginEvent() final;
60
62 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
63
65 void apply(std::vector<TrackingUtilities::CDCWireHit>& inputWireHits, std::vector<TrackingUtilities::CDCTrack>& tracks) final;
66
67 private:
68 // Findlets
74 TrackingUtilities::FilterSelector<TrackingUtilities::CDCTrack, TrackingUtilities::CDCRLWireHit, TrackingUtilities::ChooseableFilter<StereoHitFilterFactory>>
77 TrackingUtilities::SingleMatchSelector<TrackingUtilities::CDCTrack, TrackingUtilities::CDCRLWireHit, TrackingUtilities::HitComperator>
84// TrackSZFitter m_szFitter;
85
86 // Object pools
88 std::vector<TrackingUtilities::CDCRLWireHit> m_rlTaggedWireHits;
90 std::vector<TrackingUtilities::WeightedRelation<TrackingUtilities::CDCTrack, const TrackingUtilities::CDCRLWireHit>> m_relations;
91 };
92 }
94}
The Module parameter list class.
TrackingUtilities::FilterSelector< TrackingUtilities::CDCTrack, TrackingUtilities::CDCRLWireHit, TrackingUtilities::ChooseableFilter< StereoHitFilterFactory > > m_filterSelector
Filter for the Stereo Hits added to the track.
std::vector< TrackingUtilities::CDCRLWireHit > m_rlTaggedWireHits
Fit the tracks after creation TODO the fitter obviously should be different.
TrackingUtilities::Findlet< TrackingUtilities::CDCWireHit &, TrackingUtilities::CDCTrack & > Super
Type of the base class.
StereoHitTrackAdder m_adder
Add the hits to the tracks.
void beginEvent() final
Signal the beginning of a new event.
std::string getDescription() final
Short description of the findlet.
TrackingUtilities::SingleMatchSelector< TrackingUtilities::CDCTrack, TrackingUtilities::CDCRLWireHit, TrackingUtilities::HitComperator > m_singleMatchSelector
Select only those where the relation is unique (or the best one in those groups)
std::vector< TrackingUtilities::WeightedRelation< TrackingUtilities::CDCTrack, const TrackingUtilities::CDCRLWireHit > > m_relations
Vector of relations between tracks and hits.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters to a module.
MonopoleStereoHitFinder()
Constructor registering the subordinary findlets to the processing signal distribution machinery.
void apply(std::vector< TrackingUtilities::CDCWireHit > &inputWireHits, std::vector< TrackingUtilities::CDCTrack > &tracks) final
Generates the segment from wire hits.
RLTaggedWireHitCreator m_rlWireHitCreator
Create RL wire hits out of the wire hits.
StereoHitTrackQuadTreeMatcher< HitHyperHough > m_matcher
Find matching hits to a track.
Findlet for creating a list of RLWireHits (always bot hypothesis) from a list of WireHits using only ...
Factory that can create appropriate stereo hit to track combination filters from associated names.
Class to add the matched hits to the track and set the taken flag correctly.
A matcher algorithm for using a stereo quad tree for matching rl tagged wire hits to tracks.
Findlet for inspecting and printing out CDCtracks on a R-z plane for debug purposes.
Class representing a sequence of three dimensional reconstructed hits.
Definition CDCTrack.h:39
Class representing a hit wire in the central drift chamber.
Definition CDCWireHit.h:58
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.