import glob, sys, os #argument parsing: smoothing = "1" gaincorr = "1" hough = "1" process = "1" num = "0" for iarg in range(len(sys.argv)) : arg = sys.argv[iarg] if arg == "-smoothing" : smoothing=sys.argv[iarg+1] if arg == "-gaincorr" : gaincorr=sys.argv[iarg+1] if arg == "-hough" : hough=sys.argv[iarg+1] if arg == "--process": process=int(sys.argv[iarg+1]) if arg == "--num": num=sys.argv[iarg+1] #reconstruct single files run = 681 command="python runRecoALICEmacro.py -b --run "+str(run)+" --smoothing "+smoothing+" --gaincorr "+gaincorr+" --hough "+hough #os.system(command) run = 723 command="python runRecoALICEmacro.py -b --run "+str(run)+" --smoothing "+smoothing+" --gaincorr "+gaincorr+" --hough "+hough #os.system(command) run = 851 command="python runRecoALICEmacro.py -b --run "+str(run)+" --smoothing "+smoothing+" --gaincorr "+gaincorr+" --hough "+hough #os.system(command) run = 861 command="python runRecoALICEmacro.py -b --run "+str(run)+" --smoothing "+smoothing+" --gaincorr "+gaincorr+" --hough "+hough #os.system(command) run = 892 command="python runRecoALICEmacro.py -b --run "+str(run)+" --smoothing "+smoothing+" --gaincorr "+gaincorr+" --hough "+hough #os.system(command) run = 899 command="python runRecoALICEmacro.py -b --run "+str(run)+" --smoothing "+smoothing+" --gaincorr "+gaincorr+" --hough "+hough #os.system(command) #reconstruct files systematically #only precess every second run, beginn can be set by "--process 1/2" for irun in range (681,900): if ((irun + int(process))%7 != 0): continue #sort out defunct runs if (irun in [689,695,696,697,701,707,708,710,711,712,721,722,725,728,729,730,732,738,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,772,774,775,776,778,779,780,781,782,784,785,786,787,788,789,790,791,792,793,794,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,819,821,822,823,824,825,826,827,828,833,835,836,837,839,840,843,844,845,846,847,848,849,850,852,853,854,855,857,863,864,865,866,874,875,877,878,880,885,888,890,894,895,901,902,903,906,907,908,910,911,915,916,918,919,920,921]): continue command="python runRecoALICEmacro.py -b --run "+str(irun) #+" --smoothing "+smoothing+" --gaincorr "+gaincorr+" --hough "+hough os.system(command) #print command #reconstruct files systematically #only precess every third run, beginn can be set by "--process 1/2/3" #for irun in range (682,923): # if ((irun + int(process))%3 != 0): # continue # sort out defunct runs # if (irun in [689,695,696,697,701,707,708,710,711,712,721,722,725,728,729,730,732,738,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,772,774,775,776,778,779,780,781,782,784,785,786,787,788,789,790,791,792,793,794,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,819,821,822,823,824,825,826,827,828,833,835,836,837,839,840,843,844,845,846,847,848,849,850,852,853,854,855,857,863,864,865,866,874,875,877,878,880,885,888,890,894,895,901,902,903,906,907,908,910,911,915,916,918,919,920,921]): # continue # command="python runRecoALICEmacro.py -b --run "+str(irun)+" --smoothing "+smoothing+" --gaincorr "+gaincorr+" --hough "+hough # os.system(command) # #print command