Belle II Software  release-05-02-19
BaseRecoFitterModule.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - 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 <framework/core/Module.h>
13 #include <string>
14 
15 namespace genfit {
16  class AbsFitter;
17 }
18 
19 
20 namespace Belle2 {
27  class BaseRecoFitterModule : public Module {
28 
29  public:
34 
38  void initialize() override;
39 
43  void event() override;
44 
45 
46  protected:
56  virtual std::shared_ptr<genfit::AbsFitter> createFitter() const = 0;
57 
58  private:
60  std::string m_param_recoTracksStoreArrayName = "RecoTracks";
72  std::vector<unsigned int> m_param_pdgCodesToUseForFitting = {211};
74  bool m_param_resortHits = false;
79  };
81 }
82 
Belle2::BaseRecoFitterModule::BaseRecoFitterModule
BaseRecoFitterModule()
Constructor.
Definition: BaseRecoFitterModule.cc:26
Belle2::BaseRecoFitterModule::m_param_eklmHitsStoreArrayName
std::string m_param_eklmHitsStoreArrayName
StoreArray name of the EKLM hits.
Definition: BaseRecoFitterModule.h:70
genfit
Defines for I/O streams used for error and debug printing.
Definition: AlignablePXDRecoHit.h:19
Belle2::BaseRecoFitterModule::m_param_resortHits
bool m_param_resortHits
Resort the hits while fitting.
Definition: BaseRecoFitterModule.h:74
Belle2::BaseRecoFitterModule::initialize
void initialize() override
Initialize the store ararys and check for the material effects.
Definition: BaseRecoFitterModule.cc:61
Belle2::BaseRecoFitterModule::createFitter
virtual std::shared_ptr< genfit::AbsFitter > createFitter() const =0
Method to create the used filter.
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::BaseRecoFitterModule::m_param_pxdHitsStoreArrayName
std::string m_param_pxdHitsStoreArrayName
StoreArray name of the PXD hits.
Definition: BaseRecoFitterModule.h:62
Belle2::BaseRecoFitterModule::event
void event() override
Do the fitting using the created fitter.
Definition: BaseRecoFitterModule.cc:78
Belle2::BaseRecoFitterModule::m_param_recoTracksStoreArrayName
std::string m_param_recoTracksStoreArrayName
StoreArray name of the input and output reco tracks.
Definition: BaseRecoFitterModule.h:60
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::BaseRecoFitterModule::m_param_pdgCodesToUseForFitting
std::vector< unsigned int > m_param_pdgCodesToUseForFitting
Use these particle hypotheses for fitting.
Definition: BaseRecoFitterModule.h:72
Belle2::BaseRecoFitterModule::m_param_cdcHitsStoreArrayName
std::string m_param_cdcHitsStoreArrayName
StoreArray name of the CDC hits.
Definition: BaseRecoFitterModule.h:66
Belle2::BaseRecoFitterModule
A base class for all modules that implement a fitter for reco tracks.
Definition: BaseRecoFitterModule.h:27
Belle2::BaseRecoFitterModule::m_param_svdHitsStoreArrayName
std::string m_param_svdHitsStoreArrayName
StoreArray name of the SVD hits.
Definition: BaseRecoFitterModule.h:64
Belle2::BaseRecoFitterModule::m_param_bklmHitsStoreArrayName
std::string m_param_bklmHitsStoreArrayName
StoreArray name of the BKLM hits.
Definition: BaseRecoFitterModule.h:68
Belle2::BaseRecoFitterModule::m_param_initializeCDCTranslators
bool m_param_initializeCDCTranslators
Configures whether the CDC Translators should be initialized by the FitterModule especially useful fo...
Definition: BaseRecoFitterModule.h:78