}
/******************************************************************/
-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);
+ }
}
/******************************************************************/
}
/******************************************************************/
-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);
+ }
+
}
/******************************************************************/