16 parser = argparse.ArgumentParser()
17 parser.add_argument(
'type', help=
'dqm or qam', type=str)
18 args = parser.parse_args()
24 files = glob.glob(dir +
'*/all/dst/sub00/dst.cosmic.*.root')
29 run = int((f.split(
'/'))[-1].split(
'.')[3])
34 runs = sorted(list(set(runs)))
42 dir =
'/hsm/belle2/bdata/Data/release-00-09-01/DB00000266/GCR1/prod00000001/e{0:0>4}/cosmics/'.format(exp)
47 runs = getRunList(dir)
52 logfile =
'dqm.cosmic.{0:0>4}.{1:0>5}.log'.format(exp, run)
53 command =
' '.join([
'basf2 CDCHistMaker.py', str(exp), str(run),
'>&', logfile])
55 logfile =
'qam.cosmic.{0:0>4}.{1:0>5}.log'.format(exp, run)
56 command =
' '.join([
'basf2 QAMHistMaker.py', str(exp), str(run),
'>&', logfile])
58 print(
'Specify the type : dqm/qam')
64 subprocess.run([
"bsub",
"-q",
"l", command])