RooAbsData::convertToTree store remove weight

I’ve observed a bis strange behaviour: call for RooAbsData::convertToTreeStore for weighted dataset eliminates the weight:

In [28]: ROOT.gROOT.GetVersion()
Out[28]: '6.18/00'

In [29]: type(ds)
Out[29]: ROOT.RooDataSet

In [30]: ds.isWeighted()
Out[30]: True

In [31]: ds.convertToTreeStore()

In [32]: ds.isWeighted()
Out[32]: False

Hi Vanya,
Our RooFit expert (@StephanH) is currently on the road and will reply once back. If you heaven’t heard from him in 10 days please ping here!
Axel.

Hi,

let’s track the progress here:
https://sft.its.cern.ch/jira/browse/ROOT-10473