This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
root:example_ttree [2017/06/12 20:05] – created iwn | root:example_ttree [2017/06/22 15:24] – iwn | ||
---|---|---|---|
Line 2: | Line 2: | ||
< | < | ||
python trees.py | python trees.py | ||
+ | </ | ||
+ | and check result with | ||
+ | < | ||
+ | root -l tree.root | ||
</ | </ | ||
- | + | <code python trees.py> | |
- | <code 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 |