77def go(fname):
78 import subprocess, os, shutil
79 if 'DQ_STREAM' in os.environ:
80 if (os.environ.get('DQPRODUCTION', '0') == '1'
81 and os.environ['DQ_STREAM'] != 'physics_Main'):
82 return
83 if 'DISPLAY' in os.environ: del os.environ['DISPLAY']
84 runno = getRun(fname)
85 print(
'Seen run', runno)
86 if not checkDirExists(fname):
87 print(
'But DQTGlobalWZFinder directory does not exist: code probably did not run. Exiting')
88 return
89 grlcmd = []
90 if runno >= 325000:
91 makeGRL(runno, 'PHYS_StandardGRL_All_Good', 'grl.xml')
92 grlcmd = ['--grl', 'grl.xml']
93 else:
94 print(
'Run number', runno,
'not 2017 data')
95
96
97 subprocess.check_call(['dqt_zlumi_pandas.py', '--infile', fname, '--dblivetime', '--outdir', '', '--campaign', 'mc21'] + grlcmd)
98 subprocess.check_call(['dqt_csv_luminosity.sh', '--infile', f'run_{runno}.csv', '--outdir', '', '--absolute', '--t0'])
99 if os.path.isfile(f'run_{runno}.csv'):
100 shutil.move(f'run_{runno}.csv', 'zlumi.csv')
101 if os.path.isfile('zlumi.root'):
102 copyPlot('zlumi.root', fname)
void print(char *figname, TCanvas *c1)