Coverity fix
authorkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Mar 2012 08:09:28 +0000 (08:09 +0000)
committerkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Mar 2012 08:09:28 +0000 (08:09 +0000)
PWGGA/PHOSTasks/PHOS_pp_pi0/AliAnalysisTaskPi0.cxx

index 278d978..8746964 100644 (file)
@@ -284,12 +284,12 @@ void AliAnalysisTaskPi0::UserExec(Option_t *)
   Bool_t eventV0AND       = kFALSE;
 
   AliESDEvent *event = dynamic_cast<AliESDEvent*>(InputEvent());
-  Int_t eventNumberInFile = event->GetEventNumberInFile();
   if (!event) {
      Printf("ERROR: Could not retrieve event");
      return;
   }
 
+  Int_t eventNumberInFile = event->GetEventNumberInFile();
   if(fPHOSEvent)
     fPHOSEvent->Clear() ;
   else