User Tools

Site Tools


root:example_ttree

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
root:example_ttree [2017/06/12 20:05] – created iwnroot:example_ttree [2017/06/22 15:24] iwn
Line 2: Line 2:
 <code> <code>
 python trees.py python trees.py
 +</code>
 +and check output with
 +<code>
 +root -l tree.root
 </code> </code>
  
- +<code python trees.py>
-<code python trees.py>+
 #! /usr/bin/env python #! /usr/bin/env python
  
Line 11: Line 14:
 start = time.time() start = time.time()
  
-from ROOT import gRandom, TFile, TTree, TH1D ,TObject+from ROOT import gRandom, TFile, TTree, TH1D, TObject
 from array import array from array import array
 import numpy # alternative to array import numpy # alternative to array
root/example_ttree.txt · Last modified: 2017/06/22 15:25 by iwn