BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 32 of file FitObjectiveBuilder.h.
Public Member Functions | |
FitObjectiveBuilder (JobItem *jobItem) | |
~FitObjectiveBuilder () | |
void | attachObserver (std::shared_ptr< GUIFitObserver > observer) |
std::unique_ptr< IChiSquaredModule > | createChiSquaredModule () const |
std::unique_ptr< FitObjective > | createFitObjective () const |
std::unique_ptr< IMinimizer > | createMinimizer () const |
mumufit::Parameters | createParameters () const |
void | interruptFitting () |
void | runFit () |
Private Member Functions | |
std::unique_ptr< ISimulation > | buildSimulation (const mumufit::Parameters ¶ms) const |
void | update_fit_parameters (const mumufit::Parameters ¶ms) const |
Private Attributes | |
std::unique_ptr< FitObjective > | m_fit_objective |
JobItem * | m_jobItem |
std::shared_ptr< GUIFitObserver > | m_observer |
FitObjectiveBuilder::FitObjectiveBuilder | ( | JobItem * | jobItem | ) |
Definition at line 31 of file FitObjectiveBuilder.cpp.
References JobItem::fitSuiteItem(), and m_jobItem.
|
default |
void FitObjectiveBuilder::attachObserver | ( | std::shared_ptr< GUIFitObserver > | observer | ) |
Definition at line 102 of file FitObjectiveBuilder.cpp.
References m_observer.
|
private |
Definition at line 113 of file FitObjectiveBuilder.cpp.
References JobItem::instrumentItem(), GUI::Transform::ToCore::itemsToSimulation(), m_jobItem, JobItem::sampleItem(), JobItem::simulationOptionsItem(), and update_fit_parameters().
Referenced by createFitObjective().
std::unique_ptr<IChiSquaredModule> FitObjectiveBuilder::createChiSquaredModule | ( | ) | const |
std::unique_ptr< FitObjective > FitObjectiveBuilder::createFitObjective | ( | ) | const |
Definition at line 70 of file FitObjectiveBuilder.cpp.
References buildSimulation(), DataItem::getDatafield(), m_jobItem, and JobItem::realDataItem().
Referenced by runFit().
std::unique_ptr< IMinimizer > FitObjectiveBuilder::createMinimizer | ( | ) | const |
Definition at line 92 of file FitObjectiveBuilder.cpp.
References MinimizerContainerItem::createMinimizer(), JobItem::fitSuiteItem(), m_jobItem, and FitSuiteItem::minimizerContainerItem().
Referenced by runFit().
mumufit::Parameters FitObjectiveBuilder::createParameters | ( | ) | const |
Definition at line 97 of file FitObjectiveBuilder.cpp.
References FitParameterContainerItem::createParameters(), FitSuiteItem::fitParameterContainerItem(), JobItem::fitSuiteItem(), and m_jobItem.
Referenced by runFit().
void FitObjectiveBuilder::interruptFitting | ( | ) |
Definition at line 107 of file FitObjectiveBuilder.cpp.
References m_fit_objective.
void FitObjectiveBuilder::runFit | ( | ) |
Definition at line 39 of file FitObjectiveBuilder.cpp.
References createFitObjective(), MinimizerContainerItem::createMetric(), createMinimizer(), createParameters(), JobItem::fitSuiteItem(), m_fit_objective, m_jobItem, m_observer, and FitSuiteItem::minimizerContainerItem().
|
private |
Definition at line 123 of file FitObjectiveBuilder.cpp.
References JobItem::fitParameterContainerItem(), m_jobItem, JobItem::parameterContainerItem(), and FitParameterContainerItem::setValuesInParameterContainer().
Referenced by buildSimulation().
|
private |
Definition at line 57 of file FitObjectiveBuilder.h.
Referenced by interruptFitting(), and runFit().
|
private |
Definition at line 50 of file FitObjectiveBuilder.h.
Referenced by FitObjectiveBuilder(), buildSimulation(), createFitObjective(), createMinimizer(), createParameters(), runFit(), and update_fit_parameters().
|
private |
Definition at line 56 of file FitObjectiveBuilder.h.
Referenced by attachObserver(), and runFit().