]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HBTAN/AliHBTTwoTrackEffFctn.cxx
Updated version (Zubayer)
[u/mrichter/AliRoot.git] / HBTAN / AliHBTTwoTrackEffFctn.cxx
index 4df67d1afcc7181a3654a601ca7c70f0ec139673..6fd28d172448ba5b5d569bf4ea079f052d21c4ff 100644 (file)
@@ -78,13 +78,20 @@ AliHBTTwoTrackEffFctnPxPyPz::AliHBTTwoTrackEffFctnPxPyPz(Int_t nXbins, Double_t
 }
 /******************************************************************/
 
-void AliHBTTwoTrackEffFctnPxPyPz::GetValues(AliHBTPair* pair, Double_t& x, Double_t&y ,Double_t& z)
+void AliHBTTwoTrackEffFctnPxPyPz::GetValues(AliHBTPair* pair, Double_t& x, Double_t&y ,Double_t& z) const
 {
 //Returns values to be histogrammed
 //it does not 
  x = pair->GetDeltaPx();
  y = pair->GetDeltaPy();
  z = pair->GetDeltaPz();
+
+ if (fAbs)
+  {
+    x = TMath::Abs(x);
+    y = TMath::Abs(y);
+    z = TMath::Abs(z);
+  }
 }
 /******************************************************************/
 
@@ -126,13 +133,21 @@ AliHBTTwoTrackEffFctnPtThetaPhi::AliHBTTwoTrackEffFctnPtThetaPhi(Int_t nXbins, D
 }
 /******************************************************************/
 
-void AliHBTTwoTrackEffFctnPtThetaPhi::GetValues(AliHBTPair* pair, Double_t& x, Double_t&y ,Double_t& z)
+void AliHBTTwoTrackEffFctnPtThetaPhi::GetValues(AliHBTPair* pair, Double_t& x, Double_t&y ,Double_t& z) const
 {
 //Returns values to be histogrammed
 //it does not 
  x = pair->GetDeltaPt();
  y = pair->GetDeltaTheta();
  z = pair->GetDeltaPhi();
+ if (fAbs)
+  {
+    x = TMath::Abs(x);
+    y = TMath::Abs(y);
+    z = TMath::Abs(z);
+  }
 }
 /******************************************************************/