100 RooProdPdf model(
"model",
"model", {gauss, constraint});
112 std::unique_ptr<RooDataSet>
dataGlob{model.generate({
mu_obs}, 1)};
123 std::unique_ptr<RooDataSet>
data{model.generate({
x}, 50)};
145 using FitRes = std::unique_ptr<RooFitResult>;
153 std::cout <<
"1. model.fitTo(*data, GlobalObservables(mu_obs))\n";
154 std::cout <<
"------------------------------------------------\n";
164 std::cout <<
"2. model.fitTo(*data)\n";
165 std::cout <<
"---------------------\n";
174 std::cout <<
"3. model.fitTo(*data, GlobalObservables(mu_obs), GlobalObservablesSource(\"model\"))\n";
175 std::cout <<
"------------------------------------------------\n";
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 data
RooArgSet is a container object that can hold multiple RooAbsArg objects.
static RooMsgService & instance()
Return reference to singleton instance.
Efficient implementation of a product of PDFs of the form.
Variable that can be changed from the outside.
RooCmdArg Save(bool flag=true)
RooCmdArg GlobalObservables(Args_t &&... argsOrArgSet)
RooCmdArg GlobalObservablesSource(const char *sourceName)
RooCmdArg PrintLevel(Int_t code)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...