本文整理汇总了Python中supy.plotter函数的典型用法代码示例。如果您正苦于以下问题:Python plotter函数的具体用法?Python plotter怎么用?Python plotter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了plotter函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: conclude
def conclude(self, pars):
org = self.organizer(pars, verbose=True)
def gopts(name="", color=1):
return {"name": name, "color": color, "markerStyle": 1, "lineWidth": 2, "goptions": "ehist"}
for new, old, color in [("DY->tt", "dy_tt", r.kBlue),
("DY->mt", "dy_mt", r.kRed),
("DY->et", "dy_et", r.kOrange + 3),
("DY->em", "dy_em", r.kGreen),
]:
org.mergeSamples(targetSpec=gopts(new, color), sources=[old])
# org.scale() # to data
org.scale(lumiToUseInAbsenceOfData=4.0e3) # /pb
# org.scale(toPdf=True)
def yx(h):
if "_prof" in h.GetName():
ax = h.GetXaxis()
f = r.TF1("yx", "x", ax.GetXmin(), ax.GetXmax())
f.SetLineWidth(1)
f.Draw("same")
return f
supy.plotter(org,
pdfFileName=self.pdfFileName(org.tag),
printImperfectCalcPageIfEmpty=False,
printXs=True,
blackList=["lumiHisto", "xsHisto", "nJobsHisto"],
rowColors=[r.kBlack, r.kViolet+4],
doLog=False,
# pegMinimum=0.1,
fitFunc=yx,
).plotAll()
开发者ID:elaird,项目名称:supy-tflat,代码行数:35,代码来源:look.py
示例2: conclude
def conclude(self,pars) :
#make a pdf file with plots from the histograms created above
org = self.organizer(pars)
org.scale(lumiToUseInAbsenceOfData=1.0e-3) # /pb
supy.plotter(org,
pdfFileName = self.pdfFileName(org.tag),
).plotAll()
开发者ID:gerbaudo,项目名称:supy-fcnc,代码行数:7,代码来源:genLook.py
示例3: conclude
def conclude(self, config):
org = self.organizer(config)
supy.utils.io.printSkimResults(org)
supy.plotter(
org, pdfFileName=self.pdfFileName(org.tag), blackList=["lumiHisto", "xsHisto", "nJobsHisto"]
).plotAll()
开发者ID:elaird,项目名称:susycaf,代码行数:7,代码来源:hadronicSkim.py
示例4: conclude
def conclude(self, pars):
org = self.organizer(pars)
org.scale(lumiToUseInAbsenceOfData=20.0)
supy.plotter(org,
doLog=False,
pdfFileName=self.pdfFileName(org.tag),
).plotAll()
开发者ID:gerbaudo,项目名称:supy-susynt,代码行数:7,代码来源:cutflow_WZ.py
示例5: conclude
def conclude(self,pars) :
org = self.organizer(pars)
org.scale(lumiToUseInAbsenceOfData=20.0)
supy.plotter(org,
pdfFileName = self.pdfFileName(org.tag),
doLog = False,
blackList = ['lumiHisto','xsHisto','nJobsHisto'],
).plotAll()
开发者ID:gerbaudo,项目名称:supy-ntup-truth,代码行数:8,代码来源:tauHadLook.py
示例6: conclude
def conclude(self,pars) :
#make a pdf file with plots from the histograms created above
org = self.organizer(pars)
supy.plotter( org,
pdfFileName = self.pdfFileName(org.tag),
doLog = False,
blackList = ['num_.*', 'den_.*'],
).plotAll()
开发者ID:gerbaudo,项目名称:supy-d3pdtrig,代码行数:8,代码来源:debugL2PsInefficiency.py
示例7: conclude
def conclude(self, pars):
org = self.organizer(pars)
org.mergeSamples(targetSpec={"name": "qcd_py6", "color": r.kBlue}, allWithPrefix="v12_qcd_py6")
org.scale(100)
supy.plotter(
org,
pdfFileName=self.pdfFileName(org.tag),
blackList=["lumiHisto", "xsHisto", "xsPostWeightsHisto", "nJobsHisto"],
).plotAll()
开发者ID:elaird,项目名称:susycaf,代码行数:9,代码来源:exampleInclusive.py
示例8: conclude
def conclude(self,pars) :
#make a pdf file with plots from the histograms created above
org = self.organizer(pars)
org.scale(lumiToUseInAbsenceOfData=1.0e-3) # /pb
supy.plotter(org,
pdfFileName = self.pdfFileName(org.tag),
samplesForRatios = ('SM', ['A2', 'A4', 'A6', 'P3']),
sampleLabelsForRatios = ('SM','BSM'),
).plotAll()
开发者ID:gerbaudo,项目名称:protos-studies,代码行数:9,代码来源:basicExample.py
示例9: conclude
def conclude(self, pars):
org = self.organizer(pars, verbose=True)
def gopts(name="", color=1):
return {"name":name, "color":color, "markerStyle":1, "lineWidth":2, "goptions":"ehist"}
org.mergeSamples(targetSpec={"name": "Data"}, allWithPrefix="data")
mc = ".".join(["", "LastBinOverBin1", "diTauHadTriggerWeight"])
sig = mc + ".x100"
for sample, color, ws in [("H260_hh_bbtautau", r.kOrange, sig),
("H300_hh_bbtautau", 28, sig),
("H350_hh_bbtautau", 44, sig),
("ZZ_llqq", r.kYellow, mc),
("tt_bblnln", r.kMagenta, mc),
("tt_bblnqq", r.kBlue, mc),
("dy_ll", r.kGreen, mc),
]:
name = sample
if ws.endswith(".x100"):
name = sample[:4] + ".x100"
org.mergeSamples(targetSpec=gopts(name, color), sources=[sample + ws])
org.mergeSamples(targetSpec=gopts("w_ln_123j", r.kMagenta+2), allWithPrefix="w_ln")
org.mergeSamples(targetSpec=gopts("EWK", r.kRed),
keepSources=True,
sources=["ZZ_llqq", "tt_bblnln", "tt_bblnqq", "dy_ll", "w_ln_123j"])
org.scale() # to data
#org.scale(lumiToUseInAbsenceOfData=20.0e3) # /pb
#org.scale(toPdf=True)
supy.plotter(org,
pdfFileName=self.pdfFileName(org.tag),
printImperfectCalcPageIfEmpty=False,
printXs=True,
blackList=["lumiHisto", "xsHisto", "nJobsHisto"],
rowColors=[r.kBlack, r.kViolet+4],
doLog=True,
pegMinimum=0.1,
showStatBox=False,
latexYieldTable=False,
#samplesForRatios=("H300_hh_bbtautau", "tt_bbll"),
#sampleLabelsForRatios=("hh", "tt"),
#foms=[{"value": lambda x, y: x/y,
# "uncRel": lambda x, y, xUnc, yUnc: ((xUnc/x)**2 + (yUnc/y)**2)**0.5,
# "label": lambda x, y:"%s/%s" % (x, y),
# },
# #{"value": lambda x,y: x/(y**0.5),
# # "uncRel": lambda x, y, xUnc, yUnc: math.sqrt((xUnc/x)**2 + (yUnc/y/2.)**2),
# # "label": lambda x,y: "%s/sqrt(%s)" % (x, y),
# # },
# ],
).plotAll()
开发者ID:elaird,项目名称:supy-tflat,代码行数:57,代码来源:example.py
示例10: conclude
def conclude(self,pars) :
#make a pdf file with plots from the histograms created above
org = self.organizer(pars)
org.scale()
supy.plotter(org,
pdfFileName = self.pdfFileName(org.tag),
doLog=False,
blackList = ['lumiHisto','xsHisto','nJobsHisto','cnt_.*', 'cum_.*'],
).plotAll()
开发者ID:gerbaudo,项目名称:supy-l1stgc,代码行数:9,代码来源:stgcHitLook.py
示例11: conclude
def conclude(self,pars) :
#make a pdf file with plots from the histograms created above
org = self.organizer(pars)
org.scale()
supy.plotter( org,
pdfFileName = self.pdfFileName(org.tag),
#samplesForRatios = ("Example_Skimmed_900_GeV_Data","Example_Skimmed_900_GeV_MC"),
#sampleLabelsForRatios = ("data","sim"),
).plotAll()
开发者ID:gerbaudo,项目名称:supy-ttbar,代码行数:9,代码来源:example_ttbar.py
示例12: conclude
def conclude(self, pars):
#make a pdf file with plots from the histograms created above
org = self.organizer(pars)
org.scale()
supy.plotter(org,
pdfFileName=self.pdfFileName(org.tag),
samplesForRatios=("Data", "MC"),
sampleLabelsForRatios=("data", "sim"),
detailedCalculables=True,
).plotAll()
开发者ID:gerbaudo,项目名称:supy-minimal-example,代码行数:10,代码来源:example_analysis.py
示例13: conclude
def conclude(self,pars) :
#make a pdf file with plots from the histograms created above
org = self.organizer(pars)
mode = self.parameters()['mode']
mode, skim = self.parameters()['mode'], self.parameters()['skim']
supy.plotter( org,
pdfFileName = self.pdfFileName(org.tag+self.parameters()['mode']),
doLog = False,
blackList = ['num_.*', 'den_.*'],
).plotAll()
开发者ID:gerbaudo,项目名称:supy-d3pdtrig,代码行数:10,代码来源:fatJetTurnOn.py
示例14: conclude
def conclude(self, conf) :
org = self.organizer(conf)
org.scale(5.0e3)
supy.plotter(org,
pdfFileName = self.pdfFileName(org.tag),
rowColors = [r.kBlack, r.kViolet+4],
#doLog = False,
pegMinimum = 0.1,
blackList = ["lumiHisto","xsHisto","nJobsHisto"],
).plotAll()
开发者ID:elaird,项目名称:susycaf,代码行数:10,代码来源:emuLook.py
示例15: conclude
def conclude(self,pars) :
#make a pdf file with plots from the histograms created above
org = self.organizer(pars)
org.scale(lumiToUseInAbsenceOfData=1.0e-3) # /pb
supy.plotter(org,
pdfFileName = self.pdfFileName(org.tag),
doLog=False,
blackList = ['lumiHisto','xsHisto','nJobsHisto',],
samplesForRatios=('tt-fs',['tt-af','tHu-af','tHu-fs']),
).plotAll()
开发者ID:gerbaudo,项目名称:supy-fcnc,代码行数:10,代码来源:isoLook.py
示例16: conclude
def conclude(self,pars) :
org = self.organizer(pars)
org.mergeSamples(targetSpec = {"name":"qcd_mg", "color":r.kBlue}, allWithPrefix="qcd_mg")
org.mergeSamples(targetSpec = {"name":"qcd_py6", "color":r.kRed}, allWithPrefix="qcd_py6")
org.scale()
supy.plotter( org,
pdfFileName = self.pdfFileName(org.tag),
blackList = ["lumiHisto","xsHisto","xsPostWeightsHisto","nJobsHisto","genpthat"],
detailedCalculables = True,
).plotAll()
开发者ID:elaird,项目名称:susycaf,代码行数:10,代码来源:exampleReweight.py
示例17: conclude
def conclude(self,pars) :
org = self.organizer(pars)
org.scale(1.0e3)
supy.plotter(org,
pdfFileName = self.pdfFileName(""),
blackList = ["lumiHisto","xsHisto","nJobsHisto",],
rowColors = [r.kBlack, r.kViolet+4],
pegMinimum = 0.1,
doLog = False,
).plotAll()
开发者ID:elaird,项目名称:susycaf,代码行数:11,代码来源:genTopLook.py
示例18: conclude
def conclude(self,pars) :
org = self.organizer(pars)
org.mergeSamples(sources = ["ttz_8_mg.job269_1"], targetSpec = {"name":"TTZ", "markerStyle":20})
org.scale(10.0e3)
supy.plotter(org,
pdfFileName = self.pdfFileName(""),
blackList = ["lumiHisto","xsHisto","nJobsHisto",],
rowColors = [r.kBlack, r.kViolet+4],
pegMinimum = 0.1,
doLog = False,
).plotAll()
开发者ID:elaird,项目名称:susycaf,代码行数:12,代码来源:genMLook.py
示例19: conclude
def conclude(self,pars) :
org = self.organizer(pars)
org.scale(toPdf=True)
supy.plotter(org,
pdfFileName = self.pdfFileName(org.tag),
doLog = False,
#noSci = True,
#pegMinimum = 0.1,
detailedCalculables = True,
blackList = ["lumiHisto","xsHisto","nJobsHisto"],
).plotAll()
开发者ID:elaird,项目名称:susycaf,代码行数:12,代码来源:topAsymmKinfit.py
示例20: conclude
def conclude(self, pars):
org = self.organizer(pars, prefixesNoScale=["efficiency_"])
supy.utils.printSkimResults(org)
org.scale(1.e3)
supy.plotter(org,
pdfFileName=self.pdfFileName(org.tag),
printImperfectCalcPageIfEmpty=False,
printXs=True,
blackList=["lumiHisto", "xsHisto", "nJobsHisto"],
rowColors=[1, 2],
doLog=True,
optStat=1111,
showStatBox=False,
).plotAll()
开发者ID:elaird,项目名称:supy-delphes,代码行数:14,代码来源:skimTest.py
注:本文中的supy.plotter函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论