Bug corrections
[u/mrichter/AliRoot.git] / HBTAN / AliHBTCorrelFctn.h
index 88dce65..09159c9 100644 (file)
@@ -1,18 +1,29 @@
 #ifndef ALIHBTCORRELFUNCTION_H
 #define ALIHBTCORRELFUNCTION_H
-
-#include "AliHBTFunction.h"
-#include "AliHBTParticle.h"
-#include <Riostream.h>
-//Set of functions:
+//____________________________________________________________________________
+//////////////////////////////////////////////////////////////////////////////
+//
+// class AliHBTQInvCorrelFctn
+// class AliHBTQOutCMSLCCorrelFctn
+// class AliHBTQLongCMSLCCorrelFctn
+// class AliHBTQSideCMSLCCorrelFctn
+// class AliHBTInvMassCorrelFctn
+// class AliHBTTwoKStarCorrelFctn
+//
+// Set of functions:
 //   Q Invaraint Correlation Function
 //   Invariant Mass Function
 //
-//more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html
-//Piotr.Skowronski@cern.ch
+// more info: http://aliweb.cern.ch/people/skowron/analyzer/index.html
+// Piotr.Skowronski@cern.ch
+//
+//////////////////////////////////////////////////////////////////////////////
+
+#include "AliHBTFunction.h"
+#include <Riostream.h>
 
 /*************************************************************************************/ 
-class AliHBTQInvCorrelFctn: public AliHBTOnePairFctn1D
+class AliHBTQInvCorrelFctn: public AliHBTOnePairFctn1D, public AliHBTCorrelFunction
 {
 //Q Invaraint Correlation Function
 //1D two particle function 
@@ -22,13 +33,33 @@ class AliHBTQInvCorrelFctn: public AliHBTOnePairFctn1D
    TH1* GetResult();
  protected:
    Double_t GetValue(AliHBTPair * pair){return pair->GetQInv();}
+ private:  
+   ClassDef(AliHBTQInvCorrelFctn,2)
+};
+/*************************************************************/
+
+class AliHBTOutSideLongFctn: public AliHBTOnePairFctn3D, public AliHBTCorrelFunction
+{
+
   public:
-    ClassDef(AliHBTQInvCorrelFctn,1)
+    AliHBTOutSideLongFctn(Int_t nXbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0,
+                             Int_t nYbins = 100, Double_t maxYval = 0.15, Double_t minYval = 0.0,
+                Int_t nZbins = 100, Double_t maxZval = 0.15, Double_t minZval = 0.0);
+    virtual  ~AliHBTOutSideLongFctn(){}
+
+    TH1* GetResult();
  
+  protected:
+    void GetValues(AliHBTPair* pair, Double_t& x, Double_t& y, Double_t& z)
+      { x=TMath::Abs(pair->GetQOutCMSLC()); y=TMath::Abs(pair->GetQSideCMSLC()); z=TMath::Abs(pair->GetQLongCMSLC());} 
+
+  ClassDef(AliHBTOutSideLongFctn,1)
 };
+
 /*************************************************************************************/ 
 
-class AliHBTQOutCMSLCCorrelFctn: public AliHBTOnePairFctn1D
+class AliHBTQOutCMSLCCorrelFctn: public AliHBTOnePairFctn1D, public AliHBTCorrelFunction
 {
 //Q OutCMSLCaraint Correlation Function
 //1D two particle function 
@@ -38,13 +69,12 @@ class AliHBTQOutCMSLCCorrelFctn: public AliHBTOnePairFctn1D
    TH1* GetResult();
  protected:
    Double_t GetValue(AliHBTPair * pair){return pair->GetQOutCMSLC();}
-  public:
-    ClassDef(AliHBTQOutCMSLCCorrelFctn,1)
+ private:  
+    ClassDef(AliHBTQOutCMSLCCorrelFctn,2)
 };
 /*************************************************************************************/ 
 
-class AliHBTQLongCMSLCCorrelFctn: public AliHBTOnePairFctn1D
+class AliHBTQLongCMSLCCorrelFctn: public AliHBTOnePairFctn1D, public AliHBTCorrelFunction
 {
 //Q LongCMSLCaraint Correlation Function
 //1D two particle function 
@@ -54,13 +84,12 @@ class AliHBTQLongCMSLCCorrelFctn: public AliHBTOnePairFctn1D
    TH1* GetResult();
  protected:
    Double_t GetValue(AliHBTPair * pair){return pair->GetQLongCMSLC();}
-  public:
-    ClassDef(AliHBTQLongCMSLCCorrelFctn,1)
+ private:  
+    ClassDef(AliHBTQLongCMSLCCorrelFctn,2)
 };
 /*************************************************************************************/ 
 
-class AliHBTQSideCMSLCCorrelFctn: public AliHBTOnePairFctn1D
+class AliHBTQSideCMSLCCorrelFctn: public AliHBTOnePairFctn1D, public AliHBTCorrelFunction
 {
 //Q SideCMSLCaraint Correlation Function
 //1D two particle function 
@@ -70,9 +99,8 @@ class AliHBTQSideCMSLCCorrelFctn: public AliHBTOnePairFctn1D
    TH1* GetResult();
  protected:
    Double_t GetValue(AliHBTPair * pair){return pair->GetQSideCMSLC();}
-  public:
-    ClassDef(AliHBTQSideCMSLCCorrelFctn,1)
+ private:  
+    ClassDef(AliHBTQSideCMSLCCorrelFctn,2)
 };
 /*************************************************************************************/ 
 
@@ -85,14 +113,13 @@ class AliHBTInvMassCorrelFctn: public AliHBTOnePairFctn1D
    TH1* GetResult();
  protected:
    Double_t GetValue(AliHBTPair * pair) { return pair->GetInvMass();}
-  public:
+ private:  
     ClassDef(AliHBTInvMassCorrelFctn,1)
 };
 
 /*************************************************************************************/ 
 
-class AliHBTTwoKStarCorrelFctn: public AliHBTOnePairFctn1D
+class AliHBTTwoKStarCorrelFctn: public AliHBTOnePairFctn1D, public AliHBTCorrelFunction
 {
 //   Correlation Function of 2*KStar
  public:
@@ -101,10 +128,8 @@ class AliHBTTwoKStarCorrelFctn: public AliHBTOnePairFctn1D
    TH1* GetResult();
  protected:
    Double_t GetValue(AliHBTPair * pair) { return 2.0*pair->GetKStar();}
-  public:
-    ClassDef(AliHBTTwoKStarCorrelFctn,1)
+ private:  
+    ClassDef(AliHBTTwoKStarCorrelFctn,2)
 };
 
-
 #endif