I think there is something going wrong in the SPlot constructor and consequentially in the AddSweight method regarding the flag includeWeights.
As to my point of view the includeWeights flag is ignored. If I set the flag to
kFALSE still the weights are added to the data set given to the sPlot object.
Please find a small example macro here:
RooFitIncludeWeightBug.C (3.3 KB)
Tested with version 6.16.00 and the latest Docker container, as of 2019-12-16 (46d1e0e904fa)
Am I doing some stupid mistake? Do You have any suggestions ?