本文整理汇总了C++中TBox::SetLineStyle方法的典型用法代码示例。如果您正苦于以下问题:C++ TBox::SetLineStyle方法的具体用法?C++ TBox::SetLineStyle怎么用?C++ TBox::SetLineStyle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TBox
的用法示例。
在下文中一共展示了TBox::SetLineStyle方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: makeATGCLimitDataCards
//.........这里部分代码省略.........
wwatgc4Display->SetBinError (ibin,th1wwlosc->GetBinError (ibin));
} else {
wwatgc4Display->SetBinContent(ibin,th1wwhisc->GetBinContent(ibin));
wwatgc4Display->SetBinError (ibin,th1wwhisc->GetBinError (ibin));
}
}
wwatgc4Display->Scale(WW_scale_NLO * (domu ? intLUMIinvpb_mu : intLUMIinvpb_el));
// stitch the two WZ histograms together into one, post-smearing.
for (int ibin=0;ibin<=wzatgc4Display->GetNbinsX()+1;ibin++) {
if (wzatgc4Display->GetBinLowEdge(ibin)<stitchwzgev) {
wzatgc4Display->SetBinContent(ibin,th1wzlosc->GetBinContent(ibin));
wzatgc4Display->SetBinError (ibin,th1wzlosc->GetBinError (ibin));
} else {
wzatgc4Display->SetBinContent(ibin,th1wzhisc->GetBinContent(ibin));
wzatgc4Display->SetBinError (ibin,th1wzhisc->GetBinError (ibin));
}
}
wzatgc4Display->Scale(WZ_scale_NLO * (domu ? intLUMIinvpb_mu : intLUMIinvpb_el));
cout << "wwatgc4Display nentries = " << wwatgc4Display->GetEntries() << endl;
// ----- need to subtract the diboson contribution
wwatgc4Display->SetLineWidth(2);
wwatgc4Display->SetLineColor(1);
wwatgc4Display->SetFillColor(0);
// ----- need to subtract the diboson contribution
wzatgc4Display->SetLineWidth(2);
wzatgc4Display->SetLineColor(1);
wzatgc4Display->SetFillColor(0);
wzatgc4Display->SetLineStyle(2);
//-------- Add overflow bin ----------------
AddOverflowBin(wwatgc4Display);
AddOverflowBin(wzatgc4Display);
#endif
// ---- Compose the stack ----------
THStack* hs = new THStack("hs","MC contribution");
//hs->Add(th1zjets);
//hs->Add(th1qcd);
hs->Add(th1Top);
hs->Add(th1wjets);
hs->Add(th1wv); // add WW in with backgrounds for display only
hs->Add(wwatgc4Display);
hs->Add(wzatgc4Display);
// ---- Stack for shape systematics Up ----------
double bkgd_norm_fracerror = domu ? mu_bkgd_norm_error : el_bkgd_norm_error;
double sig_norm_fracerror = domu ? mu_sig_norm_error : el_sig_norm_error;
cout << "Background normalization fractional systematic = " << bkgd_norm_fracerror << endl;
cout << "Signal normalization fractional systematic = " << sig_norm_fracerror << endl;
//TF1* formScaleUp = new TF1("formScaleUp", "1.0+0.4*log(x/5)", dm_min, dm_max);
//TF1* formScaleDn = new TF1("formScaleDn", "1.0-0.2*log(x/5)", dm_min, dm_max);
TF1* formScaleUp = new TF1("formScaleUp", Form("1.0+%f",bkgd_norm_fracerror), dm_min, dm_max);
TF1* formScaleDn = new TF1("formScaleDn", Form("1.0-%f",bkgd_norm_fracerror), dm_min, dm_max);
systUp = (TH1D*) th1wjets->Clone("systUp");
示例2: NuclearModificationY
//.........这里部分代码省略.........
//RFB stuff
//central value
yRFB[0] = ySigmapPb[3]/ySigmapPb[2];
yRFB[1] = ySigmapPb[4]/ySigmapPb[1];
//Stat.
yRFBStat[0] = yRFB[0]*sqrt(pow(ySigmapPbStat[2]/ySigmapPb[2],2)+pow(ySigmapPbStat[3]/ySigmapPb[3],2));
yRFBStat[1] = yRFB[1]*sqrt(pow(ySigmapPbStat[4]/ySigmapPb[4],2)+pow(ySigmapPbStat[1]/ySigmapPb[1],2));
//Syst.
yRFBSystTotHigh[0] = yRFB[0]*yRFBSystTotHighRel[0];
yRFBSystTotLow[0] = yRFB[0]*yRFBSystTotLowRel[0];
yRFBSystTotHigh[1] = yRFB[1]*yRFBSystTotHighRel[1];
yRFBSystTotLow[1] = yRFB[1]*yRFBSystTotLowRel[1];
TGraphAsymmErrors *gSigmasyst = new TGraphAsymmErrors(nbins,xbins,ySigmapPb,exl2,exl2,ySigmapPbSystTotLow,ySigmapPbSystTotHigh);
//###TGraphAsymmErrors *gSigmasyst = new TGraphAsymmErrors(nbins,xbins,ySigmapPb,exl,exl,ySigmapPbSystTotLow,ySigmapPbSystTotHigh);
gSigmasyst->SetTitle("Sigma syst uncertainty from pPb");
gSigmasyst->SetMarkerColor(1);
gSigmasyst->SetLineColor(1);
gSigmasyst->SetLineWidth(3);
gSigmasyst->SetMarkerStyle(21);
gSigmasyst->SetMarkerColor(1);
gSigmasyst->SetFillColor(kYellow-7);//5
gSigmasyst->SetFillStyle(1001);
TGraphAsymmErrors*gSigmasyst2=(TGraphAsymmErrors*)gSigmasyst->Clone();
gSigmasyst2->SetMarkerColor(1);
gSigmasyst2->SetMarkerStyle(25);
gSigmasyst2->SetFillColor(0);
gSigmasyst2->SetFillStyle(0);
gSigmasyst2->SetLineColor(1);//5
gSigmasyst2->SetLineStyle(1);
gSigmasyst2->SetLineWidth(3);
//###TGraphAsymmErrors *gSigmastat = new TGraphAsymmErrors(nbins,xbins,ySigmapPb,exl,exl,ySigmapPbStat,ySigmapPbStat);
TGraphAsymmErrors *gSigmastat = new TGraphAsymmErrors(nbins,xbins,ySigmapPb,exl0,exl0,ySigmapPbStat,ySigmapPbStat);
gSigmastat->SetTitle("Sigma stat uncertainty from pPb");
gSigmastat->SetMarkerColor(1);
gSigmastat->SetLineColor(1);
gSigmastat->SetLineWidth(3);
gSigmastat->SetMarkerStyle(21);
gSigmastat->SetMarkerColor(1);
gSigmastat->SetFillColor(0);
gSigmastat->SetFillStyle(0);
//###TCanvas *canvasSigma=new TCanvas("canvasSigma","canvasSigma",600,500);
TCanvas *canvasSigma=new TCanvas("canvasSigma","canvasSigma",500,500);
canvasSigma->cd();
canvasSigma->Range(-1.989924,-0.2917772,25.49622,2.212202);
canvasSigma->SetFillColor(0);
canvasSigma->SetBorderMode(0);
canvasSigma->SetBorderSize(2);
canvasSigma->SetLeftMargin(0.200);
canvasSigma->SetRightMargin(0.025);
canvasSigma->SetTopMargin(0.080);
canvasSigma->SetBottomMargin(0.150);
canvasSigma->SetFrameBorderMode(0);
TH2F* hempty=new TH2F("hempty","",10,-3.5,2.5,10,0,650.);