Q transverse correlation function added
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Jul 2004 15:59:19 +0000 (15:59 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Jul 2004 15:59:19 +0000 (15:59 +0000)
HBTAN/AliHBTCorrelFctn.cxx
HBTAN/AliHBTCorrelFctn.h
HBTAN/HBTAnalysisLinkDef.h

index 69627a2..3ef2c1f 100644 (file)
@@ -151,6 +151,27 @@ TH1* AliHBTQSideLCMSCorrelFctn::GetResult()
 /*************************************************************************************/ 
 /*************************************************************************************/ 
 /*************************************************************************************/ 
+ClassImp(AliHBTQtLCMSCorrelFctn)
+    
+AliHBTQtLCMSCorrelFctn::AliHBTQtLCMSCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
+ AliHBTOnePairFctn1D(nbins,maxXval,minXval)
+{
+  //ctor
+ fWriteNumAndDen = kTRUE;//change default behaviour
+ Rename("Qtcf","Q_{long} Correlation Function");
+}
+/*************************************************************************************/ 
+    
+TH1* AliHBTQtLCMSCorrelFctn::GetResult()
+{
+ //returns the scaled ratio
+ delete fRatio;
+ fRatio = GetRatio(Scale());
+ return fRatio;
+}
+/*************************************************************************************/ 
+/*************************************************************************************/ 
+/*************************************************************************************/ 
 
 ClassImp(AliHBTInvMassCorrelFctn)
 
index bef8824..c104d95 100644 (file)
@@ -90,6 +90,21 @@ class AliHBTQLongLCMSCorrelFctn: public AliHBTOnePairFctn1D, public AliHBTCorrel
 };
 /*************************************************************************************/ 
 
+class AliHBTQtLCMSCorrelFctn: public AliHBTOnePairFctn1D, public AliHBTCorrelFunction
+{
+//Q LongLCMSaraint Correlation Function
+//1D two particle function 
+ public:
+   AliHBTQtLCMSCorrelFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
+   virtual ~AliHBTQtLCMSCorrelFctn(){};
+   TH1* GetResult();
+ protected:
+   Double_t GetValue(AliHBTPair * pair) const {return pair->GetQtLCMS();}
+ private:  
+    ClassDef(AliHBTQtLCMSCorrelFctn,2)
+};
+/*************************************************************************************/ 
+
 class AliHBTQSideLCMSCorrelFctn: public AliHBTOnePairFctn1D, public AliHBTCorrelFunction
 {
 //Q SideLCMSaraint Correlation Function
index aa5eb4e..314fea2 100644 (file)
@@ -39,6 +39,7 @@
 #pragma link C++ class AliHBTQOutLCMSCorrelFctn+;
 #pragma link C++ class AliHBTQLongLCMSCorrelFctn+;
 #pragma link C++ class AliHBTQSideLCMSCorrelFctn+;
+#pragma link C++ class AliHBTQtLCMSCorrelFctn+;
 #pragma link C++ class AliHBTAvSeparCorrelFctn+;
 
 #pragma link C++ class AliHBTInvMassCorrelFctn+;