40using std::setprecision;
52 funct.getParameters(
nullptr, out,
false);
66 _multiGenFcn = std::make_unique<ROOT::Math::GradFunctor>(
this, &RooMinimizerFcn::operator(),
67 &RooMinimizerFcn::evaluateGradient,
nDim);
82double RooMinimizerFcn::operator()(
const double *
x)
const
87 (*_logfile) <<
x[
index] <<
" ";
112void RooMinimizerFcn::evaluateGradient(
const double *
x,
double *out)
const
117 (*_logfile) <<
x[
index] <<
" ";
123 std::size_t
iAll = 0;
135 std::cout <<
"\n gradient = ";
136 for (std::size_t i = 0; i <
getNDim(); ++i) {
137 std::cout << out[i] <<
", ";
142std::string RooMinimizerFcn::getFunctionName()
const
147std::string RooMinimizerFcn::getFunctionTitle()
const
149 return _funct->GetTitle();
152void RooMinimizerFcn::setOffsetting(
bool flag)
157RooArgSet RooMinimizerFcn::freezeDisconnectedParameters()
const
173 if (
v && !
v->isConstant()) {
176 }
else if (
cv && !
cv->isConstant()) {
185bool RooMinimizerFcn::evaluateHessian(std::span<const double>
x,
double *out)
const
190 (*_logfile) <<
x[
index] <<
" ";
198 std::size_t
iAll = 0;
202 std::size_t
jAll = 0;
218 std::cout <<
"\n hessian = " << std::endl;
219 for (std::size_t i = 0; i <
getNDim(); ++i) {
223 std::cout << std::endl;
233 minim.SetHessianFunction(
234 std::bind(&RooMinimizerFcn::evaluateHessian,
this, std::placeholders::_1, std::placeholders::_2));
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
Abstract Minimizer class, defining the interface for the various minimizer (like Minuit2,...
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.