Hello Experts,
Recently I’ve installed RooUnfold, documentation here:
I went through the example code and it runs successfully, but I am trying to use an exisiting response matrix for my project and I am not able to use the syntax for that right way (I think this is the issue, I’m not sure.)
There’s a github page on how to possibly use pre-existing response matrix, but i think I’m not invoking this the right way. RooUnfold/RooUnfoldResponse.h at master · skluth/RooUnfold · GitHub
When I run the code, I get the error message:
In file included from input_line_8:1:
/Users/rutikpoozhikkunnath/Desktop/Codes_N_Data/Code_Master/RooUnfold/Unfolding.cxx:187:18: error: no matching constructor for initialization of 'RooUnfoldBayes' (aka 'RooUnfoldBayesT<TH1, TH2>')
RooUnfoldBayes unfold (&response,Measured_Matrix, 4); // OR
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/rutikpoozhikkunnath/Desktop/Codes_N_Data/Code_Master/RooUnfold/src/RooUnfoldBayes.h:34:3: note: candidate constructor not viable: no known conversion from 'const TH2F **' to 'const RooUnfoldResponseT<TH1, TH2> *' for 1st argument
RooUnfoldBayesT (const RooUnfoldResponseT<Hist,Hist2D>* res, const Hist* meas, Int_t niter= 4, Bool_t smoothit= false,
^
/Users/rutikpoozhikkunnath/Desktop/Codes_N_Data/Code_Master/RooUnfold/src/RooUnfoldBayes.h:27:3: note: candidate constructor not viable: requires 2 arguments, but 3 were provided
RooUnfoldBayesT (const char* name, const char* title); // named constructor
^
/Users/rutikpoozhikkunnath/Desktop/Codes_N_Data/Code_Master/RooUnfold/src/RooUnfoldBayes.h:28:3: note: candidate constructor not viable: requires 2 arguments, but 3 were provided
RooUnfoldBayesT (const TString& name, const TString& title); // named constructor
^
/Users/rutikpoozhikkunnath/Desktop/Codes_N_Data/Code_Master/RooUnfold/src/RooUnfoldBayes.h:29:3: note: candidate constructor not viable: requires single argument 'rhs', but 3 arguments were provided
RooUnfoldBayesT (const RooUnfoldBayesT<Hist,Hist2D>& rhs); // copy constructor
^
/Users/rutikpoozhikkunnath/Desktop/Codes_N_Data/Code_Master/RooUnfold/src/RooUnfoldBayes.h:26:3: note: candidate constructor not viable: requires 0 arguments, but 3 were provided
RooUnfoldBayesT(); // default constructor
I am attaching the code here. Any help would be greatly appreciated
Unfolding.cxx (4.4 KB)
Unfolding_Matrices_00.root (8.0 KB)