TwoKStar Correl. Fctn. added
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 29 Oct 2002 14:18:13 +0000 (14:18 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 29 Oct 2002 14:18:13 +0000 (14:18 +0000)
HBTAN/AliHBTCorrelFctn.cxx
HBTAN/AliHBTCorrelFctn.h
HBTAN/HBTAnalysisLinkDef.h

index 49121f37f5d2542a778046f74d6e4d21db6fc3a8..bda4216832f208ce00164b8b863ac7028b8d77e7 100644 (file)
@@ -71,3 +71,24 @@ TH1* AliHBTInvMassCorrelFctn::GetResult()
  TString name = fName + " Result";
  return (TH1*)GetNumerator()->Clone(name.Data());
 }
+/*************************************************************************************/ 
+/*************************************************************************************/ 
+/*************************************************************************************/ 
+
+ClassImp(AliHBTTwoKStarCorrelFctn)
+
+AliHBTTwoKStarCorrelFctn::
+AliHBTTwoKStarCorrelFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
+                     AliHBTOnePairFctn1D(nbins,maxXval,minXval)
+{
+ Rename("twokstarcf","2K^{*} Correlation Function");
+}
+
+/*************************************************************************************/ 
+
+TH1* AliHBTTwoKStarCorrelFctn::GetResult()
+{  
+ return GetRatio(Scale());
+}
+
+/*************************************************************************************/ 
index 1b90a16c548817962bbb4545f7f3fae704fe0bc9..c1e21ec32284b26d33083f062d2cede48c83460c 100644 (file)
@@ -93,6 +93,21 @@ class AliHBTInvMassCorrelFctn: public AliHBTOnePairFctn1D
  
 };
 
+/*************************************************************************************/ 
+
+class AliHBTTwoKStarCorrelFctn: public AliHBTOnePairFctn1D
+{
+//   Correlation Function of 2*KStar
+ public:
+   AliHBTTwoKStarCorrelFctn(Int_t nbins = 200, Double_t maxXval = 0.15, Double_t minXval = 0.0);
+   virtual ~AliHBTTwoKStarCorrelFctn(){};
+   TH1* GetResult();
+ protected:
+   Double_t GetValue(AliHBTPair * pair) { return 2.0*pair->GetKStar();}
+  public:
+    ClassDef(AliHBTTwoKStarCorrelFctn,1)
+};
 
 
 #endif
index 327a91a9283e96dcdac1e526b5973cb41814ce9d..3ae014d3b2257a8647692412931cd995078d5c6e 100644 (file)
@@ -67,7 +67,7 @@
 #pragma link C++ class AliHBTReaderInternal+;
 
 #pragma link C++ class AliHBTQInvCorrelFctn+;
-
+#pragma link C++ class AliHBTTwoKStarCorrelFctn+;
 #pragma link C++ class AliHBTQOutCMSLCCorrelFctn+;
 #pragma link C++ class AliHBTQLongCMSLCCorrelFctn+;
 #pragma link C++ class AliHBTQSideCMSLCCorrelFctn+;