Belle II Software development
RelationApplier.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#include <tracking/trackingUtilities/utilities/WeightedRelation.h>
12#include <tracking/trackingUtilities/numerics/EForwardBackward.h>
13
14namespace Belle2 {
19 class RecoTrack;
20 class ModuleParamList;
21
23 class RelationApplier : public
24 TrackingUtilities::Findlet<const TrackingUtilities::WeightedRelation<const RecoTrack, const RecoTrack>> {
25 public:
28
29 void initialize() final;
30
32 void apply(const std::vector<TrackingUtilities::WeightedRelation<const RecoTrack, const RecoTrack>>& relationsCDCToSVD) final;
33
35 void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
36
37 private:
38 // Parameters
42 TrackingUtilities::EForwardBackward m_param_writeOutDirection = TrackingUtilities::EForwardBackward::c_Unknown;
44 std::string m_param_fromRelationsStoreArrayName = "CDCRecoTracks";
46 std::string m_param_toRelationsStoreArrayName = "SVDRecoTracks";
47 };
48
49}
The Module parameter list class.
This is the Reconstruction Event-Data Model Track.
Definition RecoTrack.h:79
Relate the SVD and CDC tracks in the given relations also in the store array.
void apply(const std::vector< TrackingUtilities::WeightedRelation< const RecoTrack, const RecoTrack > > &relationsCDCToSVD) final
Copy the relations to the store array.
TrackingUtilities::EForwardBackward m_param_writeOutDirection
Direction parameter converted from the string parameters.
void initialize() final
Receive and dispatch signal before the start of the event processing.
std::string m_param_fromRelationsStoreArrayName
Create relations from this store array.
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) final
Expose parameters.
std::string m_param_toRelationsStoreArrayName
Create relations to this store array.
TrackingUtilities::Findlet< const TrackingUtilities::WeightedRelation< const RecoTrack, const RecoTrack > > Super
The parent findlet.
std::string m_param_writeOutDirectionAsString
Parameter for the distance given to the framework (can not handle EForwardBackward directly)
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.