本文整理汇总了C++中TObjArray::Last方法的典型用法代码示例。如果您正苦于以下问题:C++ TObjArray::Last方法的具体用法?C++ TObjArray::Last怎么用?C++ TObjArray::Last使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TObjArray
的用法示例。
在下文中一共展示了TObjArray::Last方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetupCanvas
// ______________________________________________________________________________________
TPad* SetupCanvas(const Char_t* canName, const Char_t *canTitle) {
// -- setup canvas and pad
canA.Add(new TCanvas(Form("can%s", canName), canTitle, 0, 0 , 420, 700));
can = static_cast<TCanvas*>(canA.Last());
can->SetFillColor(0);
can->SetBorderMode(0);
can->SetBorderSize(0.0);
can->SetFrameFillColor(0);
can->SetFrameBorderMode(0);
can->cd();
pad = new TPad("pad", "pad",0.05, 0.06, 0.99, 0.98);
pad->SetBorderMode(0);
pad->SetFillColor(0);
pad->Draw();
pad->cd();
pad->Divide(1, 3, 0., 0., 0);
can->cd();
TLatex *texb_5 = new TLatex(0.45, 0.03, "#sqrt{#it{s}_{NN}} (GeV)");
texb_5->SetTextSize(0.04);
texb_5->Draw("same");
TLatex *texb_6a = new TLatex(0.05,0.8, aMomentsTitle[4]);
texb_6a->SetTextSize(0.04);
texb_6a->SetTextAngle(90);
texb_6a->Draw("same");
TLatex *texb_6b = new TLatex(0.05,0.45, aMomentsTitle2[5]);
texb_6b->SetTextSize(0.04);
texb_6b->SetTextAngle(90);
texb_6b->Draw("same");
TLatex *texb_6c = new TLatex(0.05,0.2, aMomentsTitle[6]);
texb_6c->SetTextSize(0.04);
texb_6c->SetTextAngle(90);
texb_6c->Draw("same");
return pad;
}