28 Double_t
getRad()
const {
return Rad;}
29 Double_t
getPhi()
const {
return Phi;}
31 void setRad(
const Double_t a) {Rad=a;}
32 void setPhi(
const Double_t a) {Phi=a;}
34 void sphereCoord(Float_t& rad, Float_t&
theta, Float_t&
phi);
47 k = 180./(TMath::Pi());
49 theta = k*(TMath::ACos(z/rad));
51 r = TMath::Sqrt(x*x+y*y);
52 phi = k*(TMath::ACos(x/r));
53 if (y<0) phi = 360. -
phi;
HGeomVector2(Double_t dx=0, Double_t dy=0, Double_t dz=0)
void setRad(const Double_t a)
void setTheta(const Double_t a)
void sphereCoord(Float_t &rad, Float_t &theta, Float_t &phi)
void setPhi(const Double_t a)
HGeomVector2(const HGeomVector &v)
Double_t getTheta() const