]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliAnalysisTaskSE.cxx
adding reference data for Calib
[u/mrichter/AliRoot.git] / ANALYSIS / AliAnalysisTaskSE.cxx
index c2b82ca9fe576b0f8e25d9c66e8cd7b030aa03dd..14cd7fe7db7411755862829887d30ae0b91e2140 100644 (file)
@@ -299,8 +299,8 @@ void AliAnalysisTaskSE::Exec(Option_t* option)
 {
 //
 // Exec analysis of one event
-    fDebug = 10;
-    printf("Task is active %5d\n", IsActive());
+    if ( fDebug >= 10)
+      printf("Task is active %5d\n", IsActive());
     
     if (fDebug > 1) AliInfo("AliAnalysisTaskSE::Exec() \n");
 //
@@ -316,11 +316,14 @@ void AliAnalysisTaskSE::Exec(Option_t* option)
 
     if (handler) handler->SetFillAOD(isSelected);
 
-    if( fInputHandler ) fEntry = fInputHandler->GetReadEntry();
-  
+    if( fInputHandler ) {
+       fEntry = fInputHandler->GetReadEntry();
+       fESDfriend = ((AliESDInputHandler*)fInputHandler)->GetESDfriend();
+    }
+    
 
 // Notify the change of run number
-    if (InputEvent()->GetRunNumber() != fCurrentRunNumber) {
+    if (InputEvent() && (InputEvent()->GetRunNumber() != fCurrentRunNumber)) {
        fCurrentRunNumber = InputEvent()->GetRunNumber();
        NotifyRun();
     }