ast0815/remu

Load root histograms diractly as response matrix instead of filling event by event

Closed this issue · 3 comments

Useful for more compact data releases.

Should already be possible with uproot and setting the Binning values, entries, sumw2 by hand. Comfort methods would be good, converting TH2 (smear) and TH1 (truth) to a response matrix.

Current work-around needs call to internal methods.

a952ab5 implements methods to set the values/entries/sumw2 directly and do the necessary bookkeeping. Doing anything more specific is probably not a good idea. Numpy arrays can be generated with uproot.