Convert TH1D to TH1F in PyROOT

Hi @skhalil,

The copy operation should work fine, modulo the precision loss:

So you should do:

y_proj.Copy(y_proj_h)

Note that the order of the two histograms in the call is the inverse as what you had: you were copying the empty one into the filled one.

Cheers,

Enric

1 Like