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