Hi Lorenzo,
actually I tried this
RooDataSet * dataSetS= (RooDataSet::read(FileName,RooArgSet(v0,v1),“Q”);
TH1 * h1 = dataSetS->createHistogram(“v1”);
which is OK to get the distribution of v1. But now the problem is, I need to store this into a tree as a branch that I could not achieve so far. Please take a look at my another post here How to store variables of type RooRealVar as a branch in a tree?
Any idea how to do? Thank you.