diff options
Diffstat (limited to 'io/root.py')
-rw-r--r-- | io/root.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/io/root.py b/io/root.py deleted file mode 100644 index e43f5d4..0000000 --- a/io/root.py +++ /dev/null @@ -1,19 +0,0 @@ -import ROOT -import os.path - -ROOT.gROOT.ProcessLine('.L '+os.path.join(os.path.dirname(__file__), 'root.C+g')) - -from ROOT import Event - -fill_photons = ROOT.fill_photons -fill_hits = ROOT.fill_hits - -def make_tree(name, desc=''): - '''Create a ROOT tree for holding event information. - - Returns tuple of Event object for filling and TTree. - ''' - tree = ROOT.TTree(name, desc) - ev = ROOT.Event() - tree.Branch('ev', ev) - return ev, tree |