9 #include <tracking/modules/fitter/DAFRecoFitterModule.h>
10 #include <tracking/trackFitting/fitter/base/TrackFitter.h>
18 setDescription(
"DAF Fitter using Genfit. If you have TrackCands, you have to convert them to RecoTracks"
19 "using the RecoTrackCreatorModule first. After that, you probably want to add the measurements from the"
20 "hits using the MeasurementCreatorModule.");
22 addParam(
"probCut", m_param_probabilityCut,
23 "Probability cut for the DAF. Any value between 0 and 1 is possible. Common values are between 0.01 and 0.001",
26 addParam(
"numberOfFailedHits", m_param_maxNumberOfFailedHits,
29 addParam(
"deltaPvalue", m_param_deltaPValue,
30 "If the difference in p-value between two DAF iterations is smaller than this value, the iterative procedure will be terminated early.",
43 std::shared_ptr<genfit::DAF> fitter = std::make_shared<genfit::DAF>(
true,
m_param_deltaPValue);
52 return std::shared_ptr<genfit::DAF>(
nullptr);
A base class for all modules that implement a fitter for reco tracks.
int m_param_maxNumberOfFailedHits
Maximum number of failed hits before aborting the fit.
double m_param_deltaPValue
If the delta PValue between two DAF iterations is small than this value, the iterative procedure will...
double m_param_probabilityCut
Probability cut for the DAF.
std::shared_ptr< genfit::AbsFitter > createFitter() const override
Create a DAF fitter.
static constexpr double s_defaultProbCut
Default probCut for the default DAF fitter.
static constexpr double s_defaultDeltaPValue
Default deltaPValue for the default DAF fitter.
static constexpr unsigned int s_defaultMaxFailedHits
Default maxFailedHits for the default DAF fitter.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.