Belle II Software  release-08-01-10
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/trackFindingCDC/findlets/base/Findlet.h>
11 #include <tracking/trackFindingCDC/utilities/WeightedRelation.h>
12 #include <tracking/trackFindingCDC/numerics/EForwardBackward.h>
13 
14 namespace Belle2 {
19  class RecoTrack;
20  class ModuleParamList;
21 
23  class RelationApplier : public TrackFindingCDC::Findlet<const TrackFindingCDC::WeightedRelation<const RecoTrack, const RecoTrack>> {
24  public:
27 
28  void initialize() final;
29 
31  void apply(const std::vector<TrackFindingCDC::WeightedRelation<const RecoTrack, const RecoTrack>>& relationsCDCToSVD) final;
32 
34  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) final;
35 
36  private:
37  // Parameters
39  std::string m_param_writeOutDirectionAsString = "both";
41  TrackFindingCDC::EForwardBackward m_param_writeOutDirection = TrackFindingCDC::EForwardBackward::c_Unknown;
43  std::string m_param_fromRelationsStoreArrayName = "CDCRecoTracks";
45  std::string m_param_toRelationsStoreArrayName = "SVDRecoTracks";
46  };
48 }
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 initialize() final
Receive 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.
void apply(const std::vector< TrackFindingCDC::WeightedRelation< const RecoTrack, const RecoTrack >> &relationsCDCToSVD) final
Copy the relations to the store array.
TrackFindingCDC::EForwardBackward m_param_writeOutDirection
Direction parameter converted from the string parameters.
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
Abstract base class for different kinds of events.