Home | News | Documentation | Download

How to Fill RooUnfold 2D response Matrix

Dear Rooters,

I have a simple question concerning RooUnfold.
How to initialize a 2D response matrix. There are Fill methods for 1D, 2D and 3D, however there is only constructor for 1D case.


Many thanks in advance,

The answer is to use the constructor
RooUnfoldResponse (const TH1* measured, const TH1* truth, const char* name= 0, const char* title= 0);

In that last case, measured and truth are used to specify the dimensions of the distributions