Belle II Software  release-05-01-25
RecoTrackRelator.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - 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 #include <tracking/ckf/svd/findlets/RecoTrackRelator.h>
11 #include <tracking/ckf/svd/entities/CKFToSVDResult.h>
12 #include <tracking/dataobjects/RecoTrack.h>
13 
14 #include <tracking/trackFindingCDC/filters/base/ChooseableFilter.icc.h>
15 #include <framework/core/ModuleParamList.h>
16 
17 using namespace Belle2;
18 
20 {
22 }
23 
24 void RecoTrackRelator::exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix)
25 {
26  m_overlapFilter.exposeParameters(moduleParamList, prefix);
27 }
28 
29 void RecoTrackRelator::apply(const std::vector<CKFToSVDResult>& results,
31 {
32  for (const CKFToSVDResult& result : results) {
33  const TrackFindingCDC::Weight weight = m_overlapFilter(result);
34  if (not std::isnan(weight)) {
35  const RecoTrack* relatedSVDTrack = result.getRelatedSVDRecoTrack();
36  relationsCDCToSVD.emplace_back(result.getSeed(), weight, relatedSVDTrack);
37  }
38  }
39 }
Belle2::RecoTrackRelator::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters of the sub findlet.
Definition: RecoTrackRelator.cc:24
Belle2::TrackFindingCDC::CompositeProcessingSignalListener::addProcessingSignalListener
void addProcessingSignalListener(ProcessingSignalListener *psl)
Register a processing signal listener to be notified.
Definition: CompositeProcessingSignalListener.cc:57
Belle2::RecoTrack
This is the Reconstruction Event-Data Model Track.
Definition: RecoTrack.h:78
Belle2::RecoTrackRelator::m_overlapFilter
ChooseableSVDResultFilter m_overlapFilter
Filter for the results.
Definition: RecoTrackRelator.h:59
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::CKFToSVDResult
Specialized CKF Result for extrapolating into the SVD.
Definition: CKFToSVDResult.h:33
Belle2::TrackFindingCDC::Chooseable::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the set of parameters of the filter to the module parameter list.
Definition: ChooseableFilter.icc.h:58
Belle2::TrackFindingCDC::WeightedRelation
Type for two related objects with a weight.
Definition: CDCSegment2D.h:36
Belle2::RecoTrackRelator::apply
void apply(const std::vector< CKFToSVDResult > &results, std::vector< TrackFindingCDC::WeightedRelation< const RecoTrack, const RecoTrack >> &relationsCDCToSVD) final
Create relations between tracks from the results (applying a filter)
Definition: RecoTrackRelator.cc:29
Belle2::ModuleParamList
The Module parameter list class.
Definition: ModuleParamList.h:46
Belle2::RecoTrackRelator::RecoTrackRelator
RecoTrackRelator()
Add the sub findelts as listener.
Definition: RecoTrackRelator.cc:19