HistFactory print bin content

Hi all,

I just started using HistFactory and I have a naive question, is there a way to print the bin contents of the histos in a workspace? I am able to print the channels, the measurement with the Print() function but I d like to see the histogram contents.

Thanks!

Cheers,
Des

Hi,

The RooWorkspace saved in the file contains the model. The histogram are transforms in RooHIstFunc objects and you can get the content for each bin from them.
Otherwise the output file contains also the Measurement or Channel object from the HIstFactory.
From the Channel object you can get the histogram using, Channel::GetData()::GetHisto()

Cheers

Lorenzo

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.