Dear all,
I’ve composed my resolution function with a RooSimultaneous and it fits correctly my data.
Now I want to add it with another RooResolutionModel.
The RooAddModel do it but requires a RooArgList &pdfList.
...
resolution_func_bkg = ROOT.RooSimultaneous("resolution_func_bkg", "resolution_func_bkg", is_one_track_only_res)
self.pdf_bkg_1trk = ROOT.RooAddModel("pdf_bkg_1trk", "pdf_bkg_1trk",
ROOT.RooArgList(resolution_func_bkg, self.function_pdf),
ROOT.RooArgList(f_delta_1trk))
...
I’ve tryed and this is the exception:
TypeError: none of the 3 overloaded methods succeeded. Full details:
RooAddModel::RooAddModel(const char* name, const char* title, const RooArgList& pdfList, const RooArgList& coefList, bool ownPdfList = kFALSE) =>
problem in C++; program state has been reset
RooAddModel::RooAddModel() =>
takes at most 0 arguments (4 given)
RooAddModel::RooAddModel(const RooAddModel& other, const char* name = 0) =>
takes at most 2 arguments (4 given)
I’ve checked and both RooSimultaneous and RooResolutionModel extend the class RooAbsPdf.
Options:
- Is there any way to convert the RooSimultaneous into RooResolutionModel?
- Is there any alternative for RooResolutionModels instead of RooSimultaneous? (Like RooAddModel for RooAddPdf)
Any other help is really welcome.