]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/EveHLT/AliEveHOMERManager.cxx
Bugfixes enabling buffer navigation
[u/mrichter/AliRoot.git] / EVE / EveHLT / AliEveHOMERManager.cxx
index 8141d5b927d2858246034b4679c1f902af428b7b..f355e34c7f05f7cce8904f677d3822b7894f08f0 100644 (file)
@@ -205,12 +205,12 @@ Int_t AliEveHOMERManager::CreateEveSourcesList() {
 
   //  fStateHasChanged = kTRUE;
   
-  HLTInfo(Form("iResult XXX %d", iResult));
+  HLTDebug(Form("iResult XXX %d", iResult));
   if ( iResult )
     return iResult;
 
 
-  HLTInfo(Form("iResult %d", iResult));
+  HLTDebug(Form("iResult %d", iResult));
   if (fSrcList) {
     HLTInfo(Form("delete source list", iResult));
     DestroyElements();
@@ -229,10 +229,13 @@ Int_t AliEveHOMERManager::CreateEveSourcesList() {
     
     AddElement(fSrcList);
   }
-
-  HLTInfo(Form("createbytype", iResult));
+  
+  //HLTInfo(Form("createbytype", iResult));
   fSrcList->CreateByDet();
-  HLTInfo(Form("did it", iResult));    
+  
+  HLTDebug(Form("Done createing source list %d", iResult));    
+  
+  
   
   return iResult;
 }
@@ -287,7 +290,7 @@ Int_t AliEveHOMERManager::ConnectEVEtoHOMER( TString detector ) {
 
 
 //##################################################################################
-Int_t AliEveHOMERManager::ReConnectHOMER( TString detector ){
+Int_t AliEveHOMERManager::ReConnectHOMER( TString /*detector*/ ){
   // see header file for class documentation
   
   Int_t iResult = 0;
@@ -310,8 +313,6 @@ Int_t AliEveHOMERManager::NextHOMEREvent() {
   Int_t iResult = 0;
 
   
-  //Loop over blocks
-  AliHLTHOMERBlockDesc * block = NULL;
  
   if ( NextEvent() ) {
     
@@ -319,11 +320,22 @@ Int_t AliEveHOMERManager::NextHOMEREvent() {
     iResult = ReConnectHOMER();
     return NextHOMEREvent();
   }
-  
  
+  return ProcessEvent();
+}
+
+
+//______________________________________________________________________________________________
+Int_t AliEveHOMERManager::ProcessEvent() {
+
   //We have a new event, reset display items (need to check if there really is anything interesting in event before resetting. ie not just histos)
   ResetDisplay();
-  
+
+  AliHLTHOMERBlockDesc * block = NULL;
+
+
   //Process the SYNCED block list
   if ( GetBlockList() == NULL) {
     printf ("onlineDisplay:   No regular BlockList ... \n");
@@ -340,7 +352,6 @@ Int_t AliEveHOMERManager::NextHOMEREvent() {
    
     
     TIter next(GetBlockList());
-   
     while ((block = (AliHLTHOMERBlockDesc*)next())) {
       ProcessBlock(block);
      
@@ -352,10 +363,7 @@ Int_t AliEveHOMERManager::NextHOMEREvent() {
   TIter anext(GetAsyncBlockList());
 
   while ( (block = (AliHLTHOMERBlockDesc*)anext()) ) {
-    HLTInfo("Process block");
     ProcessBlock(block);
-    HLTInfo("Processed block");
-    
   }
   
   UpdateDisplay();
@@ -380,7 +388,6 @@ void  AliEveHOMERManager::UpdateDisplay() {
 
 
   // -- Set EventID in Window Title  
-
   TString winTitle("Eve Main Window -- Event ID : ");
   winTitle += Form("0x%016X ", GetEventID() );
   GetEveManager()->GetBrowser()->SetWindowName(winTitle);