hist icon indicating copy to clipboard operation
hist copied to clipboard

conversion Hist -> ROOT

Open slehti opened this issue 3 years ago • 2 comments

In coffea, there is support for converting coffea histograms to root histograms by uproot3 for 1-dimensional histograms only.

I'm using in my analysis lots of 2-dimensional histograms, so i wrote conversions

  • counter (processor.defaultdict_accumulator) -> ROOT.TH1D
  • Hist (1D) -> ROOT.TH1D
  • Hist (2D) -> ROOT.TH2D

The right place for these is in hist. I have working code which i could supply as a PR once i get a go-ahead. Cheers, Sami Lehti ([email protected])

slehti avatar Jul 16 '21 06:07 slehti

That would be great, a starter PR would be appreciated :)

henryiii avatar Jul 17 '21 10:07 henryiii

A new file in hist/src/hist?

slehti avatar Jul 19 '21 10:07 slehti