New correlation fuctions added
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Nov 2001 20:04:43 +0000 (20:04 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Nov 2001 20:04:43 +0000 (20:04 +0000)
HBTAN/AliHBTCorrelFctn.cxx
HBTAN/AliHBTCorrelFctn.h

index aa76170..8b8f9bd 100644 (file)
@@ -1,6 +1,9 @@
 #include "AliHBTCorrelFctn.h"
-
-
+//Set of Correlation fuctions
+//AliHBTQInvCorrelFctn - Q Invariant correlatyion function
+//
+//
+//
 
 ClassImp(AliHBTQInvCorrelFctn)
 
@@ -9,11 +12,50 @@ ClassImp(AliHBTQInvCorrelFctn)
 //by 
 //  of particles from different events
 
+AliHBTQInvCorrelFctn::
+AliHBTQInvCorrelFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0):
+                     AliHBTTwoPartFctn1D(nbins,maxXval,minXval)
+{
+ Rename("qinvcf","Q_{inv} Correlation Function");
+}
+
+
 TH1* AliHBTQInvCorrelFctn::GetResult()
+{  
+ return GetRatio(Scale());
+}
+/*************************************************************************************/ 
+/*************************************************************************************/ 
+/*************************************************************************************/ 
+
+ClassImp(AliHBTQOutCMSLCCorrelFctn)
+TH1* AliHBTQOutCMSLCCorrelFctn::GetResult()
 {
- return GetRatio(GetDenominator()->GetMaximum()/GetNumerator()->GetMaximum());
+ return GetRatio(Scale());
 }
+/*************************************************************************************/ 
+/*************************************************************************************/ 
+/*************************************************************************************/ 
+
+ClassImp(AliHBTQLongCMSLCCorrelFctn)
+TH1* AliHBTQLongCMSLCCorrelFctn::GetResult()
+{
+ return GetRatio(Scale());
+}
+/*************************************************************************************/ 
+/*************************************************************************************/ 
+/*************************************************************************************/ 
+
+ClassImp(AliHBTQSideCMSLCCorrelFctn)
+TH1* AliHBTQSideCMSLCCorrelFctn::GetResult()
+{
+ return GetRatio(Scale());
+}
+
 
+/*************************************************************************************/ 
+/*************************************************************************************/ 
+/*************************************************************************************/ 
 
 ClassImp(AliHBTInvMassCorrelFctn)
 
@@ -26,5 +68,6 @@ AliHBTInvMassCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
 
 TH1* AliHBTInvMassCorrelFctn::GetResult()
 {
- return GetRatio(GetDenominator()->GetMaximum()/GetNumerator()->GetMaximum());
+ TString name = fName + " Result";
+ return (TH1*)GetNumerator()->Clone(name.Data());
 }
index b34919c..8b4ee79 100644 (file)
@@ -3,6 +3,7 @@
 
 #include "AliHBTFunction.h"
 #include "AliHBTParticle.h"
+#include <iostream.h>
 //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
 
-
+/*************************************************************************************/ 
 class AliHBTQInvCorrelFctn: public AliHBTTwoPartFctn1D
 {
 //Q Invaraint Correlation Function
 //1D two particle function 
  public:
-   AliHBTQInvCorrelFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0):
-                        AliHBTTwoPartFctn1D(nbins,maxXval,minXval){}
+   AliHBTQInvCorrelFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
    virtual ~AliHBTQInvCorrelFctn(){};
    TH1* GetResult();
  protected:
@@ -26,7 +26,58 @@ class AliHBTQInvCorrelFctn: public AliHBTTwoPartFctn1D
     ClassDef(AliHBTQInvCorrelFctn,1)
  
 };
+/*************************************************************************************/ 
+
+class AliHBTQOutCMSLCCorrelFctn: public AliHBTTwoPartFctn1D
+{
+//Q OutCMSLCaraint Correlation Function
+//1D two particle function 
+ public:
+   AliHBTQOutCMSLCCorrelFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0):
+                        AliHBTTwoPartFctn1D(nbins,maxXval,minXval){}
+   virtual ~AliHBTQOutCMSLCCorrelFctn(){};
+   TH1* GetResult();
+ protected:
+   Double_t GetValue(AliHBTPair * pair){return pair->GetQOutCMSLC();}
+  public:
+    ClassDef(AliHBTQOutCMSLCCorrelFctn,1)
+};
+/*************************************************************************************/ 
 
+class AliHBTQLongCMSLCCorrelFctn: public AliHBTTwoPartFctn1D
+{
+//Q LongCMSLCaraint Correlation Function
+//1D two particle function 
+ public:
+   AliHBTQLongCMSLCCorrelFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0):
+                        AliHBTTwoPartFctn1D(nbins,maxXval,minXval){}
+   virtual ~AliHBTQLongCMSLCCorrelFctn(){};
+   TH1* GetResult();
+ protected:
+   Double_t GetValue(AliHBTPair * pair){return pair->GetQLongCMSLC();}
+  public:
+    ClassDef(AliHBTQLongCMSLCCorrelFctn,1)
+};
+/*************************************************************************************/ 
+
+class AliHBTQSideCMSLCCorrelFctn: public AliHBTTwoPartFctn1D
+{
+//Q SideCMSLCaraint Correlation Function
+//1D two particle function 
+ public:
+   AliHBTQSideCMSLCCorrelFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0):
+                        AliHBTTwoPartFctn1D(nbins,maxXval,minXval){}
+   virtual ~AliHBTQSideCMSLCCorrelFctn(){};
+   TH1* GetResult();
+ protected:
+   Double_t GetValue(AliHBTPair * pair){return pair->GetQSideCMSLC();}
+  public:
+    ClassDef(AliHBTQSideCMSLCCorrelFctn,1)
+};
+/*************************************************************************************/ 
 
 class AliHBTInvMassCorrelFctn: public AliHBTTwoPartFctn1D
 {