Bug corrections
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Mar 2004 14:51:40 +0000 (14:51 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Mar 2004 14:51:40 +0000 (14:51 +0000)
HBTAN/AliHBTCorrelFctn.cxx
HBTAN/AliHBTCorrelFctn.h
HBTAN/AliHBTWeightTheorFctn.cxx
HBTAN/AliHBTWeightTheorFctn.h

index e59c7c5..c76752f 100644 (file)
@@ -51,10 +51,19 @@ AliHBTOutSideLongFctn::AliHBTOutSideLongFctn(Int_t nXbins, Double_t maxXval, Dou
                                                    Int_t nZbins, Double_t maxZval, Double_t minZval):
  AliHBTOnePairFctn3D(nXbins,maxXval,minXval,nYbins,maxYval,minYval,nZbins,maxZval,minZval)
 {
+//ctor
   fWriteNumAndDen = kTRUE;//change default behaviour
   Rename("qoslcf","Q_{out}-Q_{side}-Q_{long} Correlation Fctn");
 }
+/*************************************************************************************/ 
 
+TH1* AliHBTOutSideLongFctn::GetResult()
+{
+ //returns the scaled ratio
+ delete fRatio;
+ fRatio = GetRatio(Scale());
+ return fRatio;
+}
 /*************************************************************************************/ 
 
 ClassImp(AliHBTQOutCMSLCCorrelFctn)
index f73c9f9..09159c9 100644 (file)
@@ -48,11 +48,11 @@ class AliHBTOutSideLongFctn: public AliHBTOnePairFctn3D, public AliHBTCorrelFunc
                 Int_t nZbins = 100, Double_t maxZval = 0.15, Double_t minZval = 0.0);
     virtual  ~AliHBTOutSideLongFctn(){}
 
-  TH1* GetResult();
-  void   ProcessSameEventParticles(AliHBTPair* partpair);
-  
-  void GetValues(AliHBTPair* pair, Double_t& x, Double_t& y, Double_t& z)
-    { x=TMath::Abs(pair->GetQOutCMSLC()); y=TMath::Abs(pair->GetQSideCMSLC()); z=TMath::Abs(pair->GetQLongCMSLC());} 
+    TH1* GetResult();
+  protected:
+    void GetValues(AliHBTPair* pair, Double_t& x, Double_t& y, Double_t& z)
+      { x=TMath::Abs(pair->GetQOutCMSLC()); y=TMath::Abs(pair->GetQSideCMSLC()); z=TMath::Abs(pair->GetQLongCMSLC());} 
 
   ClassDef(AliHBTOutSideLongFctn,1)
 };
index 611914b..6933819 100644 (file)
@@ -169,9 +169,11 @@ AliHBTWeightTheorOSLFctn::AliHBTWeightTheorOSLFctn(Int_t nXbins, Double_t maxXva
                                                    Int_t nZbins, Double_t maxZval, Double_t minZval):
  AliHBTOnePairFctn3D(nXbins,maxXval,minXval,nYbins,maxYval,minYval,nZbins,maxZval,minZval)
 {
+  //ctor
   fWriteNumAndDen = kTRUE;//change default behaviour
   Rename("wqosltheorcf","Q_{out}-Q_{side}-Q_{long} Weight Theoretical Correlation Fctn");
 }
+
 /*************************************************************/
 
 void AliHBTWeightTheorOSLFctn::ProcessSameEventParticles(AliHBTPair* partpair)
index 89b3236..c854eed 100644 (file)
@@ -23,18 +23,18 @@ class AliHBTWeights;
 
 class AliHBTWeightTheorQInvFctn: public AliHBTOnePairFctn1D, public AliHBTCorrelFunction
 {
-
   public:
-  AliHBTWeightTheorQInvFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
-  virtual  ~AliHBTWeightTheorQInvFctn(){}
+    AliHBTWeightTheorQInvFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
+    virtual  ~AliHBTWeightTheorQInvFctn(){}
+
+    TH1* GetResult(); 
+    void   ProcessSameEventParticles(AliHBTPair* partpair);
 
-  TH1* GetResult(); 
-  void   ProcessSameEventParticles(AliHBTPair* partpair);
-      
-  Double_t GetValue(AliHBTPair* partpair)
-    { return partpair->GetQInv();} 
+  protected:
+    Double_t GetValue(AliHBTPair* partpair)
+      { return partpair->GetQInv();} 
 
-  ClassDef(AliHBTWeightTheorQInvFctn,1)
+    ClassDef(AliHBTWeightTheorQInvFctn,1)
 };
 /*************************************************************/
 
