12 from __future__
import print_function
13 import subprocess
as sub
15 from optparse
import OptionParser
17 parser = OptionParser(usage=
"usage: %prog cmssw_release [options]")
20 parser.add_option(
"-d",
"--data ",
24 help=
"Fetch data relvals")
26 parser.add_option(
"-m",
"--mc ",
30 help=
"Fetch Monte Carlo relvals")
32 parser.add_option(
"--p1",
"--path1 ",
36 help=
"Additional path to match in relvals")
38 parser.add_option(
"--p2",
"--path2 ",
42 help=
"Additional path to match in relvals")
44 (options, args) = parser.parse_args()
51 cmssw_release = args[0]
59 releasedir=cmssw_release[:10]+
"x"
63 if len(options.path1)>0:
64 thepath=
"%s.*%s"%(options.path1,thepath)
65 if len(options.path2)>0:
66 thepath=
"%s.*%s"%(thepath,options.path2)
67 command=
'relmon_rootfiles_spy.py ROOT/%s/%s/ -u -g -p %s'%(relvaldir,releasedir,thepath)
69 sub.call(command.split(
" "))
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)