HI, roofiters

Could you share your wisdom to make RooDataHist with variable bins?

I mean, I’m working with a simple 2 dim. histogram as below,

RooRealVar x(“x”,“x”, 0.0, 10);

RooRealVar y(“y”,“y”, 0.0, 10);

x.setBins(5) ;

y.setBins(5) ;

RooDataHist hdata(“hdata”,"", RooArgSet(x,y), histogram);

RooHistPdf hpdf(“hpdf”,"", RooArgSet(x,y), hdata);

but, actually, x and y in TH2 ‘histogram’ have variable bins like,

x = { 0, 2, 3, 5, 6, 10 }

y = { 0, 1, 4, 5, 8, 10 }

, so could you let me some hints how to define the roorealvariables?

Thanks in advance,

Ha