]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HBTAN/AliHBTTwoTrackEffFctn.cxx
first commit
[u/mrichter/AliRoot.git] / HBTAN / AliHBTTwoTrackEffFctn.cxx
diff --git a/HBTAN/AliHBTTwoTrackEffFctn.cxx b/HBTAN/AliHBTTwoTrackEffFctn.cxx
new file mode 100644 (file)
index 0000000..464e1e6
--- /dev/null
@@ -0,0 +1,56 @@
+#include "AliHBTTwoTrackEffFctn.h"
+
+
+/******************************************************************/
+/******************************************************************/
+/******************************************************************/
+ClassImp(AliHBTTwoTrackEffFctn)
+/******************************************************************/
+
+AliHBTTwoTrackEffFctn::AliHBTTwoTrackEffFctn()
+ {
+ }
+/******************************************************************/
+
+AliHBTTwoTrackEffFctn::
+AliHBTTwoTrackEffFctn(Int_t nbins, Double_t maxval, Double_t minval):
+     AliHBTOnePairFctn1D("TwoTrackEff","Two Track Efficiency",nbins,maxval,minval)
+{
+//contructor
+//nbins - numner of bins of the function
+//maxval - max X of the fctn
+//minval - min X of the fctn
+ GetNumerator()->GetXaxis()->SetTitle("dP [GeV]");
+ GetDenominator()->GetXaxis()->SetTitle("dP [GeV]");
+}
+TH1* AliHBTTwoTrackEffFctn::GetResult()
+{
+//returns ratio of numerator and denominator
+ TH1* res = GetRatio(Scale());
+ if(res)
+  {
+   res->GetXaxis()->SetTitle("dP [GeV]");
+   res->GetYaxis()->SetTitle("C(dP)");
+   res->SetTitle("Double Track Resolution: dP Correlation Fctn.");
+  }
+ return res;
+}
+/******************************************************************/
+/******************************************************************/
+/******************************************************************/
+ClassImp(AliHBTTwoTrackEffFctn3D)
+
+AliHBTTwoTrackEffFctn3D::AliHBTTwoTrackEffFctn3D()
+{
+//Set Axis Title
+}
+
+void AliHBTTwoTrackEffFctn3D::GetValues(AliHBTPair* pair, Double_t& x, Double_t&y ,Double_t& z)
+{
+//Returns values to be histogrammed
+//it does not 
+ x = pair->GetDeltaPx();
+ y = pair->GetDeltaPy();
+ z = pair->GetDeltaPz();
+}