import RUNA.RUNAnalysis.CMS_lumi as CMS_lumi import RUNA.RUNAnalysis.tdrstyle as tdrstyle from RUNA.RUNAnalysis.commonFunctions import * except ImportError: sys.path.append('../python') from histoLabels import labels, labelAxis, finalLabels from scaleFactors import * #scaleFactor as SF from cuts import selection import CMS_lumi as CMS_lumi import tdrstyle as tdrstyle from commonFunctions import * gROOT.Reset() gROOT.SetBatch() gROOT.ForceStyle() tdrstyle.setTDRStyle() gStyle.SetOptStat(0) xline = array('d', [0, 2000]) yline = array('d', [1, 1]) line = TGraph(2, xline, yline) line.SetLineColor(kRed) jetMassHTlabY = 0.20 jetMassHTlabX = 0.85 def plotSystematics(inFileSample, Groom, name, xmin, xmax, labX, labY, log): """docstring for plot""" if args.version in ['v05']:
#from ROOT import TFile, TH1F, THStack, TCanvas, TMath, gROOT, gPad from ROOT import * import time, os, math, sys import argparse from RUNA.RUNAnalysis.histoLabels import labels, labelAxis import RUNA.RUNAnalysis.CMS_lumi as CMS_lumi import RUNA.RUNAnalysis.tdrstyle as tdrstyle gROOT.Reset() gROOT.SetBatch() #setTDRStyle() #gROOT.SetStyle('tdrStyle') #set the tdr style gROOT.ForceStyle() tdrstyle.setTDRStyle() #CMS_lumi.writeExtraText = 1 #CMS_lumi.extraText = "" gStyle.SetOptStat(0) def plotTriggerEfficiency( inFileSample, sample, triggerDenom, triggerPass, name, cut, xmin, xmax, rebin, labX, labY, log, version, PU ): """docstring for plot""" outputFileName = name+'_'+cut+'_'+triggerDenom+"_"+triggerPass+'_'+sample+'_'+version+'_TriggerEfficiency.'+ext print 'Processing.......', outputFileName DenomOnly = inFileSample.Get( version+'TriggerEfficiency'+triggerPass.replace(tmpTrig,'')+'/'+name+'Denom_'+cut ) DenomOnly.Rebin(rebin) Denom = DenomOnly.Clone()