]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix for bug introduced with last checkin
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 Mar 2010 19:04:02 +0000 (19:04 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 Mar 2010 19:04:02 +0000 (19:04 +0000)
PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithMCEventPlane.cxx

index 04a3292e46710b52341fc2f634ccc2e6f8a3c95a..bc31635aad7c165b7d9cac0d38895294e9428083 100644 (file)
@@ -372,7 +372,8 @@ void AliFlowAnalysisWithMCEventPlane::Finish() {
        dErrVRP += dYieldPtRP*dYieldPtRP*dErrvPtRP*dErrvPtRP;
       }
   }
-  if (TMath::AreEqualAbs(dSumRP, 0.0, 1e-10) ) {
+  
+  if (!(TMath::AreEqualAbs(dSumRP, 0.0, 1e-10)) ) {
     dVRP /= dSumRP;  //because pt distribution should be normalised
     dErrVRP /= (dSumRP*dSumRP);
     dErrVRP = TMath::Sqrt(dErrVRP); 
@@ -418,7 +419,8 @@ void AliFlowAnalysisWithMCEventPlane::Finish() {
       }
     }//end of for(Int_t b=0;b<iNbinsPt;b++)  
   } else { cout<<"fHistProFlow is NULL"<<endl; }
-  if ( TMath::AreEqualAbs(dSumPOI, 0.0, 1e-10) ) {
+
+  if (!(TMath::AreEqualAbs(dSumPOI, 0.0, 1e-10)) ) {
     dVPOI /= dSumPOI;  //because pt distribution should be normalised
     dErrVPOI /= (dSumPOI*dSumPOI);
     dErrVPOI = TMath::Sqrt(dErrVPOI);