本文整理汇总了C++中TLatex::AppendPad方法的典型用法代码示例。如果您正苦于以下问题:C++ TLatex::AppendPad方法的具体用法?C++ TLatex::AppendPad怎么用?C++ TLatex::AppendPad使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TLatex
的用法示例。
在下文中一共展示了TLatex::AppendPad方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SUSY_bRPV_m0_vs_m12_all_withBand_cls
//.........这里部分代码省略.........
if( hist5!=0) nbkg = hist5->GetMaximum();
TString t1c = Form("MC: n_{bkg}= %.1f", nbkg) ;
// TLatex* text1a = new TLatex( 70, 260, t1a );
TLatex* text1b = new TLatex( 150, ymax + dy*0.025, t1b );
TLatex* text1c = new TLatex( 70, 280, t1c );
// text1a->SetTextColor( 1 ); //CombinationGlob::c_VDarkGreen );
text1b->SetTextColor( 1 ); //CombinationGlob::c_VDarkGreen );
text1c->SetTextColor( 1 );
text1b->SetTextFont( 42 ); //CombinationGlob::c_VDarkGreen );
// text1a->SetTextAlign( 11 );
text1b->SetTextAlign( 11 );
text1c->SetTextAlign( 11 );
// text1a->SetTextSize( CombinationGlob::DescriptionTextSize + textSizeOffset );
text1b->SetTextSize( CombinationGlob::DescriptionTextSize );
text1c->SetTextSize( CombinationGlob::DescriptionTextSize );
TString plottitle="bRPV-MSUGRA: tan #beta = 30, A_{0}= -2m_{0}, #mu>0";
if(showSR){
std::cout << "--- printing best SRs" << std::endl;
Show_SR(fname0, c, xmin, xmax, ymin, ymax, useShape, leg);
}
TLatex *Leg0 = new TLatex( xmin, ymax + dy*0.025,plottitle );
Leg0->SetTextAlign( 11 );
Leg0->SetTextFont( 42 );
Leg0->SetTextSize( CombinationGlob::DescriptionTextSize);
Leg0->SetTextColor( 1 );
Leg0->AppendPad();
TLatex *Leg1 = new TLatex();
Leg1->SetNDC();
Leg1->SetTextAlign( 11 );
Leg1->SetTextFont( 42 );
Leg1->SetTextSize( CombinationGlob::DescriptionTextSize );
Leg1->SetTextColor( 1 );
Leg1->DrawLatex(0.15,0.78, Form("#int L dt = %1.1f fb^{-1}, #sqrt{s}=8 TeV",lumi)); // 0.32,0.87
if(useShape){
Leg1->DrawLatex(0.15,0.72, "0 leptons, 2-6 jets, 5-bin"); // 0.32,0.87
} else {
Leg1->DrawLatex(0.15,0.72, "0 leptons, 2-6 jets"); // 0.32,0.87
}
Leg1->AppendPad();
TLatex *Leg2 = new TLatex();
Leg2->SetNDC();
Leg2->SetTextAlign( 11 );
Leg2->SetTextSize( CombinationGlob::DescriptionTextSize );
Leg2->SetTextColor( 1 );
Leg2->SetTextFont(70);
if (prefix!=0) {
Leg2->DrawLatex(0.7,0.85,prefix); // 0.15,0.81
Leg2->AppendPad();
}
TLatex *atlasLabel = new TLatex();
atlasLabel->SetNDC();
atlasLabel->SetTextFont( 42 );
atlasLabel->SetTextColor( 1 );