Adaption to new fluka common blocks (E. Futo)
[u/mrichter/AliRoot.git] / HBTAN / AliHBTCorrelFctn.cxx
CommitLineData
1b446896 1#include "AliHBTCorrelFctn.h"
2dc7203b 2//_____________________________________________________________
3///////////////////////////////////////////////////////////////
953577f3 4//
2dc7203b 5// Set of Correlation fuctions
6// AliHBTQInvCorrelFctn - Q Invariant correlatyion function
953577f3 7//
2dc7203b 8// Corroleation function is created from dividing two histograms of QInvariant:
9// of particles from the same evnt
10// by
11// of particles from different events
953577f3 12//
2dc7203b 13///////////////////////////////////////////////////////////////
1b446896 14
15ClassImp(AliHBTQInvCorrelFctn)
16
1b446896 17
953577f3 18AliHBTQInvCorrelFctn::
8bd57399 19AliHBTQInvCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
27b3fe5d 20 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
953577f3 21{
22 Rename("qinvcf","Q_{inv} Correlation Function");
23}
24
25
1b446896 26TH1* AliHBTQInvCorrelFctn::GetResult()
953577f3 27{
28 return GetRatio(Scale());
29}
30/*************************************************************************************/
31/*************************************************************************************/
32/*************************************************************************************/
33
34ClassImp(AliHBTQOutCMSLCCorrelFctn)
35TH1* AliHBTQOutCMSLCCorrelFctn::GetResult()
1b446896 36{
953577f3 37 return GetRatio(Scale());
1b446896 38}
953577f3 39/*************************************************************************************/
40/*************************************************************************************/
41/*************************************************************************************/
42
43ClassImp(AliHBTQLongCMSLCCorrelFctn)
44TH1* AliHBTQLongCMSLCCorrelFctn::GetResult()
45{
46 return GetRatio(Scale());
47}
48/*************************************************************************************/
49/*************************************************************************************/
50/*************************************************************************************/
51
52ClassImp(AliHBTQSideCMSLCCorrelFctn)
53TH1* AliHBTQSideCMSLCCorrelFctn::GetResult()
54{
55 return GetRatio(Scale());
56}
57
1b446896 58
953577f3 59/*************************************************************************************/
60/*************************************************************************************/
61/*************************************************************************************/
1b446896 62
63ClassImp(AliHBTInvMassCorrelFctn)
64
65AliHBTInvMassCorrelFctn::
66AliHBTInvMassCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
27b3fe5d 67 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
1b446896 68{
69 Rename("InvMass CF","Invariant Mass Correlation Function");
70}
71
72TH1* AliHBTInvMassCorrelFctn::GetResult()
73{
953577f3 74 TString name = fName + " Result";
75 return (TH1*)GetNumerator()->Clone(name.Data());
1b446896 76}
4866a439 77/*************************************************************************************/
78/*************************************************************************************/
79/*************************************************************************************/
80
81ClassImp(AliHBTTwoKStarCorrelFctn)
82
83AliHBTTwoKStarCorrelFctn::
84AliHBTTwoKStarCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
85 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
86{
87 Rename("twokstarcf","2K^{*} Correlation Function");
88}
89
90/*************************************************************************************/
91
92TH1* AliHBTTwoKStarCorrelFctn::GetResult()
93{
94 return GetRatio(Scale());
95}
96
97/*************************************************************************************/