Printing RooDataSet and writing dataset into csv file

Hi.

I wanted to use Roofit to generate data using MC toys instead of using python. I just hit a snag when it comes to printing out the full dataset cluster_data.cpp (1.5 KB)

Hi,

WHat would you like to do ? Your macro contains a function “print” that does not exist. There is a function “Print()” which will print some information about the data set and there is a function write that will write the events.

    data->Print("V");   // print information about observables names and number of entries
    data->write(std::cout);  // print all event values for the observables 

Lorenzo

Hi Moneta.

Thanks for the reply. So what I am trying to do actually is to scan all the values of the observables that are contained in data.