- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Wouter Verkerke, NIKHEF A RooMCStudy example Plot the distribution of –log(L) NB: likelihood distributions cannot be used to deduce goodness-of-fit information! // Plot the distribution of the NLL mgr.plotNLL(mframe) ; mframe-Draw() ; Wouter Verkerke, NIKHEF A RooMCStudy example For other uses, use summarized fit results in RooDataSet form mgr.fitParDataSet().get(10)-Print(“v”) ; RooArgSet::: 1) RooRealVar::mean : 0.14814 +/- 0.191 L(-10 - 10) 2) RooRealVar::sigma : 4.0619 +/- 0.143 L(0 - 20) 3) RooRealVar::NLL : 2585.1 C 4) RooRealVar::meanerr : 0.19064 C 5) RooRealVar::meanpull : 0.77704 C 6) RooRealVar::sigmaerr : 0.14338 C 7) RooRealVar::sigmapull : 0.43199 C TH2* h = mean.createHistogram(mean vs sigma,sigma) ; mgr.fitParDataSet().fillHistogram(h,RooArgList(mean,sigma)) ; h-Draw(BOX) ; Pulls and errorshave separateentries foreasy accessand plotting Wouter Verkerke, NIKHEF A RooMCStudy example If the “r” fit option is supplied the RooFitResult output of each fit is be saved mgr.fitResult(10)-Print(“v”) ; RooFitResult: minimized NLL value: 2585.13, estimated distance to minimum: 3.18389e-06 Floating Parameter InitialValue FinalValue +/- Error GblCorr. mean 0.0000e+00 1.4814e-01 +/- 1.91e-01 0.597596 none sigma 4.0000e+00 4.0619e+00 +/- 1.43e-01 0.597596 none mgr.fitResult(10)-correlation(sigma)-Print(v) ; RooArgList::C[sigma,*]: (Owning contents) 1) RooRealVar::C[sigma,mean] : -0.597596 C 2) RooRealVar::C[sigma,sigma] : 1.0000 C RooPlot* frame = new RooPlot(…) mgr.fitResult(10)-plotOn(frame,meanx, sigmax,ME12VHB) ; Wouter Verkerke, NIKHEF Fit Validation Study – Practical example Example fit model in 1-D (B mass) Signal component is Gaussian centered at B mass Background component is Argus function (models phase space near kinematic limit) Fit parameter under study: Nsig Results of simu
文档评论(0)