GooFit
v2.1.3
|
#include <Params.h>
Public Member Functions | |
Params (PdfBase &pdf) | |
void | SetGooFitParams (const Minuit2::MnUserParameterState &input) |
Read the values back into GooFit. More... | |
size_t | size () const |
Get the number of params in the fit. More... | |
std::vector< double > | make_minuit_vector () const |
Make a parameter array with the current variable values. More... | |
void | from_minuit_vector (const std::vector< double > &values, bool force_changed=false) |
Set from a minuit vector. Optional force_changed to force complete recalculation. More... | |
void | set_record (bool do_record=true) |
Set recording of Minuit parameter changes. More... | |
std::vector< std::vector< double > > | get_recorded () const |
Get recorded values array. More... | |
Protected Attributes | |
std::vector< Variable > | vars_ |
PdfBase * | pdf_ |
size_t | num_ |
bool | do_record_ {false} |
std::vector< std::vector< double > > | recorded_ |
GooFit::Params::Params | ( | PdfBase & | ) |
Definition at line 8 of file Params.cpp.
References GooFit::PdfBase::getParameters(), pdf_, and vars_.
void GooFit::Params::from_minuit_vector | ( | const std::vector< double > & | values, |
bool | force_changed = false |
||
) |
Set from a minuit vector. Optional force_changed to force complete recalculation.
Definition at line 47 of file Params.cpp.
References GooFit::PdfBase::copyParams(), do_record_, GooFit::max_index(), pdf_, recorded_, and vars_.
Referenced by GooFit::FCN::operator()(), and size().
|
inline |
std::vector< double > GooFit::Params::make_minuit_vector | ( | ) | const |
Make a parameter array with the current variable values.
Definition at line 39 of file Params.cpp.
References GooFit::max_fitter_index(), and vars_.
Referenced by GooFit::FCN::operator()(), and size().
|
inline |
Set recording of Minuit parameter changes.
Definition at line 47 of file Params.h.
References do_record_.
void GooFit::Params::SetGooFitParams | ( | const Minuit2::MnUserParameterState & | input | ) |
|
inline |
Get the number of params in the fit.
Definition at line 38 of file Params.h.
References from_minuit_vector(), and make_minuit_vector().
|
protected |
Definition at line 26 of file Params.h.
Referenced by from_minuit_vector(), and set_record().
|
protected |
Definition at line 23 of file Params.h.
Referenced by from_minuit_vector(), GooFit::FCN::operator()(), and Params().
|
protected |
Definition at line 27 of file Params.h.
Referenced by from_minuit_vector(), and get_recorded().
|
protected |
Definition at line 22 of file Params.h.
Referenced by GooFit::FCN::FCN(), from_minuit_vector(), make_minuit_vector(), Params(), and SetGooFitParams().