Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Behavior of eta if x, y = 0 in TLorenzVector #80

@jmduarte

Description

@jmduarte

Hi,

I'm wondering if we want to reproduce the behavior of ROOT.TLorentzVector for eta in the case that x, y = 0 (See https://root.cern.ch/doc/master/TVector3_8cxx_source.html#l00320). That is, ROOT returns sign(z)*10e10.

Currently, uproot-methods throws a ZeroDivisionError:

import uproot_methods
lv = uproot_methods.TLorentzVector(0,0,0,0)
lv.eta # throws ZeroDivisionError

But maybe this behavior is desired?

Thanks,
Javier

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions