40using std::setprecision;
52 funct.getParameters(
nullptr, out,
false);
66 _multiGenFcn = std::make_unique<ROOT::Math::GradFunctor>(
this, &RooMinimizerFcn::operator(),
67 &RooMinimizerFcn::evaluateGradient,
nDim);
69 _multiGenFcn = std::make_unique<ROOT::Math::Functor>(std::cref(*
this),
getNDim());
79double RooMinimizerFcn::operator()(
const double *
x)
const
84 (*_logfile) <<
x[
index] <<
" ";
109void RooMinimizerFcn::evaluateGradient(
const double *
x,
double *out)
const
114 (*_logfile) <<
x[
index] <<
" ";
120 std::size_t
iAll = 0;
132 std::cout <<
"\n gradient = ";
133 for (std::size_t i = 0; i <
getNDim(); ++i) {
134 std::cout << out[i] <<
", ";
139std::string RooMinimizerFcn::getFunctionName()
const
144std::string RooMinimizerFcn::getFunctionTitle()
const
146 return _funct->GetTitle();
149void RooMinimizerFcn::setOffsetting(
bool flag)
154RooArgSet RooMinimizerFcn::freezeDisconnectedParameters()
const
170 if (
v && !
v->isConstant()) {
173 }
else if (
cv && !
cv->isConstant()) {
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Common abstract base class for objects that represent a value and a "shape" in RooFit.
void setConstant(bool value=true)
Abstract base class for objects that represent a real value and implements functionality common to al...
static void setHideOffset(bool flag)
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Object to represent discrete states.
Wrapper class around ROOT::Math::Minimizer that provides a seamless interface between the minimizer f...
RooMinimizer::Config _cfg
Variable that can be changed from the outside.