saveViews extended to print trigger classes, displaying of logo fixed. Cleanup of...
[u/mrichter/AliRoot.git] / EVE / macros / alieve_online_new.C
index 37518fc..f4b7b88 100644 (file)
@@ -171,8 +171,6 @@ void alieve_online_new()
 
 void alieve_online_on_new_event()
 {
-    AliSysInfo::AddStamp("on_new_event_start");
-       
     if (AliEveEventManager::HasESD())
       {
        Double_t x[3] = { 0, 0, 0 };
@@ -208,48 +206,27 @@ void alieve_online_on_new_event()
          mv->SetCenterMuon(x[0], x[1], x[2]);
        mv->ImportEventMuon(top);
     
-    
+       
        // Register image to amore.
-       // const TString pichost("aldaqacrs3");
-       const TString pichost(gEnv->GetValue("AliEve.imageDumpHost", "localhost"));
-       TTimeStamp now;
-       Double_t delta = now.AsDouble() - g_pic_prev.AsDouble();
-     
-       printf("Pre image dump: host='%s', delta=%f.\n",gSystem->HostName(), delta);
-     
-       AliSysInfo::AddStamp("on_new_event_pic");
-       // if (pichost == gSystem->HostName() && delta >= 30)
-       {
          TString id;      id.Form("online-viz-%03d", g_pic_id);
          TString pic(id); pic += ".png";
      
-         printf("In image dump: file='%s'.\n", pic.Data());
+         //printf("In image dump: file='%s'.\n", pic.Data());
      
          gEve->GetBrowser()->RaiseWindow();
          gEve->FullRedraw3D();
          gSystem->ProcessEvents();
-     
-         Int_t status;
-     
          // create screenshots from OpenGL views
          saveViews(pic.Data());
      
          // send screenshot to AMORE
-         cout<<"Sending:"<<TString::Format("SendImageToAmore %s %s %d",id.Data(), pic.Data(),AliEveEventManager::AssertESD()->GetRunNumber())<<endl;
-
-         status = gSystem->Exec(TString::Format("SendImageToAmore %s %s %d",
-                                                id.Data(), pic.Data(),
-                                                AliEveEventManager::AssertESD()->GetRunNumber()));
+         int status = gSystem->Exec(Form("SendImageToAmore %s %s %d",id.Data(),pic.Data(),esd->GetRunNumber()));
+           printf("Post AMORE reg -- status=%d, run=%d.\n", status, esd->GetRunNumber());
      
-         printf("Post AMORE reg -- status=%d, run=%d.\n", status,
-                AliEveEventManager::AssertESD()->GetRunNumber());
-     
-         if (++g_pic_id >= g_pic_max)
-           g_pic_id = 0;
+         if (++g_pic_id >= g_pic_max) g_pic_id = 0;
          g_pic_prev.Set();
-       }
       }
-    AliSysInfo::AddStamp("on_new_event_end");
 }
 
 void alieve_init_import_macros()