]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HBTAN/AliHBTTwoTrackEffFctn.cxx
Chages concerning coding convetion requirements.
[u/mrichter/AliRoot.git] / HBTAN / AliHBTTwoTrackEffFctn.cxx
1 #include "AliHBTTwoTrackEffFctn.h"
2 //____________________________________________________________________
3 //////////////////////////////////////////////////////////////////////
4 //                                                                  //
5 //  class AliHBTTwoTrackEffFctn                                     //
6 //                                                                  //
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                                        //
12 //                                                                  //
13 //////////////////////////////////////////////////////////////////////
14
15
16 ClassImp(AliHBTTwoTrackEffFctn)
17 /******************************************************************/
18
19 AliHBTTwoTrackEffFctn::AliHBTTwoTrackEffFctn()
20 {
21   //def ctor
22 }
23 /******************************************************************/
24
25 AliHBTTwoTrackEffFctn::AliHBTTwoTrackEffFctn(Int_t nbins, Double_t maxval, Double_t minval):
26      AliHBTOnePairFctn1D("TwoTrackEff","Two Track Efficiency",nbins,maxval,minval)
27 {
28 //contructor
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]");
34 }
35 /******************************************************************/
36
37 TH1* AliHBTTwoTrackEffFctn::GetResult()
38 {
39 //returns ratio of numerator and denominator
40  TH1* res = GetRatio(Scale());
41  if(res)
42   {
43    res->GetXaxis()->SetTitle("dP [GeV]");
44    res->GetYaxis()->SetTitle("C(dP)");
45    res->SetTitle("Double Track Resolution: dP Correlation Fctn.");
46   }
47  return res;
48 }
49 /******************************************************************/
50 /******************************************************************/
51 /******************************************************************/
52 ClassImp(AliHBTTwoTrackEffFctn3D)
53
54 AliHBTTwoTrackEffFctn3D::AliHBTTwoTrackEffFctn3D()
55 {
56 //Set Axis Title
57 }
58 /******************************************************************/
59
60 void AliHBTTwoTrackEffFctn3D::GetValues(AliHBTPair* pair, Double_t& x, Double_t&y ,Double_t& z)
61 {
62 //Returns values to be histogrammed
63 //it does not 
64  x = pair->GetDeltaPx();
65  y = pair->GetDeltaPy();
66  z = pair->GetDeltaPz();
67 }