Filling TProfile

I’m trying to create and fill a TProfile from an existing AIDA::IProfile1D. I would have
thought that looping over the bins, and doing


would do it, but the bin content always comes out to zero as shown by
tprof->GetBinContent(ibin) (note that iprof->binHeight(jbin) is not zero).

Is there another way to do this?


You must also call SetBinEntries