Belle II Software development
BaseRecoFitterModule.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 <framework/core/Module.h>
11#include <framework/datastore/StoreArray.h>
12#include <tracking/dataobjects/RecoTrack.h>
13#include <string>
14
15namespace genfit {
16 class AbsFitter;
17}
18
19
20namespace Belle2 {
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 bool m_correctSeedCharge = false;
82
84 };
86}
87
A base class for all modules that implement a fitter for reco tracks.
std::string m_param_bklmHitsStoreArrayName
StoreArray name of the BKLM hits.
bool m_param_resortHits
Resort the hits while fitting.
std::vector< unsigned int > m_param_pdgCodesToUseForFitting
Use these particle hypotheses for fitting.
std::string m_param_pxdHitsStoreArrayName
StoreArray name of the PXD hits.
void initialize() override
Initialize the store ararys and check for the material effects.
void event() override
Do the fitting using the created fitter.
virtual std::shared_ptr< genfit::AbsFitter > createFitter() const =0
Method to create the used filter.
std::string m_param_eklmHitsStoreArrayName
StoreArray name of the EKLM hits.
bool m_correctSeedCharge
if true resets the charge seed of the RecoTrack if track fit prefers the other charge
std::string m_param_recoTracksStoreArrayName
StoreArray name of the input and output reco tracks.
std::string m_param_svdHitsStoreArrayName
StoreArray name of the SVD hits.
std::string m_param_cdcHitsStoreArrayName
StoreArray name of the CDC hits.
StoreArray< RecoTrack > m_recoTracks
RecoTracks StoreArray.
bool m_param_initializeCDCTranslators
Configures whether the CDC Translators should be initialized by the FitterModule especially useful fo...
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.