1 #include "AliHBTTwoTrackEffFctn.h"
2 //____________________________________________________________________
3 //////////////////////////////////////////////////////////////////////
5 // class AliHBTTwoTrackEffFctn //
7 // classes for calculating two track efficiency of the tracking //
8 // binning is done using value of simulated pair montum difference //
9 // pair must be recontructed, that is why we need both pairs //
10 // (simulated and recontructed), thus functions are "two pair" //
11 // Piotr.Skowronski@cern.ch //
13 //////////////////////////////////////////////////////////////////////
16 ClassImp(AliHBTTwoTrackEffFctn)
17 /******************************************************************/
19 AliHBTTwoTrackEffFctn::AliHBTTwoTrackEffFctn()
23 /******************************************************************/
25 AliHBTTwoTrackEffFctn::AliHBTTwoTrackEffFctn(Int_t nbins, Double_t maxval, Double_t minval):
26 AliHBTOnePairFctn1D("TwoTrackEff","Two Track Efficiency",nbins,maxval,minval)
29 //nbins - numner of bins of the function
30 //maxval - max X of the fctn
31 //minval - min X of the fctn
32 GetNumerator()->GetXaxis()->SetTitle("dP [GeV]");
33 GetDenominator()->GetXaxis()->SetTitle("dP [GeV]");
35 /******************************************************************/
37 TH1* AliHBTTwoTrackEffFctn::GetResult()
39 //returns ratio of numerator and denominator
41 fRatio = GetRatio(Scale());
44 fRatio->GetXaxis()->SetTitle("dP [GeV]");
45 fRatio->GetYaxis()->SetTitle("C(dP)");
46 fRatio->SetTitle("Double Track Resolution: dP Correlation Fctn.");
50 /******************************************************************/
51 /******************************************************************/
52 /******************************************************************/
53 ClassImp(AliHBTTwoTrackEffFctn3D)
55 AliHBTTwoTrackEffFctn3D::AliHBTTwoTrackEffFctn3D()
59 /******************************************************************/
61 void AliHBTTwoTrackEffFctn3D::GetValues(AliHBTPair* pair, Double_t& x, Double_t&y ,Double_t& z)
63 //Returns values to be histogrammed
65 x = pair->GetDeltaPx();
66 y = pair->GetDeltaPy();
67 z = pair->GetDeltaPz();