fix
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Feb 2013 16:12:06 +0000 (16:12 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Feb 2013 16:12:06 +0000 (16:12 +0000)
PWGGA/EMCALTasks/AliAnalysisTaskPi0V2.cxx

index 7f54b32..eb5f392 100644 (file)
@@ -708,12 +708,11 @@ void AliAnalysisTaskPi0V2::UserExec(Option_t *)
   }
   hEvtCount->Fill(3);
 
-  if (isPhosCali) {
-    if (fRunNumber != event->GetRunNumber()) 
-      SetFlatteningData();
+  if (fRunNumber != event->GetRunNumber()) {
+    fRunNumber = event->GetRunNumber();
+    SetFlatteningData();
   }
 
-  fRunNumber = event->GetRunNumber();
   fInterRunNumber = ConvertToInternalRunNumber(fRunNumber);
 
   const AliVVertex* fvertex;