]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HBTAN/AliHBTTwoTrackEffFctn.cxx
replaces AliPHOSAliEnFile: references to AliEn removed
[u/mrichter/AliRoot.git] / HBTAN / AliHBTTwoTrackEffFctn.cxx
CommitLineData
67348e59 1#include "AliHBTTwoTrackEffFctn.h"
16f9289f 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//////////////////////////////////////////////////////////////////////
67348e59 14
15
67348e59 16ClassImp(AliHBTTwoTrackEffFctn)
17/******************************************************************/
18
19AliHBTTwoTrackEffFctn::AliHBTTwoTrackEffFctn()
16f9289f 20{
21 //def ctor
22}
67348e59 23/******************************************************************/
24
16f9289f 25AliHBTTwoTrackEffFctn::AliHBTTwoTrackEffFctn(Int_t nbins, Double_t maxval, Double_t minval):
67348e59 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}
16f9289f 35/******************************************************************/
36
67348e59 37TH1* AliHBTTwoTrackEffFctn::GetResult()
38{
39//returns ratio of numerator and denominator
fc13079c 40 delete fRatio;
41 fRatio = GetRatio(Scale());
42 if(fRatio)
67348e59 43 {
fc13079c 44 fRatio->GetXaxis()->SetTitle("dP [GeV]");
45 fRatio->GetYaxis()->SetTitle("C(dP)");
46 fRatio->SetTitle("Double Track Resolution: dP Correlation Fctn.");
67348e59 47 }
fc13079c 48 return fRatio;
67348e59 49}
50/******************************************************************/
51/******************************************************************/
52/******************************************************************/
53ClassImp(AliHBTTwoTrackEffFctn3D)
54
55AliHBTTwoTrackEffFctn3D::AliHBTTwoTrackEffFctn3D()
56{
57//Set Axis Title
58}
16f9289f 59/******************************************************************/
67348e59 60
61void 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}