]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/EveHLT/AliEveHOMERManager.cxx
Prepare for the new TPC layout
[u/mrichter/AliRoot.git] / EVE / EveHLT / AliEveHOMERManager.cxx
index 2f30649b118d95f50919b45f5fca561b4eac2cf8..5738b62854022625598b7fc929b4623eebb6fa62 100644 (file)
@@ -154,7 +154,7 @@ Int_t AliEveHOMERManager::ReConnectHOMER( TString /*detector*/ ){
   // see header file for class documentation
   Int_t iResult = 0;
   if (Connected()) DisconnectHOMER();
-  StartEveSourceListLoop();
+  CreateEveSourcesListLoop();
   return iResult;
 }
 
@@ -163,23 +163,18 @@ TList * AliEveHOMERManager::NextHOMEREvent() {
   //See header file for documentation  
   
   if(!Connected()) {
-    cout << "AliEveHOMERManager::NextHOMEREvent(): HOMER is not connected to a source!"<<endl;
+    HLTInfo("Homer is not connected, trying to reconnect!");
+    ReConnectHOMER();
     return NULL;
   }
-
+  
   
   if ( NextEvent() ) {
-    
     HLTInfo("Failed getting next event, trying to reconnect");
-    
-    Int_t iResult = ReConnectHOMER();
-    if(iResult)  {
-      HLTError("Error establishing connection to sources");
-    }
-    
+    ReConnectHOMER();
     return NULL;
   }
+  
   return GetBlockList();
   
 }