Corrected drawing routine for RecHit3D (J. Barbosa)
[u/mrichter/AliRoot.git] / HBTAN / AliHBTCorrelFctn.cxx
... / ...
CommitLineData
1#include "AliHBTCorrelFctn.h"
2//Set of Correlation fuctions
3//AliHBTQInvCorrelFctn - Q Invariant correlatyion function
4//
5//
6//
7
8ClassImp(AliHBTQInvCorrelFctn)
9
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
14
15AliHBTQInvCorrelFctn::
16AliHBTQInvCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
17 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
18{
19 Rename("qinvcf","Q_{inv} Correlation Function");
20}
21
22
23TH1* AliHBTQInvCorrelFctn::GetResult()
24{
25 return GetRatio(Scale());
26}
27/*************************************************************************************/
28/*************************************************************************************/
29/*************************************************************************************/
30
31ClassImp(AliHBTQOutCMSLCCorrelFctn)
32TH1* AliHBTQOutCMSLCCorrelFctn::GetResult()
33{
34 return GetRatio(Scale());
35}
36/*************************************************************************************/
37/*************************************************************************************/
38/*************************************************************************************/
39
40ClassImp(AliHBTQLongCMSLCCorrelFctn)
41TH1* AliHBTQLongCMSLCCorrelFctn::GetResult()
42{
43 return GetRatio(Scale());
44}
45/*************************************************************************************/
46/*************************************************************************************/
47/*************************************************************************************/
48
49ClassImp(AliHBTQSideCMSLCCorrelFctn)
50TH1* AliHBTQSideCMSLCCorrelFctn::GetResult()
51{
52 return GetRatio(Scale());
53}
54
55
56/*************************************************************************************/
57/*************************************************************************************/
58/*************************************************************************************/
59
60ClassImp(AliHBTInvMassCorrelFctn)
61
62AliHBTInvMassCorrelFctn::
63AliHBTInvMassCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
64 AliHBTOnePairFctn1D(nbins,maxXval,minXval)
65{
66 Rename("InvMass CF","Invariant Mass Correlation Function");
67}
68
69TH1* AliHBTInvMassCorrelFctn::GetResult()
70{
71 TString name = fName + " Result";
72 return (TH1*)GetNumerator()->Clone(name.Data());
73}