24  for (
int i=0; i < 
data.numEntries() && i < 20; ++i) {
 
   26    for (
const auto var : *
data.get(i)) {
 
   27      std::cout << std::setprecision(3) << std::right << std::fixed << std::setw(8) << static_cast<const RooAbsReal*>(var)->getVal() << 
", ";
 
   29    std::cout << 
")\tweight=" << std::setw(10) << 
data.weight() << std::endl;
 
   36  std::cout << 
"mean(x) = " << 
data.mean(
x) << 
"\tsigma(x) = " << std::sqrt(
data.moment(
x, 2.))
 
   37    << 
"\n" << 
"mean(y) = " << 
data.mean(
y) << 
"\tsigma(y) = " << std::sqrt(
data.moment(
y, 2.)) << std::endl;
 
   40void rf408_RDataFrameToRooFit()
 
  116  rf408_RDataFrameToRooFit();
 
RooAbsDataHelper< RooDataSet > RooDataSetHelper
Helper for creating a RooDataSet inside RDataFrame.
 
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
 
R__EXTERN TRandom * gRandom
 
RInterface< Proxied, DS_t > Define(std::string_view name, F expression, const ColumnNames_t &columns={})
Define a new column.
 
Smart pointer for the return type of actions.
 
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
 
Abstract base class for binned and unbinned datasets.
 
RooArgSet is a container object that can hold multiple RooAbsArg objects.
 
Container class to hold N-dimensional binned data.
 
Container class to hold unbinned data.
 
Variable that can be changed from the outside.
 
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
 
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).