Revision 1ed5b2319a500de0d0e5815c2a17615c134c863d authored by Danilo Piparo on 04 October 2023, 09:17:39 UTC, committed by Danilo Piparo on 04 October 2023, 19:02:58 UTC
by removing invocations to the root-config executable.
This executable was invoked twice to check if RDataFrame was available.
Such a behaviour causes a severe slowdown, especially on cvmfs. This
has been replaced by a simple string comparison.
1 parent d4024b9
Raw File
fileopen.C
// @(#)macros:$Id$
// Author: Axel Naumann, 2008-05-22
//
// This script gets executed when double-clicking a ROOT file (currently only on Windows).
// The file that got double clicked and opened is accessible as _file0.

void onBrowserClose() {
   gApplication->Terminate(0);
}

void fileopen()
{
   TBrowser *b = new TBrowser;
   // or, to only browse the file:
   // new TBrowser(_file0);

   // Quit ROOT when the browser gets closed:
   TBrowserImp *bi = b->GetBrowserImp();
   if (dynamic_cast<TRootBrowser *>(bi) || dynamic_cast<TRootBrowserLite *>(bi))
      bi->GetMainFrame()->Connect("CloseWindow()", 0, 0, "onBrowserClose()");
}
back to top