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 1: | Line 1: | ||
| Below is an example on the use of '' | Below is an example on the use of '' | ||
| < | < | ||
| - | python trees.py | + | $ python trees.py |
| + | </ | ||
| + | and check output with | ||
| + | < | ||
| + | $ root -l tree.root | ||
| + | root [1] TBrowser a | ||
| </ | </ | ||
| - | + | <code python trees.py> | |
| - | <code python | + | |
| #! / | #! / | ||
| Line 11: | Line 15: | ||
| 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 | ||