diff --git a/scripts/checkShift.py b/scripts/checkShift.py index 9d929a6..43f45ec 100644 --- a/scripts/checkShift.py +++ b/scripts/checkShift.py @@ -35,13 +35,16 @@ Email: michele.atzeni@cern.ch Working in date 14.06.2017 + + Description: + The script ''' parser = argparse.ArgumentParser(description = 'Configuration of the parameters for the SplitAndMerge') parser.add_argument("-d", "--detector" , dest="detector" , help="Choose the detector to use ",choices=['TT','IT'], default = 'TT') parser.add_argument("-l", "--layer" , dest="layer", help="Choose the layer to use",choices=['TTaU','T3X2'], default = 'TTaU') - parser.add_argument("-n", "--nstrips" , dest="nstrips", help="Choose the number of strips to use",choices=['3','5','7'], default = ['5']) + parser.add_argument("-n", "--nstrips" , dest="nstrips", help="Choose the number of strips to use",choices=['3','5','7'], default = ['7']) parser.add_argument("--Vred", action="store_true", help="exclude the 3 lowest Vbias") parser.add_argument("--VERB", action="store_true", help="VERBOsE") args = parser.parse_args() @@ -77,8 +80,8 @@ #Voltage map voltMapTT = [400., 350., 300., 250., 225., 200., 175., 150., 125., 100., 60.] voltMapIT = [300., 200., 170., 140., 120., 105., 90., 75., 60., 40., 20.] - voltMapTTred = [400., 350., 300., 250., 225., 200., 175., 150.] - voltMapITred = [300., 200., 170., 140., 120., 105., 90., 75.] + voltMapTTred = [400., 350., 300., 250.] #225., 200., 175., 150. + voltMapITred = [300., 200., 170., 140.]#, 120., 105., 90., 75. if(detector == 'TT'): @@ -99,7 +102,7 @@ fills = f.read().splitlines() fills.remove('2797') fills.remove('3108') - + #Load Sectors with open(macros + '{DET}sectors.dat'.format(DET=detector), 'rb') as f: sectors = f.read().splitlines() @@ -179,8 +182,8 @@ ##################### if(plot2): - first_fill = 5162#int(raw_input(">For the last plot choose the first fill (5162): ")) - second_fill = 5448#int(raw_input(">For the last plot choose the second fill (5448): ")) + first_fill = int(raw_input(">For the last plot choose the first fill (5162): ")) + second_fill = int(raw_input(">For the last plot choose the second fill (5448): ")) df1 = df[(df.Fill == first_fill)] df2 = df[(df.Fill == second_fill)] @@ -201,7 +204,7 @@ plt.xlabel("Sector") plt.ylabel('Time difference (ns)') - plt.title("Time difference of max. positions fill 5448-5162 using nstrips={}".format(istrip) ) + plt.title("Time difference of max. positions fill {}-{} using nstrips={}".format(second_fill, first_fill, istrip) ) plt.legend(loc='upper left') plt.savefig(Outputfolder+'TimeDifferences_fill{}_{}_HV_ns{}.pdf'.format(str(first_fill)+str(second_fill),layer,istrip))