Coding Violations Corrected.
[u/mrichter/AliRoot.git] / HBTAN / AliHBTCorrelFctn.h
1 #ifndef ALIHBTCORRELFUNCTION_H
2 #define ALIHBTCORRELFUNCTION_H
3 //____________________________________________________________________________
4 //////////////////////////////////////////////////////////////////////////////
5 //
6 // class AliHBTQInvCorrelFctn
7 // class AliHBTQOutCMSLCCorrelFctn
8 // class AliHBTQLongCMSLCCorrelFctn
9 // class AliHBTQSideCMSLCCorrelFctn
10 // class AliHBTInvMassCorrelFctn
11 // class AliHBTTwoKStarCorrelFctn
12 //
13 // Set of functions:
14 //   Q Invaraint Correlation Function
15 //   Invariant Mass Function
16 //
17 // more info: http://aliweb.cern.ch/people/skowron/analyzer/index.html
18 // Piotr.Skowronski@cern.ch
19 //
20 //////////////////////////////////////////////////////////////////////////////
21
22 #include "AliHBTFunction.h"
23 #include <Riostream.h>
24
25 /*************************************************************************************/ 
26 class AliHBTQInvCorrelFctn: public AliHBTOnePairFctn1D
27 {
28 //Q Invaraint Correlation Function
29 //1D two particle function 
30  public:
31    AliHBTQInvCorrelFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
32    virtual ~AliHBTQInvCorrelFctn(){};
33    TH1* GetResult();
34  protected:
35    Double_t GetValue(AliHBTPair * pair){return pair->GetQInv();}
36  private:  
37    ClassDef(AliHBTQInvCorrelFctn,1)
38  
39 };
40 /*************************************************************************************/ 
41
42 class AliHBTQOutCMSLCCorrelFctn: public AliHBTOnePairFctn1D
43 {
44 //Q OutCMSLCaraint Correlation Function
45 //1D two particle function 
46  public:
47    AliHBTQOutCMSLCCorrelFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
48    virtual ~AliHBTQOutCMSLCCorrelFctn(){};
49    TH1* GetResult();
50  protected:
51    Double_t GetValue(AliHBTPair * pair){return pair->GetQOutCMSLC();}
52  private:  
53     ClassDef(AliHBTQOutCMSLCCorrelFctn,1)
54 };
55 /*************************************************************************************/ 
56
57 class AliHBTQLongCMSLCCorrelFctn: public AliHBTOnePairFctn1D
58 {
59 //Q LongCMSLCaraint Correlation Function
60 //1D two particle function 
61  public:
62    AliHBTQLongCMSLCCorrelFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
63    virtual ~AliHBTQLongCMSLCCorrelFctn(){};
64    TH1* GetResult();
65  protected:
66    Double_t GetValue(AliHBTPair * pair){return pair->GetQLongCMSLC();}
67  private:  
68     ClassDef(AliHBTQLongCMSLCCorrelFctn,1)
69 };
70 /*************************************************************************************/ 
71
72 class AliHBTQSideCMSLCCorrelFctn: public AliHBTOnePairFctn1D
73 {
74 //Q SideCMSLCaraint Correlation Function
75 //1D two particle function 
76  public:
77    AliHBTQSideCMSLCCorrelFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
78    virtual ~AliHBTQSideCMSLCCorrelFctn(){}
79    TH1* GetResult();
80  protected:
81    Double_t GetValue(AliHBTPair * pair){return pair->GetQSideCMSLC();}
82  private:  
83     ClassDef(AliHBTQSideCMSLCCorrelFctn,1)
84 };
85 /*************************************************************************************/ 
86
87 class AliHBTInvMassCorrelFctn: public AliHBTOnePairFctn1D
88 {
89 //   Invariant Mass Function 
90  public:
91    AliHBTInvMassCorrelFctn(Int_t nbins = 2000, Double_t maxXval = 2., Double_t minXval = 0.0);
92    virtual ~AliHBTInvMassCorrelFctn(){};
93    TH1* GetResult();
94  protected:
95    Double_t GetValue(AliHBTPair * pair) { return pair->GetInvMass();}
96  private:  
97     ClassDef(AliHBTInvMassCorrelFctn,1)
98 };
99
100 /*************************************************************************************/ 
101
102 class AliHBTTwoKStarCorrelFctn: public AliHBTOnePairFctn1D
103 {
104 //   Correlation Function of 2*KStar
105  public:
106    AliHBTTwoKStarCorrelFctn(Int_t nbins = 200, Double_t maxXval = 0.15, Double_t minXval = 0.0);
107    virtual ~AliHBTTwoKStarCorrelFctn(){};
108    TH1* GetResult();
109  protected:
110    Double_t GetValue(AliHBTPair * pair) { return 2.0*pair->GetKStar();}
111  private:  
112     ClassDef(AliHBTTwoKStarCorrelFctn,1)
113 };
114
115 #endif