first commit
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Jan 2002 13:11:32 +0000 (13:11 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Jan 2002 13:11:32 +0000 (13:11 +0000)
HBTAN/AliHBTTwoTrackEffFctn.cxx [new file with mode: 0644]
HBTAN/AliHBTTwoTrackEffFctn.h [new file with mode: 0644]

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();
+}
diff --git a/HBTAN/AliHBTTwoTrackEffFctn.h b/HBTAN/AliHBTTwoTrackEffFctn.h
new file mode 100644 (file)
index 0000000..35470ca
--- /dev/null
@@ -0,0 +1,40 @@
+#ifndef AliHBTTwoTrackEffFctn_H
+#define AliHBTTwoTrackEffFctn_H
+//classes for calculating two track efficiency of the tracking
+//binning is done using value of simulated pair montum difference
+//pair must be recontructed, that is why we need both pairs 
+//(simulated and recontructed), thus functions are "two pair"
+//Piotr.Skowronski@cern.ch
+#include "AliHBTPair.h"
+#include "AliHBTFunction.h"
+
+class AliHBTTwoTrackEffFctn: public AliHBTOnePairFctn1D
+ {
+  public:
+    AliHBTTwoTrackEffFctn();
+    AliHBTTwoTrackEffFctn(Int_t nbins, Double_t maxval, Double_t minval);
+    virtual ~AliHBTTwoTrackEffFctn(){}
+    TH1* GetResult();
+  protected:
+    Double_t GetValue(AliHBTPair* pair){return pair->GetDeltaP();}
+  private:
+  public:
+    ClassDef(AliHBTTwoTrackEffFctn,1)
+ };
+
+class AliHBTTwoTrackEffFctn3D: public AliHBTOnePairFctn3D
+ {
+  public:
+    AliHBTTwoTrackEffFctn3D();
+    virtual ~AliHBTTwoTrackEffFctn3D(){}
+
+    void ProcessSameEventParticles(AliHBTPair* pair){}
+    void ProcessDiffEventParticles(AliHBTPair* pair){}
+
+  protected:
+    void GetValues(AliHBTPair*,Double_t&, Double_t&,Double_t&);
+  private:
+  public:
+    ClassDef(AliHBTTwoTrackEffFctn3D,1)
+ };
+#endif