]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HBTAN/AliHBTTwoTrackEffFctn.cxx
Protection if trigger TClonesArray is empty (Ch.F.)
[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  delete fRatio;
41  fRatio = GetRatio(Scale());
42  if(fRatio)
43   {
44    fRatio->GetXaxis()->SetTitle("dP [GeV]");
45    fRatio->GetYaxis()->SetTitle("C(dP)");
46    fRatio->SetTitle("Double Track Resolution: dP Correlation Fctn.");
47   }
48  return fRatio;
49 }
50 /******************************************************************/
51 /******************************************************************/
52 /******************************************************************/
53 ClassImp(AliHBTTwoTrackEffFctn3D)
54
55 AliHBTTwoTrackEffFctn3D::AliHBTTwoTrackEffFctn3D()
56 {
57 //Set Axis Title
58 }
59 /******************************************************************/
60
61 void AliHBTTwoTrackEffFctn3D::GetValues(AliHBTPair* pair, Double_t& x, Double_t&y ,Double_t& z)
62 {
63 //Returns values to be histogrammed
64 //it does not 
65  x = pair->GetDeltaPx();
66  y = pair->GetDeltaPy();
67  z = pair->GetDeltaPz();
68 }