Fix some potentially bad things
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Oct 2012 14:34:25 +0000 (14:34 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Oct 2012 14:34:25 +0000 (14:34 +0000)
PWGLF/FORWARD/analysis2/AliFMDMCEventInspector.cxx

index b807346..1851f6e 100644 (file)
@@ -342,6 +342,7 @@ AliFMDMCEventInspector::ProcessMC(AliMCEvent*       event,
   nbin           = 0;
   b              = -1;
   c              = -1;
+  phiR           = -1111;
   if (colGeometry) { 
     b     = colGeometry->ImpactParameter();
     phi   = colGeometry->ReactionPlaneAngle();
@@ -410,6 +411,7 @@ AliFMDMCEventInspector::ProcessMC(AliMCEvent*       event,
       else if (phi > 2*TMath::Pi()) phi -= 2*TMath::Pi();
       else                          break;
     }
+    phiR = phi;
   }
 
   // Do a check on particles