TLorentzVector Print

Dear experts,

I do:
TLorentzVector lv(1,1,1,1); lv.Print();
and get :
“OBJ: TLorentzVector TLorentzVector A four vector with (-,-,-,+) metric”

I wonder why it doesn’t display like :
Printf("(x,y,z,t)=(%f,%f,%f,%f) (P,eta,phi,E)=(%f,%f,%f,%f)", fP.x(),fP.y(),fP.z(),fE, P(),Eta(),Phi(),fE);

Thanks,
Jike

Hi,

I can not reproduce this problem:root [0] TLorentzVector lv(1,1,1,1); lv.Print(); (x,y,z,t)=(1.000000,1.000000,1.000000,1.000000) (P,eta,phi,E)=(1.732051,0.658479,0.785398,1.000000) root [1] Which version of ROOT are you using?

Philippe.

/afs/cern.ch/atlas/software/releases/16.6.6/sw/lcg/app/releases/ROOT/5.26.00e_python2.6/i686-slc5-gcc43-opt/root
Which version you tested ?

Cheers,
Jike

Hi,

The custom Print method for TLorentzVector was added only in v5.28/00 and up (I tried the trunk). v5.26 still use the generic version.

Cheers,
Philippe.