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

index 517bdc4..2461859 100644 (file)
@@ -162,6 +162,40 @@ TH1* AliHBTWeightTheorQLongFctn::GetResult()
 /*************************************************************/
 /*************************************************************/
 
+ClassImp(AliHBTWeightTheorQtFctn)  
+/*************************************************************/
+
+AliHBTWeightTheorQtFctn::AliHBTWeightTheorQtFctn(Int_t nbins, Double_t maxXval, Double_t minXval):
+  AliHBTOnePairFctn1D(nbins,maxXval,minXval)
+{
+  //ctor
+ fWriteNumAndDen = kTRUE;//change default behaviour
+ Rename("wqttheorcf","Q_{t} Weight Theoretical Correlation Function");
+}
+/****************************************************************/
+
+void  AliHBTWeightTheorQtFctn::ProcessSameEventParticles(AliHBTPair* partpair)
+{
+  //Processes Particles and tracks Same different even
+  partpair  = CheckPair(partpair);
+  if (partpair == 0x0) return;
+  Double_t weight = partpair->GetWeight();
+  if(TMath::Abs(weight)<=10.) fNumerator->Fill(partpair->GetQt(),weight);
+} 
+/**************************************************************/
+
+TH1* AliHBTWeightTheorQtFctn::GetResult() 
+{
+ //returns the scaled ratio
+ delete fRatio;
+ fRatio = GetRatio(Scale());
+ return fRatio;
+}                    
+
+/*************************************************************/
+/*************************************************************/
+/*************************************************************/
+
 ClassImp(AliHBTWeightTheorOSLFctn)
 
 AliHBTWeightTheorOSLFctn::AliHBTWeightTheorOSLFctn(Int_t nXbins, Double_t maxXval, Double_t minXval,
index 5c0ab1a..798bafd 100644 (file)
@@ -88,6 +88,25 @@ class AliHBTWeightTheorQLongFctn: public AliHBTOnePairFctn1D, public AliHBTCorre
 
     ClassDef(AliHBTWeightTheorQLongFctn,2)
 };
+
+/*************************************************************/
+
+class AliHBTWeightTheorQtFctn: public AliHBTOnePairFctn1D, public AliHBTCorrelFunction
+{
+  public:
+    AliHBTWeightTheorQtFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
+    virtual  ~AliHBTWeightTheorQtFctn(){}
+
+    TH1* GetResult(); 
+    void   ProcessSameEventParticles(AliHBTPair* partpair);
+  
+  protected:
+    Double_t GetValue(AliHBTPair* partpair) const
+      { return partpair->GetQt();} 
+
+    ClassDef(AliHBTWeightTheorQtFctn,2)
+};
+
 /*************************************************************/
 
 class AliHBTWeightTheorOSLFctn: public AliHBTOnePairFctn3D, public AliHBTCorrelFunction
index 944ce5e..eba5b31 100644 (file)
@@ -40,7 +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+;
 #pragma link C++ class AliHBTWeightTheorQOutFctn+;
 #pragma link C++ class AliHBTWeightTheorQSideFctn+;
 #pragma link C++ class AliHBTWeightTheorQLongFctn+;
+#pragma link C++ class AliHBTWeightTheorQtFctn+;
 #pragma link C++ class AliHBTWeightTheorOSLFctn+;
 #pragma link C++ class AliHBTWeightsPID+;