Coordinates are transformed to a Rhombus
[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{
54 fWriteNumAndDen = kTRUE;//change default behaviour
55 Rename("qoslcf","Q_{out}-Q_{side}-Q_{long} Correlation Fctn");
56}
57
58/*************************************************************************************/
59
953577f3 60ClassImp(AliHBTQOutCMSLCCorrelFctn)
e6e21fa2 61
62AliHBTQOutCMSLCCorrelFctn::AliHBTQOutCMSLCCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
63 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
64{
65 //ctor
66 fWriteNumAndDen = kTRUE;//change default behaviour
67 Rename("qoutcf","Q_{out} Correlation Function");
68}
69/*************************************************************************************/
70
953577f3 71TH1* AliHBTQOutCMSLCCorrelFctn::GetResult()
1b446896 72{
fc13079c 73 //returns the scaled ratio
74 delete fRatio;
75 fRatio = GetRatio(Scale());
76 return fRatio;
1b446896 77}
953577f3 78/*************************************************************************************/
79/*************************************************************************************/
80/*************************************************************************************/
81
82ClassImp(AliHBTQLongCMSLCCorrelFctn)
e6e21fa2 83
84AliHBTQLongCMSLCCorrelFctn::AliHBTQLongCMSLCCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
85 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
86{
87 //ctor
88 fWriteNumAndDen = kTRUE;//change default behaviour
89 Rename("qlongcf","Q_{long} Correlation Function");
90}
91/*************************************************************************************/
92
953577f3 93TH1* AliHBTQLongCMSLCCorrelFctn::GetResult()
94{
fc13079c 95 //returns the scaled ratio
96 delete fRatio;
97 fRatio = GetRatio(Scale());
98 return fRatio;
953577f3 99}
100/*************************************************************************************/
101/*************************************************************************************/
102/*************************************************************************************/
103
104ClassImp(AliHBTQSideCMSLCCorrelFctn)
e6e21fa2 105
106AliHBTQSideCMSLCCorrelFctn::AliHBTQSideCMSLCCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
107 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
108{
109 //ctor
110 fWriteNumAndDen = kTRUE;//change default behaviour
111 Rename("qsidecf","Q_{side} Correlation Function");
112}
113/*************************************************************************************/
114
953577f3 115TH1* AliHBTQSideCMSLCCorrelFctn::GetResult()
116{
fc13079c 117 //returns the scaled ratio
118 delete fRatio;
119 fRatio = GetRatio(Scale());
120 return fRatio;
953577f3 121}
122
1b446896 123
953577f3 124/*************************************************************************************/
125/*************************************************************************************/
126/*************************************************************************************/
1b446896 127
128ClassImp(AliHBTInvMassCorrelFctn)
129
e6e21fa2 130AliHBTInvMassCorrelFctn::AliHBTInvMassCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
131 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
1b446896 132{
e6e21fa2 133 //ctor
134 fWriteNumAndDen = kTRUE;//change default behaviour
135 Rename("InvMass CF","Invariant Mass Correlation Function");
1b446896 136}
137
138TH1* AliHBTInvMassCorrelFctn::GetResult()
139{
e6e21fa2 140 //returns result
fc13079c 141 return GetNumerator();
1b446896 142}
4866a439 143/*************************************************************************************/
144/*************************************************************************************/
145/*************************************************************************************/
146
147ClassImp(AliHBTTwoKStarCorrelFctn)
148
e6e21fa2 149AliHBTTwoKStarCorrelFctn::AliHBTTwoKStarCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
150 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
4866a439 151{
e6e21fa2 152 //ctor
153 fWriteNumAndDen = kTRUE;//change default behaviour
4866a439 154 Rename("twokstarcf","2K^{*} Correlation Function");
155}
156
157/*************************************************************************************/
158
159TH1* AliHBTTwoKStarCorrelFctn::GetResult()
160{
fc13079c 161 //returns the scaled ratio
162 delete fRatio;
163 fRatio = GetRatio(Scale());
164 return fRatio;
4866a439 165}
166
167/*************************************************************************************/