]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix to prevent sqrt of a negative number
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 May 2010 16:49:19 +0000 (16:49 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 May 2010 16:49:19 +0000 (16:49 +0000)
PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithScalarProduct.cxx

index f76ae26345ed941bbefa2ee308e440f072231ba0..3a061461467dccad8107ebcbb8a83a25ab939633 100644 (file)
@@ -615,7 +615,7 @@ void AliFlowAnalysisWithScalarProduct::Finish() {
   //Calculate the event plane resolution
   //----------------------------------
   Double_t dCos2phi = fHistResolution->GetMean();
-  if (dCos2phi !=0.0){
+  if (dCos2phi 0.0){
     Double_t dResolution = TMath::Sqrt(2*dCos2phi); 
     cout<<"An estimate of the event plane resolution is: "<<dResolution<<endl;
     cout<<endl;