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. Default parameters are read from the database.");
23 "Probability cut for the DAF. Any value between 0 and 1 is possible. Common values are between 0.01 and 0.001",
31 B2FATAL(
"DAF parameters are not available.");
36 B2WARNING(
"DAF was called with a different probability cut than the database one (new: " <<
m_param_probabilityCut <<
" ; DB: " <<
37 m_DAFparameters->getProbabilityCut() <<
" ). This new value will be used, the other parameters are read from the database");
40 std::shared_ptr<genfit::DAF> fitter = std::make_shared<genfit::DAF>(
m_DAFparameters->getAnnealingScheme(),
54 return std::shared_ptr<genfit::DAF>(
nullptr);
A base class for all modules that implement a fitter for reco tracks.
DBObjPtr< DAFparameters > m_DAFparameters
DAF parameters Database OjbPtr.
DAFRecoFitterModule()
Module for the DAF fitter.
bool m_changedParametersMessageWasShown
Boolean to only show the warning about changed DAF parameters on first occurrence but not each time a...
double m_param_probabilityCut
Probability cut for the DAF.
std::shared_ptr< genfit::AbsFitter > createFitter() const override
Create a DAF fitter.
void setDescription(const std::string &description)
Sets the description of the module.
static constexpr double s_defaultProbCut
Default probCut for the default DAF fitter.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.