44 std::unique_ptr<RooDataSet>
d{model.generate(
x, 1000)};
51 std::unique_ptr<RooArgSet> params{model.getParameters(
x)};
54 params->writeToFile(
"rf505_asciicfg_example.txt");
57 dir1.
Append(
"/roofit/rf505_asciicfg.txt") ;
58 TString dir2 =
"rf505_asciicfg_example.txt";
64 params->readFromFile(dir2);
68 params->readFromFile(dir1, 0,
"Section2");
73 params->readFromFile(dir1,
"READ",
"Section3");
76 cout <<
"The following parameters of the were _not_ read from Section3: "
77 << (*params->selectByAttrib(
"READ",
false)) << endl;
83 params->readFromFile(dir1, 0,
"Section4");
Efficient implementation of a sum of PDFs of the form.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooPolynomial implements a polynomial p.d.f of the form.
Variable that can be changed from the outside.
TString & Append(const char *cs)
RooCmdArg PrintLevel(Int_t code)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...