Modify to use saveViews.C macro when capturing the Online Event Display
authorquark <quark@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Jan 2013 20:13:35 +0000 (20:13 +0000)
committerquark <quark@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Jan 2013 20:13:35 +0000 (20:13 +0000)
EVE/macros/alieve_online.C

index 5f48260..ad32f78 100644 (file)
@@ -388,11 +388,11 @@ void alieve_online_on_new_event()
 
     Int_t status;
 
-    status = gSystem->Exec(TString::Format("xwd -id %u | convert - %s",
-                          gEve->GetBrowser()->GetId(), pic.Data()));
-
-    printf("Post capture -- status=%d.\n", status);
+    // create screenshots from OpenGL views
+    TEveUtil::LoadMacro("saveViews.C+");
+    saveViews(pic.Data()); 
 
+    // send screenshot to AMORE
     status = gSystem->Exec(TString::Format("SendImageToAmore %s %s %d",
                          id.Data(), pic.Data(),
                          AliEveEventManager::AssertRawReader()->GetRunNumber()));