minInLB, integralAbove, histoName) if (integralAbove == -999.): print "No lwoer bound defined -> whole histogram considered!" b_wholeHisto = True # print "You must define the lower bound of your integral" # sys.exit() # Definition of Canvas option depending on histogram type if (objectType == "NumberTightFwdElectrons" or objectType == "NumberTau"): canvasOption = "logy" else: canvasOption = "" ######################################################################### # Look for the final merged HIST file # and plot the histogram runFilePath = "root://eosatlas.cern.ch/%s" % (pathExtract.returnEosHistPath( runNumber, stream, amiTag, tag)).rstrip() if ("FILE NOT FOUND" in runFilePath): print "No merged file found..." sys.exit() f = TFile.Open(runFilePath) histo = {} for iHisto in histoKeys: histo[iHisto] = f.Get(histoPath[iHisto]) histo[iHisto].SetTitle("%s - Run %d" % (histo[iHisto].GetTitle(), runNumber)) # Display the Tier0 merged histograms c = {} box = {} line = {}
'low_run': runNumber, 'high_run': runNumber } run_info = s.get_run_information(run_spec) if '%d' % runNumber not in run_info.keys() or len( run_info['%d' % runNumber]) < 2: print "Unable to retrieve the data project tag via atlasdqm... Please double check your atlasdqmpass.txt or define it by hand with -t option" sys.exit() tag = run_info['%d' % runNumber][1] amiTag = args.amiTag path = [] if args.lumiblock == 0: path.append("root://eosatlas.cern.ch/%s" % (pathExtract.returnEosHistPath( args.runNumber, args.stream, args.amiTag, tag)).rstrip()) else: allUnmerged = pathExtract.returnEosHistPathLB(runNumber, LB, LB, stream, amiTag, tag) for iFile in allUnmerged: path.append("root://eosatlas.cern.ch/%s" % (iFile).rstrip()) # path.add("root://eosatlas.cern.ch/%s"%(.rstrip()) file = [] for iPath in path: if ("NO FILE" not in iPath): print "I am opening %s" % (iPath) file.append(TFile.Open(iPath)) gStyle.SetPalette(1) tb = TBrowser()