I’m trying to use the array of xbins from a histogram to initialize a new histogram. I don’t understand why this doesn’t work
[code]#!/usr/bin/python
from ROOT import *
h = TH1D(“hhh”,"",2, 0, 1)
xarr = h.GetXaxis().GetXbins()
foo = TH1D(“foo”,"",2, xarr)[/code]
It doesn’t understand xarr (“could not convert argument”)