User Tools

Site Tools


root:pythonrootmacro

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

root:pythonrootmacro [2009/03/04 11:24] (current)
abuechle created
Line 1: Line 1:
 +In your shell do:
 +<​code>​
 +export PYTHONPATH=$PYTHONPATH:​$ROOTSYS/​lib:​$ROOTSYS/​root/​pyroot
 +</​code>​
  
 +Your python root macro should begin like this:
 +<​code>​
 +from ROOT import *
 +</​code>​
 +
 +To run your macro:
 +<​code>​
 + ​python -i filename.py
 +</​code>​
root/pythonrootmacro.txt ยท Last modified: 2009/03/04 11:24 by abuechle