I created a variable d with it’s frame
RooRealVar d(“d”,“distance from the target”,0.0,Distance[0],Distance[NDistance-1]);
RooPlot *dframe = d.frame();
Then created a second variable:
RooRealVar HitPerc(“#frac{N_{hit}}{N_{Tot}}”,“Hit and miss quotient”, 0.0, 0.0, N, “%”);
Here’s the problem: I want to create a dataset where the HitPerc variable is a function of the d variable which I created with:
RooDataSet *DataHitPerc = new RooDataSet(“DataH”,“droplets hit versus distance”,RooArgSet(d,HitPerc));
Then I added points to the dataset using
DataHitPerc → add(RooArgSet(d,HitPerc));
But when I write:
DataHitPerc → plotOn(dframe);
I obtain as graph the number of entries for each value of d instead of the entries value at a given d; how do I solve it?
ROOT Version: 6.22/06
Platform: Ubuntu 20.10
Compiler: (Ubuntu 10.2.0-13ubuntu1) 10.2.0