Belle II Software development
RecoTrackRelator.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/ckf/svd/findlets/RecoTrackRelator.h>
9#include <tracking/ckf/svd/entities/CKFToSVDResult.h>
10#include <tracking/dataobjects/RecoTrack.h>
11
12#include <tracking/trackFindingCDC/filters/base/ChooseableFilter.icc.h>
13#include <framework/core/ModuleParamList.h>
14
15using namespace Belle2;
16
18{
20}
21
22void RecoTrackRelator::exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix)
23{
24 m_overlapFilter.exposeParameters(moduleParamList, prefix);
25}
26
27void RecoTrackRelator::apply(const std::vector<CKFToSVDResult>& results,
29{
30 for (const CKFToSVDResult& result : results) {
31 const TrackFindingCDC::Weight weight = m_overlapFilter(result);
32 if (not std::isnan(weight)) {
33 const RecoTrack* relatedSVDTrack = result.getRelatedSVDRecoTrack();
34 relationsCDCToSVD.emplace_back(result.getSeed(), weight, relatedSVDTrack);
35 }
36 }
37}
Specialized CKF Result for extrapolating into the SVD.
The Module parameter list class.
ChooseableSVDResultFilter m_overlapFilter
Filter for the results.
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)
RecoTrackRelator()
Add the sub findelts as listener.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the parameters of the sub findlet.
This is the Reconstruction Event-Data Model Track.
Definition: RecoTrack.h:79
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose the set of parameters of the filter to the module parameter list.
void addProcessingSignalListener(ProcessingSignalListener *psl)
Register a processing signal listener to be notified.
Type for two related objects with a weight.
Abstract base class for different kinds of events.