added private empty copy ctor and assignment op
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 May 2008 12:11:27 +0000 (12:11 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 May 2008 12:11:27 +0000 (12:11 +0000)
PWG2/FLOW/AliFlowAnalysisWithLeeYangZeros.cxx
PWG2/FLOW/AliFlowAnalysisWithLeeYangZeros.h

index da092f4..58d1cf4 100644 (file)
@@ -13,9 +13,6 @@
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-*/ 
 
 #include "Riostream.h"                 //needed as include
 #include "AliFlowCommonConstants.h"    //needed as include
@@ -97,11 +94,11 @@ ClassImp(AliFlowAnalysisWithLeeYangZeros)
     }
 
   fQ.Set(0.,0.);
+  fQ.SetMult(0);
   fQsum.Set(0.,0.);
 
 }
 
-
 //-----------------------------------------------------------------------
 
 
@@ -525,8 +522,12 @@ Bool_t AliFlowAnalysisWithLeeYangZeros::Make(AliFlowEventSimple* fEvent)
   //get the Q vector 
   fQ = fEvent->GetQ();
   //weight by the multiplicity
-  Double_t fQX = fQ.X()/fQ.GetMult(); 
-  Double_t fQY = fQ.Y()/fQ.GetMult();
+  Double_t fQX = 0;
+  Double_t fQY = 0;
+  if (fQ.GetMult() != 0) {
+    fQX = fQ.X()/fQ.GetMult(); 
+    fQY = fQ.Y()/fQ.GetMult();
+  }
   fQ.Set(fQX,fQY);
   //for chi calculation:
   fQsum += fQ;
@@ -595,8 +596,12 @@ Bool_t AliFlowAnalysisWithLeeYangZeros::Make(AliFlowEventSimple* fEvent)
   //get the Q vector 
   fQ = fEvent->GetQ();
   //weight by the multiplicity
-  Double_t fQX = fQ.X()/fQ.GetMult(); 
-  Double_t fQY = fQ.Y()/fQ.GetMult();
+  Double_t fQX = 0;
+  Double_t fQY = 0;
+  if (fQ.GetMult() != 0) {
+    fQX = fQ.X()/fQ.GetMult(); 
+    fQY = fQ.Y()/fQ.GetMult();
+  }
   fQ.Set(fQX,fQY);               
   //for chi calculation:
   fQsum += fQ;
index cef05d9..e6f6a29 100644 (file)
@@ -67,9 +67,8 @@ class AliFlowAnalysisWithLeeYangZeros {
 
  private:
 
-   //AliFlowAnalysisWithLeeYangZeros(const AliFlowAnalysisWithLeeYangZeros& lyz) {}    //AliFlowAnalysisWithLeeYangZeros cannot be copied
-   //void operator=(const AliFlowAnalysisWithLeeYangZeros &lyz) {}   
-
+  AliFlowAnalysisWithLeeYangZeros(const AliFlowAnalysisWithLeeYangZeros& aAnalysis);
+   AliFlowAnalysisWithLeeYangZeros& operator=(const AliFlowAnalysisWithLeeYangZeros& aAnalysis);
 
    Bool_t   MakeControlHistograms(AliFlowEventSimple* fEvent); 
    Bool_t   FillFromFlowEvent(AliFlowEventSimple* fEvent);