15 added = Add(var.getName(), var.getValue());
16 }
else if(var.getLowerLimit() == var.getUpperLimit()) {
17 added = Add(var.getName(), var.getValue(), var.getError());
19 added = Add(var.getName(), var.getValue(), var.getError(), var.getLowerLimit(), var.getUpperLimit());
23 throw std::runtime_error(
"The name " + var.getName() +
" appears more than once!");
25 var.setFitterIndex(Index(var.getName()));
31 int counter = var.getFitterIndex();
32 var.setValue(input.Value(counter));
33 var.setError(input.Error(counter));
34 SetValue(counter, var.getValue());
35 SetError(counter, var.getError());
42 minuitPars.at(var.getFitterIndex()) = var.getValue();
51 var.setChanged(force_changed ?
true : var.getValue() != values.at(var.getFitterIndex()));
52 gooPars.at(var.getIndex()) = values.at(var.getFitterIndex()) - var.getBlind(
Variable::Key());
std::vector< Variable > vars_
std::vector< double > make_minuit_vector() const
Make a parameter array with the current variable values.
int max_fitter_index(const std::vector< Variable > &vars)
Get the max fitter index of a variable from a list.
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. ...
int max_index(const std::vector< Variable > &vars)
Get the max index of a variable from a list.
void SetGooFitParams(const Minuit2::MnUserParameterState &input)
Read the values back into GooFit.
__host__ void copyParams(const std::vector< double > &pars) const
std::vector< std::vector< double > > recorded_
This provides a key for some special classes to access blind info (passkey)
virtual __host__ std::vector< Variable > getParameters() const