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