Belle II Software development
MonopoleStereoHitFinderQuadratic.cc
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#include <tracking/trackFindingCDC/findlets/combined/MonopoleStereoHitFinderQuadratic.h>
9
10#include <tracking/trackingUtilities/eventdata/hits/CDCWireHit.h>
11#include <tracking/trackingUtilities/eventdata/tracks/CDCTrack.h>
12
13#include <tracking/trackingUtilities/filters/base/ChooseableFilter.icc.h>
14
15using namespace Belle2;
16using namespace TrackFindingCDC;
17using namespace TrackingUtilities;
18
20
31
33{
34 return "Tries to add monopole CDC stereo hits to the found CDC tracks by applying a histogramming method with a quad tree.\n"
35 "WARNING This findlet is kept here just in case hyperbolic one misbehaves and eats up too much RAM\n"
36 "If it doesn't, this one should be removed around release-05 or earlier";
37}
38
46
47void MonopoleStereoHitFinderQuadratic::exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix)
48{
49 Super::exposeParameters(moduleParamList, prefix);
50
51 m_rlWireHitCreator.exposeParameters(moduleParamList, prefix);
52 m_matcher.exposeParameters(moduleParamList, prefix);
53 m_filterSelector.exposeParameters(moduleParamList, prefix);
54 m_singleMatchSelector.exposeParameters(moduleParamList, prefix);
55 m_adder.exposeParameters(moduleParamList, prefix);
56 m_inspector.exposeParameters(moduleParamList, prefix);
57// m_szFitter.exposeParameters(moduleParamList, prefix);
58}
59
60void MonopoleStereoHitFinderQuadratic::apply(std::vector<CDCWireHit>& inputWireHits, std::vector<CDCTrack>& tracks)
61{
62 m_rlTaggedWireHits.reserve(2 * inputWireHits.size());
63 m_relations.reserve(2 * inputWireHits.size() * tracks.size());
64
65 m_rlWireHitCreator.apply(inputWireHits, m_rlTaggedWireHits);
67// m_filterSelector.apply(m_relations);
69 m_adder.apply(m_relations);
70 m_inspector.apply(tracks);
71
72 for (auto track : tracks)
73 track.sortByArcLength2D();
74// m_szFitter.apply(tracks);
75}
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
Vector holding all possible wire hits with all possible RL combinations.
TrackInspector m_inspector
Print found tracks if requested in module options.
std::string getDescription() final
Short description of the findlet.
MonopoleStereoHitFinderQuadratic()
Constructor registering the subordinary findlets to the processing signal distribution machinery.
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)
Findlet< TrackingUtilities::CDCWireHit &, TrackingUtilities::CDCTrack & > Super
Type of the base class.
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.
StereoHitTrackQuadTreeMatcher< HitQuadraticLegendre > m_matcher
Find matching hits to a track.
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.
Convenvience wrapper to setup a Chooseable filter from a specific factory object.
Abstract base class for different kinds of events.