rootexec

Name

rootexec (experimental 5.0) -- Execute a root macro file.

Synopsis

rootexec filename

DESCRIPTION

SpecTcl 5.0 introduces an experimental integration with CERN's Root data analysis framework. This command passes the filename parameter to the root interpreter for execution.

Note that SpecTcl's initialization order is such that this is supported from within SpecTclRC.tcl but not from within SpecTclInit.tcl

EXAMPLE

Suppose we have a file named Browser.C that contains the C++ code:


void Browser() {
    new TBrowser;
}
            

The command rootexec Browser.C will bring up a Root Browser window. Note that all SpecTcl spectra now are histogrammed using Root histogram objects and will appear in the root/ROOT memory folder of the browser.