]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Using TMath::Pi() instead of kPI
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Sep 2003 09:01:37 +0000 (09:01 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 4 Sep 2003 09:01:37 +0000 (09:01 +0000)
HBTAN/AliHBTParticle.h
PHOS/AliPHOSv4.cxx
STEER/AliConst.h

index 135547b75b8c0b51d2d5b440251fe0e08a97a3ff..70c473d3931fc3083cbe6a1a808ed28560803c55 100644 (file)
@@ -83,9 +83,9 @@ public:
   Double_t         Y     () const { if (fE  != fPz) return 0.5*TMath::Log((fE+fPz)/(fE-fPz));
                                     else return 1.e30;}
 
-  Double_t         Phi   () const { return kPI+TMath::ATan2(-fPy,-fPx); }
+  Double_t         Phi   () const { return TMath::Pi()+TMath::ATan2(-fPy,-fPx); }
 
-  Double_t         Theta () const { return (fPz==0)?kPI/2:TMath::ACos(fPz/P()); }
+  Double_t         Theta () const { return (fPz==0)?TMath::Pi()/2:TMath::ACos(fPz/P()); }
 
                                 // setters
 
index f789d66a2118692cdc9406fcde33f08395469068..f1fee85f285619a98e4bf72ffc0f248ff4eee61f 100644 (file)
@@ -140,7 +140,7 @@ void AliPHOSv4::BuildGeometry()
  
   const Int_t kColorPHOS = kRed ;
   
-  Double_t const kRADDEG = 180.0 / kPI ;
+  Double_t const kRADDEG = 180.0 / TMath::Pi() ;
   
   new TBRIK( "BigBox", "PHOS box", "void", GetBigBox(0)/2, 
             GetBigBox(1)/2, 
@@ -200,7 +200,7 @@ void AliPHOSv4::CreateGeometry()
   // --- Position  PHOS mdules in ALICE setup ---
   
   Int_t idrotm[99] ;
-  Double_t const kRADDEG = 180.0 / kPI ;
+  Double_t const kRADDEG = 180.0 / TMath::Pi() ;
   
   for( Int_t i = 1; i <= GetGeometry()->GetNModules(); i++ ) {
     
index 5f190f9754c718d8f9e156db14e6579f76a7c5f9..67c6fd48fbfe5b4e0761716438daf267933f16ff 100644 (file)
@@ -7,7 +7,6 @@
 
 #include <TMath.h> 
   
-static const Double_t kPI      = TMath::Pi();
 static const Double_t k2PI     = TMath::TwoPi();
 static const Double_t kDegrad  = TMath::DegToRad();
 static const Double_t kRaddeg  = TMath::RadToDeg();