Coding Violations Corrected.
[u/mrichter/AliRoot.git] / HBTAN / AliHBTCorrelFctn.cxx
CommitLineData
1b446896 1#include "AliHBTCorrelFctn.h"
88cb7938 2//Set of Correlation fuctions
3//AliHBTQInvCorrelFctn - Q Invariant correlatyion function
953577f3 4//
5//
6//
1b446896 7
8ClassImp(AliHBTQInvCorrelFctn)
9
88cb7938 10//Corroleation function is created from dividing two histograms of QInvariant:
11// of particles from the same evnt
12//by
13// of particles from different events
1b446896 14
e6e21fa2 15AliHBTQInvCorrelFctn::AliHBTQInvCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
16 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
953577f3 17{
e6e21fa2 18 fWriteNumAndDen = kTRUE;//change default behaviour
953577f3 19 Rename("qinvcf","Q_{inv} Correlation Function");
20}
e6e21fa2 21/*************************************************************************************/
953577f3 22
1b446896 23TH1* AliHBTQInvCorrelFctn::GetResult()
953577f3 24{
25 return GetRatio(Scale());
26}
27/*************************************************************************************/
28/*************************************************************************************/
29/*************************************************************************************/
30
31ClassImp(AliHBTQOutCMSLCCorrelFctn)
e6e21fa2 32
33AliHBTQOutCMSLCCorrelFctn::AliHBTQOutCMSLCCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
34 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
35{
36 //ctor
37 fWriteNumAndDen = kTRUE;//change default behaviour
38 Rename("qoutcf","Q_{out} Correlation Function");
39}
40/*************************************************************************************/
41
953577f3 42TH1* AliHBTQOutCMSLCCorrelFctn::GetResult()
1b446896 43{
e6e21fa2 44 //returns result of the function
953577f3 45 return GetRatio(Scale());
1b446896 46}
953577f3 47/*************************************************************************************/
48/*************************************************************************************/
49/*************************************************************************************/
50
51ClassImp(AliHBTQLongCMSLCCorrelFctn)
e6e21fa2 52
53AliHBTQLongCMSLCCorrelFctn::AliHBTQLongCMSLCCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
54 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
55{
56 //ctor
57 fWriteNumAndDen = kTRUE;//change default behaviour
58 Rename("qlongcf","Q_{long} Correlation Function");
59}
60/*************************************************************************************/
61
953577f3 62TH1* AliHBTQLongCMSLCCorrelFctn::GetResult()
63{
e6e21fa2 64 //returns result of the function
953577f3 65 return GetRatio(Scale());
66}
67/*************************************************************************************/
68/*************************************************************************************/
69/*************************************************************************************/
70
71ClassImp(AliHBTQSideCMSLCCorrelFctn)
e6e21fa2 72
73AliHBTQSideCMSLCCorrelFctn::AliHBTQSideCMSLCCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
74 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
75{
76 //ctor
77 fWriteNumAndDen = kTRUE;//change default behaviour
78 Rename("qsidecf","Q_{side} Correlation Function");
79}
80/*************************************************************************************/
81
953577f3 82TH1* AliHBTQSideCMSLCCorrelFctn::GetResult()
83{
e6e21fa2 84 //returns result
953577f3 85 return GetRatio(Scale());
86}
87
1b446896 88
953577f3 89/*************************************************************************************/
90/*************************************************************************************/
91/*************************************************************************************/
1b446896 92
93ClassImp(AliHBTInvMassCorrelFctn)
94
e6e21fa2 95AliHBTInvMassCorrelFctn::AliHBTInvMassCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
96 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
1b446896 97{
e6e21fa2 98 //ctor
99 fWriteNumAndDen = kTRUE;//change default behaviour
100 Rename("InvMass CF","Invariant Mass Correlation Function");
1b446896 101}
102
103TH1* AliHBTInvMassCorrelFctn::GetResult()
104{
e6e21fa2 105 //returns result
953577f3 106 TString name = fName + " Result";
107 return (TH1*)GetNumerator()->Clone(name.Data());
1b446896 108}
4866a439 109/*************************************************************************************/
110/*************************************************************************************/
111/*************************************************************************************/
112
113ClassImp(AliHBTTwoKStarCorrelFctn)
114
e6e21fa2 115AliHBTTwoKStarCorrelFctn::AliHBTTwoKStarCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
116 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
4866a439 117{
e6e21fa2 118 //ctor
119 fWriteNumAndDen = kTRUE;//change default behaviour
4866a439 120 Rename("twokstarcf","2K^{*} Correlation Function");
121}
122
123/*************************************************************************************/
124
125TH1* AliHBTTwoKStarCorrelFctn::GetResult()
126{
e6e21fa2 127 //returns result
4866a439 128 return GetRatio(Scale());
129}
130
131/*************************************************************************************/