Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

implement getbincontents for TArrays #24

Merged
merged 1 commit into from
Jul 8, 2019
Merged

implement getbincontents for TArrays #24

merged 1 commit into from
Jul 8, 2019

Conversation

jpivarski
Copy link
Member

For issue #23.

@kreczko Let me know if this works! (I haven't tested your case, just a generic TArrayD.)

@kreczko
Copy link
Contributor

kreczko commented Jul 8, 2019

Looks good (once #22 is applied, of course ;) )!
Thank you!

a = aghast.from_root(proX) # works now
a.dump()
Histogram(
  axis=[
    Axis(
      binning=
        EdgesBinning(
          edges=[0 10 15 20 30 999],
          overflow=RealOverflow(loc_underflow=BinLocation.below1, loc_overflow=BinLocation.above1)),
      statistics=[
        Statistics(
          moments=[
            Moments(sumwxn=InterpretedInlineInt64Buffer(buffer=[10]), n=0),
            Moments(sumwxn=InterpretedInlineFloat64Buffer(buffer=[10]), n=0, weightpower=1),
            Moments(sumwxn=InterpretedInlineFloat64Buffer(buffer=[10]), n=0, weightpower=2),
            Moments(sumwxn=InterpretedInlineFloat64Buffer(buffer=[272]), n=1, weightpower=1),
            Moments(sumwxn=InterpretedInlineFloat64Buffer(buffer=[7544]), n=2, weightpower=1)
          ])
      ])
  ],
  counts=
    WeightedCounts(
      sumw=InterpretedInlineFloat64Buffer(buffer=[0 0 0 0 5 5 0]),
      sumw2=InterpretedInlineFloat64Buffer(buffer=[0 0 0 0 5 5 0])))

@jpivarski jpivarski merged commit 2a57c6c into master Jul 8, 2019
@jpivarski jpivarski deleted the issue-23 branch July 8, 2019 15:49
@LovelyBuggies LovelyBuggies mentioned this pull request Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants