本文整理匯總了Python中Plotter.Plotter.readTuples方法的典型用法代碼示例。如果您正苦於以下問題:Python Plotter.readTuples方法的具體用法?Python Plotter.readTuples怎麽用?Python Plotter.readTuples使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Plotter.Plotter
的用法示例。
在下文中一共展示了Plotter.readTuples方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Plotter
# 需要導入模塊: from Plotter import Plotter [as 別名]
# 或者: from Plotter.Plotter import readTuples [as 別名]
0:{'name':'WW', 'colour':ROOT.TColor.GetColor(222,90,106), 'label':'WZ/WW'},
1:{'name':'WZ', 'colour':ROOT.TColor.GetColor(222,90,106), 'label':''},
2:{'name':'ZZ', 'colour':ROOT.TColor.GetColor(248,206,104), 'label':'ZZ'},
3:{'name':'tt1l', 'colour':ROOT.TColor.GetColor(155,152,204), 'label':'t#bar{t} (1l)'},
4:{'name':'tt2l', 'colour':ROOT.TColor.GetColor(160,160,220), 'label':'t#bar{t} (2l)'},
5:{'name':'W1Jet', 'colour':ROOT.TColor.kGreen + 2, 'label':'W + jets'},
6:{'name':'W2Jet', 'colour':ROOT.TColor.kGreen + 2, 'label':''},
7:{'name':'W3Jet', 'colour':ROOT.TColor.kGreen + 2, 'label':''},
8:{'name':'W4Jet', 'colour':ROOT.TColor.kGreen + 2, 'label':''},
9:{'name':'DY1Jet', 'colour':ROOT.TColor.GetColor(222,90,106), 'label':'DY + jets'},
10:{'name':'DY2Jet', 'colour':ROOT.TColor.GetColor(222,90,106), 'label':''},
11:{'name':'DY3Jet', 'colour':ROOT.TColor.GetColor(222,90,106), 'label':''},
12:{'name':'DY4Jet', 'colour':ROOT.TColor.GetColor(222,90,106), 'label':''},
# 4:{'name':'ttW', 'colour':ROOT.TColor.kGreen + 2, 'label':'t#bar{t}W'},
# 5:{'name':'ttZ', 'colour':ROOT.TColor.kGreen + 3, 'label':'t#bar{t}Z'},
13:{'name':'tH_YtMinus', 'colour':ROOT.TColor.kRed + 3, 'label':'tH (y_{t}=-1)'},
# 7:{'name':'ttH', 'colour':ROOT.TColor.GetColor(248,206,104), 'label':'t#bar{t}H'},
# 8:{'name':'reducible', 'colour':ROOT.TColor.GetColor(250,202,255), 'label':'Reducible'},
# 100:{'name':'data', 'colour':1, 'label':'Data'}, # FIXME: 100?
}
p = Plotter(variables, sampleDict, fileName="BDT_training_mva.root", signalsampleIds=[13], datasampleIds=[100])
p.readTuples()
p.makePlots(weight='bdt_evt_weight')