Calculation of number of participants added.
[u/mrichter/AliRoot.git] / HBTAN / AliHBTCorrelFctn.cxx
CommitLineData
1b446896 1#include "AliHBTCorrelFctn.h"
db21c92b 2//____________________________________________________________________________
3//////////////////////////////////////////////////////////////////////////////
953577f3 4//
db21c92b 5// class AliHBTQInvCorrelFctn
6// class AliHBTQOutCMSLCCorrelFctn
7// class AliHBTQLongCMSLCCorrelFctn
8// class AliHBTQSideCMSLCCorrelFctn
9// class AliHBTInvMassCorrelFctn
10// class AliHBTTwoKStarCorrelFctn
953577f3 11//
db21c92b 12// Set of functions:
13// Q Invaraint Correlation Function
14// Invariant Mass Function
953577f3 15//
db21c92b 16// more info: http://aliweb.cern.ch/people/skowron/analyzer/index.html
17// Piotr.Skowronski@cern.ch
18//
19//////////////////////////////////////////////////////////////////////////////
1b446896 20
21ClassImp(AliHBTQInvCorrelFctn)
22
88cb7938 23//Corroleation function is created from dividing two histograms of QInvariant:
24// of particles from the same evnt
25//by
26// of particles from different events
1b446896 27
e6e21fa2 28AliHBTQInvCorrelFctn::AliHBTQInvCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
29 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
953577f3 30{
e6e21fa2 31 fWriteNumAndDen = kTRUE;//change default behaviour
953577f3 32 Rename("qinvcf","Q_{inv} Correlation Function");
33}
e6e21fa2 34/*************************************************************************************/
953577f3 35
1b446896 36TH1* AliHBTQInvCorrelFctn::GetResult()
fc13079c 37{
38 //returns the scaled ratio
39 delete fRatio;
40 fRatio = GetRatio(Scale());
41 return fRatio;
953577f3 42}
43/*************************************************************************************/
44/*************************************************************************************/
45/*************************************************************************************/
46
3cc1fefe 47ClassImp(AliHBTOutSideLongFctn)
48
49AliHBTOutSideLongFctn::AliHBTOutSideLongFctn(Int_t nXbins, Double_t maxXval, Double_t minXval,
50 Int_t nYbins, Double_t maxYval, Double_t minYval,
51 Int_t nZbins, Double_t maxZval, Double_t minZval):
52 AliHBTOnePairFctn3D(nXbins,maxXval,minXval,nYbins,maxYval,minYval,nZbins,maxZval,minZval)
53{
f78d233e 54//ctor
3cc1fefe 55 fWriteNumAndDen = kTRUE;//change default behaviour
56 Rename("qoslcf","Q_{out}-Q_{side}-Q_{long} Correlation Fctn");
57}
f78d233e 58/*************************************************************************************/
3cc1fefe 59
f78d233e 60TH1* AliHBTOutSideLongFctn::GetResult()
61{
62 //returns the scaled ratio
63 delete fRatio;
64 fRatio = GetRatio(Scale());
65 return fRatio;
66}
3cc1fefe 67/*************************************************************************************/
68
953577f3 69ClassImp(AliHBTQOutCMSLCCorrelFctn)
e6e21fa2 70
71AliHBTQOutCMSLCCorrelFctn::AliHBTQOutCMSLCCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
72 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
73{
74 //ctor
75 fWriteNumAndDen = kTRUE;//change default behaviour
76 Rename("qoutcf","Q_{out} Correlation Function");
77}
78/*************************************************************************************/
79
953577f3 80TH1* AliHBTQOutCMSLCCorrelFctn::GetResult()
1b446896 81{
fc13079c 82 //returns the scaled ratio
83 delete fRatio;
84 fRatio = GetRatio(Scale());
85 return fRatio;
1b446896 86}
953577f3 87/*************************************************************************************/
88/*************************************************************************************/
89/*************************************************************************************/
90
91ClassImp(AliHBTQLongCMSLCCorrelFctn)
e6e21fa2 92
93AliHBTQLongCMSLCCorrelFctn::AliHBTQLongCMSLCCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
94 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
95{
96 //ctor
97 fWriteNumAndDen = kTRUE;//change default behaviour
98 Rename("qlongcf","Q_{long} Correlation Function");
99}
100/*************************************************************************************/
101
953577f3 102TH1* AliHBTQLongCMSLCCorrelFctn::GetResult()
103{
fc13079c 104 //returns the scaled ratio
105 delete fRatio;
106 fRatio = GetRatio(Scale());
107 return fRatio;
953577f3 108}
109/*************************************************************************************/
110/*************************************************************************************/
111/*************************************************************************************/
112
113ClassImp(AliHBTQSideCMSLCCorrelFctn)
e6e21fa2 114
115AliHBTQSideCMSLCCorrelFctn::AliHBTQSideCMSLCCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
116 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
117{
118 //ctor
119 fWriteNumAndDen = kTRUE;//change default behaviour
120 Rename("qsidecf","Q_{side} Correlation Function");
121}
122/*************************************************************************************/
123
953577f3 124TH1* AliHBTQSideCMSLCCorrelFctn::GetResult()
125{
fc13079c 126 //returns the scaled ratio
127 delete fRatio;
128 fRatio = GetRatio(Scale());
129 return fRatio;
953577f3 130}
131
1b446896 132
953577f3 133/*************************************************************************************/
134/*************************************************************************************/
135/*************************************************************************************/
1b446896 136
137ClassImp(AliHBTInvMassCorrelFctn)
138
e6e21fa2 139AliHBTInvMassCorrelFctn::AliHBTInvMassCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
140 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
1b446896 141{
e6e21fa2 142 //ctor
143 fWriteNumAndDen = kTRUE;//change default behaviour
144 Rename("InvMass CF","Invariant Mass Correlation Function");
1b446896 145}
146
147TH1* AliHBTInvMassCorrelFctn::GetResult()
148{
e6e21fa2 149 //returns result
fc13079c 150 return GetNumerator();
1b446896 151}
4866a439 152/*************************************************************************************/
153/*************************************************************************************/
154/*************************************************************************************/
155
156ClassImp(AliHBTTwoKStarCorrelFctn)
157
e6e21fa2 158AliHBTTwoKStarCorrelFctn::AliHBTTwoKStarCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
159 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
4866a439 160{
e6e21fa2 161 //ctor
162 fWriteNumAndDen = kTRUE;//change default behaviour
4866a439 163 Rename("twokstarcf","2K^{*} Correlation Function");
164}
165
166/*************************************************************************************/
167
168TH1* AliHBTTwoKStarCorrelFctn::GetResult()
169{
fc13079c 170 //returns the scaled ratio
171 delete fRatio;
172 fRatio = GetRatio(Scale());
173 return fRatio;
4866a439 174}
175
176/*************************************************************************************/