MathROOT

Introduction

MathROOT is a tool that allows you to access ROOT data stores from within Mathematica. For example, the following two lines of Mathematica code grab the two columns named imb and etot from a ROOT TTree and make a scatter plot of the data.

Example

rootData = GetColumnData["imb:etot", "", -1, 1, "wab_recon.root", "1997_wab_recon"];

ListPlot[rootData];

[Graphics:images/scatter_plot.gif]

An example Mathematica notebook which shows how to use all of MathROOT 's functionality is available to be viewed in HTML format  or downloaded in Notebook format.

Commands

To learn more details about any command, use the Mathematica command ?. For example, to get information on the command GetColumnData , type ?GetColumnData. Here are the currently supported commands:

Command

GetFileMetaData[file_String]
GetTreeMetaData[file_String, tree_String]
GetColumnNames[file_String, tree_String]
GetColumnTypes[file_String, tree_String]
GetColumnData[columns_String, cuts_String, numRows_Integer, firstRow_Integer, file_String, tree_String]

Download

The source code and binaries for MathROOT are available for download from MathROOT SourceForge web site. The current version is 0.8.2.0 and was released on January 2, 2002. It is considered stable and useable.

Author

MathROOT was written by Matthew D. Langston.

 



SourceForge.net Logo