@@ -42,50 +42,51 @@ class AliHBTWeightTheorQOutFctn: public AliHBTOnePairFctn1D, public AliHBTCorrel
 {
 
   public:
-  AliHBTWeightTheorQOutFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
-  virtual  ~AliHBTWeightTheorQOutFctn(){}
+    AliHBTWeightTheorQOutFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
+    virtual  ~AliHBTWeightTheorQOutFctn(){}
 
-  TH1* GetResult(); 
-  void   ProcessSameEventParticles(AliHBTPair* partpair);
-      
-  Double_t GetValue(AliHBTPair* partpair)
-    { return partpair->GetQOutCMSLC();}
+    TH1* GetResult(); 
+    void   ProcessSameEventParticles(AliHBTPair* partpair);
 
-  ClassDef(AliHBTWeightTheorQOutFctn,1)
+  protected:
+    Double_t GetValue(AliHBTPair* partpair)
+      { return partpair->GetQOutCMSLC();}
+
+    ClassDef(AliHBTWeightTheorQOutFctn,1)
 };
 /*************************************************************/
 
 class AliHBTWeightTheorQSideFctn: public AliHBTOnePairFctn1D, public AliHBTCorrelFunction
 {
-
   public:
-  AliHBTWeightTheorQSideFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
-  virtual  ~AliHBTWeightTheorQSideFctn(){}
+    AliHBTWeightTheorQSideFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
+    virtual  ~AliHBTWeightTheorQSideFctn(){}
 
-  TH1* GetResult(); 
-  void   ProcessSameEventParticles(AliHBTPair* partpair);
-      
-  Double_t GetValue(AliHBTPair* partpair)
-    { return partpair->GetQSideCMSLC();} 
+    TH1* GetResult(); 
+    void   ProcessSameEventParticles(AliHBTPair* partpair);
+    
+  protected:
+    Double_t GetValue(AliHBTPair* partpair)
+      { return partpair->GetQSideCMSLC();} 
 
-  ClassDef(AliHBTWeightTheorQSideFctn,1)
+    ClassDef(AliHBTWeightTheorQSideFctn,1)
 };
 /*************************************************************/
 
 class AliHBTWeightTheorQLongFctn: public AliHBTOnePairFctn1D, public AliHBTCorrelFunction
 {
-
   public:
-  AliHBTWeightTheorQLongFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
-  virtual  ~AliHBTWeightTheorQLongFctn(){}
+    AliHBTWeightTheorQLongFctn(Int_t nbins = 100, Double_t maxXval = 0.15, Double_t minXval = 0.0);
+    virtual  ~AliHBTWeightTheorQLongFctn(){}
 
-  TH1* GetResult(); 
-  void   ProcessSameEventParticles(AliHBTPair* partpair);
-      
-  Double_t GetValue(AliHBTPair* partpair)
-    { return partpair->GetQLongCMSLC();} 
+    TH1* GetResult(); 
+    void   ProcessSameEventParticles(AliHBTPair* partpair);
+  
+  protected:
+    Double_t GetValue(AliHBTPair* partpair)
+      { return partpair->GetQLongCMSLC();} 
 
-  ClassDef(AliHBTWeightTheorQLongFctn,1)
+    ClassDef(AliHBTWeightTheorQLongFctn,1)
 };
 /*************************************************************/
 
@@ -98,13 +99,14 @@ class AliHBTWeightTheorOSLFctn: public AliHBTOnePairFctn3D, public AliHBTCorrelF
                 Int_t nZbins = 100, Double_t maxZval = 0.15, Double_t minZval = 0.0);
     virtual  ~AliHBTWeightTheorOSLFctn(){}
 
-  TH1* GetResult();
-  void   ProcessSameEventParticles(AliHBTPair* partpair);
+    TH1* GetResult();
+    void   ProcessSameEventParticles(AliHBTPair* partpair);
   
-  void GetValues(AliHBTPair* pair, Double_t& x, Double_t& y, Double_t& z)
-    { x=TMath::Abs(pair->GetQOutCMSLC()); y=TMath::Abs(pair->GetQSideCMSLC()); z=TMath::Abs(pair->GetQLongCMSLC());} 
+  protected:
+    void GetValues(AliHBTPair* pair, Double_t& x, Double_t& y, Double_t& z)
+      { x=TMath::Abs(pair->GetQOutCMSLC()); y=TMath::Abs(pair->GetQSideCMSLC()); z=TMath::Abs(pair->GetQLongCMSLC());} 
 
-  ClassDef(AliHBTWeightTheorOSLFctn,1)
+    ClassDef(AliHBTWeightTheorOSLFctn,1)
 };
     
 #endif