本文整理汇总了C++中TPad::ResizePad方法的典型用法代码示例。如果您正苦于以下问题:C++ TPad::ResizePad方法的具体用法?C++ TPad::ResizePad怎么用?C++ TPad::ResizePad使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TPad
的用法示例。
在下文中一共展示了TPad::ResizePad方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: offline
//.........这里部分代码省略.........
// Actually do the division of total hadrons/total trigs
projZDCxHad[ptbin][trig]->Divide(projZDCxTrig[ptbin][trig]);
// plot projections
pile[trig]->cd(ptbin+1);
projZDCxHad[ptbin][trig]->SetLineColor(kBlack);
projZDCxHad[ptbin][trig]->GetXaxis()->SetTitle("ZDCx");
projZDCxHad[ptbin][trig]->GetYaxis()->SetTitle("<nHadrons>/<nTracks>");
projZDCxHad[ptbin][trig]->GetYaxis()->SetRangeUser(0,20);
//
gStyle->SetOptFit(1111);
projZDCxHad[ptbin][trig]->Fit("pol1");
projZDCxHad[ptbin][trig]->GetFunction("pol1")->SetLineColor(kRed);
TPaveStats *st = ((TPaveStats*)(projZDCxHad[ptbin][trig]->GetListOfFunctions()->FindObject("stats")));
if (st) {
st->SetTextColor(projZDCxHad[ptbin][trig]->GetFunction("pol1")->GetLineColor());
st->SetX1NDC(0.64); st->SetX2NDC(0.99);
st->SetY1NDC(0.4); st->SetY2NDC(0.6);
}
pile[trig]->Modified();pile[trig]->Update();
projZDCxHad[ptbin][trig]->Draw("");
// Get Fit information and store to use in corrections
TF1 *fitResult = projZDCxHad[ptbin][trig]->GetFunction("pol1");
pu[0][ptbin][trig] = fitResult->GetParameter(0);
pu[1][ptbin][trig] = fitResult->GetParameter(1);
cout << trig << " " << ptbin << ": " << pu[0][ptbin][trig] << " " << pu[1][ptbin][trig] << endl;
}*/
}
// Draw on "SinglePlot" canvas for saving single plots from grid
TPad* pNew = (TPad*)result[2]->GetPad(4)->Clone();
singlePlot->cd();
pNew->ResizePad();
pNew->Draw();
// Make PDF with output canvases
if(makePDF)
{
//Set front page
TCanvas* fp = new TCanvas("fp","Front Page",100,0,1000,900);
fp->cd();
TBox *bLabel = new TBox(0.01, 0.88, 0.99, 0.99);
bLabel->SetFillColor(38);
bLabel->Draw();
TLatex tl;
tl.SetNDC();
tl.SetTextColor(kWhite);
tl.SetTextSize(0.033);
char tlName[100];
char tlName2[100];
TString titlename = FileName;
int found = titlename.Last('/');
if(found >= 0) {
titlename.Replace(0, found+1, "");
}
sprintf(tlName, "RUN 12 pp 200 GeV NPE-h #Delta#phi Analysis");
tl.SetTextSize(0.05);
tl.SetTextColor(kWhite);
tl.DrawLatex(0.05, 0.92,tlName);
TBox *bFoot = new TBox(0.01, 0.01, 0.99, 0.12);
bFoot->SetFillColor(38);
bFoot->Draw();
tl.SetTextColor(kWhite);