From 3ac3555d1643d0ca293842a16cc34a31047ae3fe Mon Sep 17 00:00:00 2001 From: Pere Mato Date: Wed, 26 Nov 2014 08:47:17 +0100 Subject: [PATCH] More on dependencies and using different files for the python tutorials --- tutorials/CMakeLists.txt | 2 +- tutorials/pyroot/na49geomfile.py | 2 +- tutorials/pyroot/na49view.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorials/CMakeLists.txt b/tutorials/CMakeLists.txt index 530b777..e6224a5 100644 --- a/tutorials/CMakeLists.txt +++ b/tutorials/CMakeLists.txt @@ -273,7 +273,7 @@ if(ROOT_python_FOUND) tutorial-pyroot-na49view tutorial-pyroot-h1draw) set(pyroot-fit1-depends tutorial-pyroot-fillrandom) - set(pyroot-na49view-depends tutorial-geom-geometry) + set(pyroot-na49view-depends tutorial-pyroot-geometry) foreach(t ${pytutorials}) string(REPLACE ".py" "" tname ${t}) diff --git a/tutorials/pyroot/na49geomfile.py b/tutorials/pyroot/na49geomfile.py index f84e073..0a21a76 100644 --- a/tutorials/pyroot/na49geomfile.py +++ b/tutorials/pyroot/na49geomfile.py @@ -4,7 +4,7 @@ import ROOT ROOT.gBenchmark.Start( 'geometry' ) -na = ROOT.TFile( 'na49.root', 'RECREATE' ) +na = ROOT.TFile( 'py-na49.root', 'RECREATE' ) n49 = ROOT.gROOT.FindObject( 'na49' ) n49.Write() na.Write() diff --git a/tutorials/pyroot/na49view.py b/tutorials/pyroot/na49view.py index 6d7eba9..7044a11 100644 --- a/tutorials/pyroot/na49view.py +++ b/tutorials/pyroot/na49view.py @@ -19,7 +19,7 @@ na49title = ROOT.TPaveLabel( 0.04, 0.86, 0.96, 0.98, 'Two views of the NA49 dete na49title.SetFillColor( 32 ) na49title.Draw() # -nageom = ROOT.TFile( 'na49.root' ) +nageom = ROOT.TFile( 'py-na49.root' ) n49 = ROOT.gROOT.FindObject( 'na49' ) n49.SetBomb( 1.2 ) n49.cd() # Set current geometry -- 1.8.2