Skip to content

Inconsistent error calculation when reading TProfile #1148

Open
@patinkaew

Description

@patinkaew

Dear Experts,

I'm getting different errors when trying to extract errors from TProfile saved in a root file. I tried two ways:

  1. pd_tp.errors(): this seems to get the correct error compared to error produced with ROOT (C++) script.
  2. np.sqrt(pd_tp.to_hist().variances()): this gives smaller errors which is incorrect.

Do you know what might be the issue here? It seems there are problems when converting to boost/hist.

I'm using uproot 4.7.3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug (unverified)The problem described would be a bug, but needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions