ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
runall.py
Go to the documentation of this file.
1
#! /usr/bin/env python
2
3
macros = [\
4
"slits.C"
,
5
"write_ntuple_to_file_advanced.C"
,
6
"write_ntuple_to_file.C"
,
7
"write_to_file.C"
,
8
"ExampleMacro.C"
,
9
"ExampleMacro_GUI.C"
,
10
"makeMySelector.C"
,
11
"RunMySelector.C"
,
12
"macro1.C"
,
13
"macro2.C"
,
14
"macro3.C"
,
15
"macro4.C"
,
16
"macro5.C"
,
17
"macro6.C"
,
18
"macro7.C"
,
19
"macro8.C"
,
20
"macro9.C"
,
21
"read_from_file.C"
,
22
"read_ntuple_from_file.C"
,
23
"read_ntuple_with_chain.C"
,
24
"TGraphFit.C"
,
25
"multigraph.C"
]
26
27
pymacros = [\
28
"TGraphFit.py"
,
29
"macro3.py"
]
30
31
import
os
32
import
sys
33
34
for
mName
in
macros:
35
command =
"root -b -q %s"
%mName
36
if
mName ==
"slits.C"
: command =
'echo "2 4" | %s'
%command
37
print
"\n ******* Running %s"
%mName
38
if
0 !=os.system(command):
39
print
"Macro %s"
%mName
40
sys.exit(1)
41
print
"\n"
+
"-"
*80+
"\nAll macros ran successfully"
42
43
for
mName
in
pymacros:
44
command =
"echo 1 | python %s"
%mName
45
print
"\n ******* Running %s"
%mName
46
if
0 !=os.system(command):
47
print
"Python macro %s"
%mName
48
sys.exit(1)
49
print
"\n"
+
"-"
*80+
"\nAll Python macros ran successfully"
50
51
sys.exit(0)
52
documentation
primer
macros
runall.py
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1