RooUnfold Installation on Mac

Hello Experts,
I’ve been trying to install RooUnfold on my Mac (I’m using ROOT Version : 6.26)
When I try the make command I get the error as :

 /Users/rutikpoozhikkunnath/Downloads/RooUnfold-1.1.1/src/RooUnfoldTUnfold.cxx:202:57: error: too many arguments to function call, expected at most 2, have 4
  TH1* reco=_unf->GetOutput("_rec","reconstructed dist",0,0);
            ~~~~~~~~~~~~~~~                             ^~~
/usr/local/Cellar/root/6.26.02_1/include/root/TUnfold.h:291:4: note: 'GetOutput' declared here
   void GetOutput(TH1 *output,const Int_t *binMap=0) const;
   ^
/Users/rutikpoozhikkunnath/Downloads/RooUnfold-1.1.1/src/RooUnfoldTUnfold.cxx:219:59: error: too many arguments to function call, expected at most 2, have 4
  TH2D* ematrix=_unf->GetEmatrix("ematrix","error matrix",0,0);
                ~~~~~~~~~~~~~~~~                          ^~~
/usr/local/Cellar/root/6.26.02_1/include/root/TUnfold.h:292:4: note: 'GetEmatrix' declared here
   void GetEmatrix(TH2 *ematrix,const Int_t *binMap=0) const;
   ^
2 errors generated.
make: *** [/Users/rutikpoozhikkunnath/Downloads/RooUnfold-1.1.1/tmp/macosx64/obj/RooUnfoldTUnfold.o] Error 1 

I’m attaching RooUnfoldTUnfold.cxx and TUnfold.h here.

Any help would be greatly appreciated.

Cheers
Rutik
RooUnfoldTUnfold.cxx (7.4 KB)
TUnfold.h (16.5 KB)

BTW. The maintainer of RooUnfold is @cburgard

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.