Esempio n. 1
0
                      ".png'></a><div style='width:398px'>" + path +
                      "</div></div>\n")

        #print processing
        print "*" * 20
        print "*** %d/%d finished ***" % (j, len(pathlist))
        print "*" * 20
        j += 1
    htmfile.write('</html>')


#main~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rundic = {}
pathlist = []
pathlist = myref1.getsteampath(
    '/afs/cern.ch/user/x/xgao/work/RateEstimate_mc_22_02_16/2e33/Results/mergedRates_MC_23to27.tsv'
)

getPU(rundic)
print rundic
gdic = {}
for run in rundic:
    tmp_list = []
    tmp_dic = {}
    tmp_dic = getrate(run, pathlist)
    tmp_list.append(tmp_dic)
    gdic[run] = tmp_list

my_plot(pathlist1, '2e33_mc_plot_part')
my_plot(pathlist, '2e33_mc_plot')
Esempio n. 2
0
        c1.Print('%s.png'%(p_path))
    
        htmfile.write("<div class=image><a href='"+path+".png'><img width=398 height=229 border=0 src='"+path+".png'></a><div style='width:398px'>"+path+"</div></div>\n")
    
    
    #print processing
        print "*"*20
        print "*** %d/%d finished ***"%(j,len(pathlist))
        print "*"*20
        j+=1
    htmfile.write('</html>')


#main~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rundic={}
pathlist=[]
pathlist=myref1.getsteampath('/afs/cern.ch/user/x/xgao/work/RateEstimate_mc_22_02_16/2e33/Results/mergedRates_MC_23to27.tsv')

getPU(rundic)
print rundic
gdic={}
for run in rundic:
    tmp_list=[]
    tmp_dic={}
    tmp_dic=getrate(run,pathlist)
    tmp_list.append(tmp_dic)
    gdic[run]=tmp_list

my_plot(pathlist1,'2e33_mc_plot_part')
my_plot(pathlist,'2e33_mc_plot')
Esempio n. 3
0
                print "Error get path: "+path+" in run:"+run


    return ratedic

def getPU(rundic):

    steamFile='/afs/cern.ch/user/x/xgao/CMSSW_7_6_3/src/RateEstimate/compareWbm_Steam/Results/steamPU.tsv'
    tmp_file=open(steamFile,'r')
    for Line in tmp_file:
        line=Line.split('\t')
        rundic[line[0]]=float(line[1].replace('\n',''))
#main~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rundic={}
pathlist=[]
pathlist=myref1.getsteampath('/afs/cern.ch/user/x/xgao/CMSSW_7_6_3/src/RateEstimate/256843/Results/256843_withoutl1emolar__frozen_2015_25ns14e33_v4p4_HLT_V1_1_matrixRates.tsv')

getPU(rundic)
print rundic
gdic={}
for run in rundic:
    tmp_list=[]
    tmp_dic={}
    tmp_dic=getrate(run,pathlist)
    tmp_list.append(tmp_dic)
    gdic[run]=tmp_list


#plot~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  #creat index.html to show in websit:
Esempio n. 4
0

def getPU(rundic):

    steamFile = '/afs/cern.ch/user/x/xgao/CMSSW_7_6_3/src/RateEstimate/compareWbm_Steam/Results/steamPU.tsv'
    tmp_file = open(steamFile, 'r')
    for Line in tmp_file:
        line = Line.split('\t')
        rundic[line[0]] = float(line[1].replace('\n', ''))


#main~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rundic = {}
pathlist = []
pathlist = myref1.getsteampath(
    '/afs/cern.ch/user/x/xgao/CMSSW_7_6_3/src/RateEstimate/256843/Results/256843_withoutl1emolar__frozen_2015_25ns14e33_v4p4_HLT_V1_1_matrixRates.tsv'
)

getPU(rundic)
print rundic
gdic = {}
for run in rundic:
    tmp_list = []
    tmp_dic = {}
    tmp_dic = getrate(run, pathlist)
    tmp_list.append(tmp_dic)
    gdic[run] = tmp_list

#plot~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#creat index.html to show in websit: