Possible bug in LorentzVector

Hi,
I am using the master branch and trying to use
ROOT ::Math::LorentzVectorROOT::Math::PxPyPzEVector v
in the cling

v.Px() and v.Pz() work but v.Py() does not
ROOT_prompt_4:1:3: error: no member named ‘Py’ in 'ROOT::Math::LorentzVector<ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<double> >>

epsft-gentoo ~ $ root
   ------------------------------------------------------------
  | Welcome to ROOT 6.19/01                  https://root.cern |
  |                               (c) 1995-2019, The ROOT Team |
  | Built for linuxx8664gcc on Jun 27 2019, 14:34:00           |
  | From git-r3/HEAD@v6-19-01-293-g5d3bd1c132                  |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------

root [0] ROOT::Math::PxPyPzEVector v(0,1,2,3);
root [1] v.Py()
(double) 1.0000000
root [2] v.Pz()
(double) 2.0000000
root [3] v.Px()
(double) 0.0000000

Works for me.

1 Like

It works, thanks for the help

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.