[ROOT] Azimuth angle definition

From: Yuri Kharlov (Yuri.Kharlov@in2p3.fr)
Date: Wed Feb 12 2003 - 17:03:54 MET


Hi!

There are at least two definition of the azimuth angle in root:

1) TLorentzVector::Phi() and TVector3::Phi() returns phi from -pi to pi:
TMath::ATan2(fY,fX).

2) TParticle::Phi() returns phi from 0 to 2pi:
kPI+TMath::ATan2(-fPy,-fPx)

Sometimes it is confusing when comparing azimuth angles of different 
objects.

Is it intentional?

Yuri Kharlov.



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET