Belle II Software  release-05-01-25
ResultStorer.dcl.h
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 #pragma once
11 
12 #include <tracking/trackFindingCDC/findlets/base/Findlet.h>
13 #include <tracking/trackFindingCDC/numerics/EForwardBackward.h>
14 #include <framework/datastore/StoreArray.h>
15 
16 #include <string>
17 #include <vector>
18 
19 namespace Belle2 {
24  class ModuleParamList;
25 
29  template <class AResult>
30  class ResultStorer : public TrackFindingCDC::Findlet<AResult> {
32  using Super = TrackFindingCDC::Findlet<AResult>;
33 
34  public:
36  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) override;
37 
39  void initialize() override;
40 
42  void apply(std::vector<AResult>& results) override;
43 
44  private:
45  // Parameters
47  std::string m_param_writeOutDirectionAsString = "both";
49  TrackFindingCDC::EForwardBackward m_param_writeOutDirection = TrackFindingCDC::EForwardBackward::c_Unknown;
51  bool m_param_exportTracks = true;
53  std::string m_param_outputRecoTrackStoreArrayName = "CKFRecoTracks";
56 
57  // Store Arrays
60  };
62 }
Belle2::ResultStorer::m_param_writeOutDirectionAsString
std::string m_param_writeOutDirectionAsString
Parameter for the distance given to the framework (can not handle EForwardBackward directly)
Definition: ResultStorer.dcl.h:55
Belle2::ResultStorer::m_param_outputRelationRecoTrackStoreArrayName
std::string m_param_outputRelationRecoTrackStoreArrayName
StoreArray name of the tracks, the output reco tracks should be related to.
Definition: ResultStorer.dcl.h:63
Belle2::ResultStorer::initialize
void initialize() override
Create the store arrays.
Definition: ResultStorer.icc.h:55
Belle2::ResultStorer::m_param_exportTracks
bool m_param_exportTracks
Export the tracks or not.
Definition: ResultStorer.dcl.h:59
Belle2::TrackFindingCDC::NForwardBackward::EForwardBackward
EForwardBackward
Enumeration to represent the distinct possibilities of the right left passage information.
Definition: EForwardBackward.h:35
Belle2::ResultStorer::Super
TrackFindingCDC::Findlet< AResult > Super
Parent class.
Definition: ResultStorer.dcl.h:40
Belle2::ResultStorer::apply
void apply(std::vector< AResult > &results) override
Load in the reco tracks and the hits.
Definition: ResultStorer.icc.h:74
Belle2::ResultStorer::m_param_outputRecoTrackStoreArrayName
std::string m_param_outputRecoTrackStoreArrayName
StoreArray name of the output Track Store Array.
Definition: ResultStorer.dcl.h:61
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ResultStorer::m_outputRecoTracks
StoreArray< RecoTrack > m_outputRecoTracks
Output Reco Tracks Store Array.
Definition: ResultStorer.dcl.h:67
Belle2::ResultStorer::m_param_writeOutDirection
TrackFindingCDC::EForwardBackward m_param_writeOutDirection
Direction parameter converted from the string parameters.
Definition: ResultStorer.dcl.h:57
Belle2::ResultStorer::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub findlets.
Definition: ResultStorer.icc.h:35
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33