21 std::string s(
"std::pow(x, 1.2)*std::exp(-x/3.)");
23 const int kNPoints = 500;
24 func.SetNpx(kNPoints);
28 auto f = TFile::Open(
"tmpTF1Cache.root",
"recreate");
30 f->WriteTObject(&
func,
"func");
33 f = TFile::Open(
"tmpTF1Cache.root");
37 BOOST_CHECK(func2->getIntegralVector().size() == kNPoints + 1);