Qt correlation function added
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Jul 2004 13:38:47 +0000 (13:38 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Jul 2004 13:38:47 +0000 (13:38 +0000)
HBTAN/AliHBTCorrelFctn.cxx
HBTAN/AliHBTCorrelFctn.h
HBTAN/HBTAnalysisLinkDef.h

index 3ef2c1f..b244336 100644 (file)
@@ -158,7 +158,7 @@ AliHBTQtLCMSCorrelFctn::AliHBTQtLCMSCorrelFctn(Int_t nbins, Double_t maxXval, Do
 {
   //ctor
  fWriteNumAndDen = kTRUE;//change default behaviour
- Rename("Qtcf","Q_{long} Correlation Function");
+ Rename("Qtcf","Q_{t}(LCMS) Correlation Function");
 }
 /*************************************************************************************/ 
     
@@ -172,6 +172,27 @@ TH1* AliHBTQtLCMSCorrelFctn::GetResult()
 /*************************************************************************************/ 
 /*************************************************************************************/ 
 /*************************************************************************************/ 
+ClassImp(AliHBTQtCorrelFctn)
+    
+AliHBTQtCorrelFctn::AliHBTQtCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
+ AliHBTOnePairFctn1D(nbins,maxXval,minXval)
+{
+  //ctor
+ fWriteNumAndDen = kTRUE;//change default behaviour
+ Rename("qtcf","Q_{t} Correlation Function");
+}
+/*************************************************************************************/ 
+    
+TH1* AliHBTQtCorrelFctn::GetResult()
+{
+ //returns the scaled ratio
+ delete fRatio;
+ fRatio = GetRatio(Scale());
+ return fRatio;
+}
+/*************************************************************************************/ 
+/*************************************************************************************/ 
+/*************************************************************************************/ 
 
 ClassImp(AliHBTInvMassCorrelFctn)
 
index c104d95..c2d7d3c 100644 (file)
@@ -120,6 +120,21 @@ class AliHBTQSideLCMSCorrelFctn: public AliHBTOnePairFctn1D, public AliHBTCorrel
 };
 /*************************************************************************************/ 
 
+class AliHBTQtCorrelFctn: public AliHBTOnePairFctn1D, public AliHBTCorrelFunction
+{
+//Q Longaraint Correlation Function
+//1D two particle function 
+ public:
+   AliHBTQtCorrelFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
+   virtual ~AliHBTQtCorrelFctn(){};
+   TH1* GetResult();
+ protected:
+   Double_t GetValue(AliHBTPair * pair) const {return pair->GetQt();}
+ private:  
+    ClassDef(AliHBTQtCorrelFctn,2)
+};
+/*************************************************************************************/ 
+
 class AliHBTInvMassCorrelFctn: public AliHBTOnePairFctn1D
 {
 //   Invariant Mass Function 
index 314fea2..944ce5e 100644 (file)
@@ -40,6 +40,7 @@
 #pragma link C++ class AliHBTQLongLCMSCorrelFctn+;
 #pragma link C++ class AliHBTQSideLCMSCorrelFctn+;
 #pragma link C++ class AliHBTQtLCMSCorrelFctn+;
+#pragma link C++ class AliHBTQtCorrelFctn+;
 #pragma link C++ class AliHBTAvSeparCorrelFctn+;
 
 #pragma link C++ class AliHBTInvMassCorrelFctn+;