本文整理汇总了C++中TF1::SetBit方法的典型用法代码示例。如果您正苦于以下问题:C++ TF1::SetBit方法的具体用法?C++ TF1::SetBit怎么用?C++ TF1::SetBit使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TF1
的用法示例。
在下文中一共展示了TF1::SetBit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: compare_ATLAS_pp_fitBoth_TH1F
//.........这里部分代码省略.........
entry->SetLineColor(1);
entry->SetLineStyle(1);
entry->SetLineWidth(1);
ci = TColor::GetColor("#0000ff");
entry->SetMarkerColor(ci);
entry->SetMarkerStyle(24);
entry->SetMarkerSize(1);
leg->Draw();
TPaveText *pt = new TPaveText(0.4845652,0.94,0.5154348,0.995,"blNDC");
pt->SetName("title");
pt->SetBorderSize(0);
pt->SetFillColor(0);
pt->SetFillStyle(0);
pt->SetTextFont(42);
TText *text = pt->AddText(" ");
pt->Draw();
cATLAS_lin_pp->Modified();
cATLAS_lin_pp->cd();
cATLAS_lin_pp->SetSelected(cATLAS_lin_pp);
// for(int ic=0; ic<nfit; ic++){
// uPP_R4_SVD->Fit("fitppCMS","IL","",60,FitEnd); //fit function
// // uPP_R4_SVD->Fit("fitppCMS","IL","",50,300); //fit function
// }
hATLASpp->Draw();
grae->Draw("ap,same");
uPP_R4_SVD->Draw("same E1");
leg->Draw();
cATLAS_lin_pp->SaveAs("Plots/CMSfit_ATLASfit_spectra_loglog_pp.pdf");
fitppCMS->SetBit(TF1::kNotDraw);
fitppCMS->SetLineColor(0);
uPP_R4_SVD->SetBit(TF1::kNotDraw);
TH1F *hFitRatioATLAS = (TH1F*)functionHist(fitppCMS,uPP_R4_SVD,"hFitRatioATLAS"); //clone fitRatioATLAS from fitppCMS
// hFitRatioATLAS->SetLineColor(0);
TH1F *hRatioATLAS = (TH1F*)uPP_R4_SVD->Clone("hRatioATLAS"); //clone histogram hRatio from h
TH1F *hfunctionATLAS = (TH1F*)functionHist(fitppATLAS,uPP_R4_SVD,"hfunctionATLAS");
hFitRatioATLAS->Divide(hfunctionATLAS);
hFitRatioATLAS->SetMarkerColor(kRed);
hFitRatioATLAS->SetMarkerStyle(21);
hFitRatioATLAS->SetMarkerSize(1.2);
hFitRatioATLAS->SetLineColor(0);
TH1F *hfunctionATLASHist = (TH1F*)functionHist(fitppATLASHist,uPP_R4_SVD,"hfunctionATLASHist");
TH1F *hRatioATLASHist = (TH1F*)uPP_R4_SVD->Clone("hRatioATLASHist"); //clone histogram hRatio from h
hRatioATLASHist->Divide(hfunctionATLASHist);
hRatioATLASHist->SetMarkerColor(kGreen+1);
hRatioATLASHist->SetMarkerStyle(22);
hRatioATLASHist->SetMarkerSize(1.2);
hRatioATLASHist->SetLineColor(0);
// hfunctionATLAS->Draw();
// hATLASpp->Draw();
hRatioATLAS->Divide(hfunctionATLAS);
TCanvas *cRatio_pp = new TCanvas("cRatio_pp", "",0,0,1200,1000);
gStyle->SetOptFit(1);
gStyle->SetOptStat(0);
gStyle->SetOptTitle(0);