Belle II Software  release-05-02-19
TrackLoader.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 
14 #include <tracking/ckf/general/findlets/TrackFitterAndDeleter.h>
15 #include <tracking/trackFindingCDC/numerics/EForwardBackward.h>
16 #include <framework/datastore/StoreArray.h>
17 
18 #include <string>
19 #include <vector>
20 
21 namespace Belle2 {
26  class RecoTrack;
27 
28  class ModuleParamList;
29 
38  class TrackLoader : public TrackFindingCDC::Findlet<RecoTrack*> {
40  using Super = TrackFindingCDC::Findlet<RecoTrack*>;
41 
42  public:
44  TrackLoader();
45 
47  void exposeParameters(ModuleParamList* moduleParamList, const std::string& prefix) override;
48 
50  void initialize() override;
51 
53  void apply(std::vector<RecoTrack*>& seeds) override;
54 
55  private:
56  // Findlets
59 
60  // Parameters
62  std::string m_param_relationRecoTrackStoreArrayName = "RecoTracks";
64  std::string m_param_inputRecoTrackStoreArrayName = "RecoTracks";
68  std::string m_param_relationCheckForDirectionAsString = "invalid";
70  TrackFindingCDC::EForwardBackward m_param_relationCheckForDirection = TrackFindingCDC::EForwardBackward::c_Unknown;
71 
72 
73  // Store Arrays
77  bool m_noCDChits = false;
78  };
80 }
Belle2::TrackLoader::m_param_inputRecoTrackStoreArrayName
std::string m_param_inputRecoTrackStoreArrayName
StoreArray name of the input Track Store Array.
Definition: TrackLoader.h:72
Belle2::TrackLoader::m_trackFitter
TrackFitterAndDeleter m_trackFitter
Findlet for fitting the tracks.
Definition: TrackLoader.h:66
Belle2::TrackLoader::Super
TrackFindingCDC::Findlet< RecoTrack * > Super
Parent class.
Definition: TrackLoader.h:48
Belle2::TrackLoader::m_param_relationRecoTrackStoreArrayName
std::string m_param_relationRecoTrackStoreArrayName
StoreArray name of the output Track Store Array.
Definition: TrackLoader.h:70
Belle2::TrackFindingCDC::NForwardBackward::EForwardBackward
EForwardBackward
Enumeration to represent the distinct possibilities of the right left passage information.
Definition: EForwardBackward.h:35
Belle2::TrackLoader::m_noCDChits
bool m_noCDChits
Ignore tracks with CDC hits attached.
Definition: TrackLoader.h:85
Belle2::TrackLoader::TrackLoader
TrackLoader()
Add the subfindlets.
Definition: TrackLoader.cc:21
Belle2::TrackLoader::apply
void apply(std::vector< RecoTrack * > &seeds) override
Load in the reco tracks and the hits.
Definition: TrackLoader.cc:70
Belle2::TrackLoader::initialize
void initialize() override
Create the store arrays.
Definition: TrackLoader.cc:54
Belle2::TrackLoader::m_param_relationCheckForDirectionAsString
std::string m_param_relationCheckForDirectionAsString
Parameter for the distance given to the framework (can not handle EForwardBackward directly)
Definition: TrackLoader.h:76
Belle2::TrackLoader::m_inputRecoTracks
StoreArray< RecoTrack > m_inputRecoTracks
Output Reco Tracks Store Array.
Definition: TrackLoader.h:83
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TrackLoader::m_param_minimalPtRequirement
double m_param_minimalPtRequirement
Minimal pt requirement.
Definition: TrackLoader.h:74
Belle2::TrackLoader::exposeParameters
void exposeParameters(ModuleParamList *moduleParamList, const std::string &prefix) override
Expose the parameters of the sub findlets.
Definition: TrackLoader.cc:26
Belle2::TrackLoader::m_param_relationCheckForDirection
TrackFindingCDC::EForwardBackward m_param_relationCheckForDirection
Direction parameter converted from the string parameters.
Definition: TrackLoader.h:78
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::TrackFitterAndDeleter
Findlet to fit tracks and remove all non fitted ones.
Definition: TrackFitterAndDeleter.h:31