本文整理汇总了C++中TChain::SetMarkerColor方法的典型用法代码示例。如果您正苦于以下问题:C++ TChain::SetMarkerColor方法的具体用法?C++ TChain::SetMarkerColor怎么用?C++ TChain::SetMarkerColor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TChain
的用法示例。
在下文中一共展示了TChain::SetMarkerColor方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PurityFit
//.........这里部分代码省略.........
elli->SetFillColor(0);
elli->SetFillStyle(0);
elli->SetLineColor(kBlue);
elli->SetLineWidth(2);
TEllipse* elli1 = new TEllipse(de_center.getVal(),mbc_center.getVal(),de_radius1.getVal(),mbc_radius1.getVal());
elli1->SetFillColor(0);
elli1->SetFillStyle(0);
// elli1->SetLineColor(kBlue);
elli1->SetLineColor(kRed);
elli1->SetLineWidth(2);
TLine* l1 = new TLine(dE_min,Mbc_min,dE_max,Mbc_min);
l1->SetLineColor(kRed);
l1->SetLineStyle(1);
l1->SetLineWidth(2);
TLine* l2 = new TLine(dE_min,Mbc_max,dE_max,Mbc_max);
l2->SetLineColor(kRed);
l2->SetLineStyle(1);
l2->SetLineWidth(2);
TLine* l3 = new TLine(dE_min,Mbc_min,dE_min,Mbc_max);
l3->SetLineColor(kRed);
l3->SetLineStyle(1);
l3->SetLineWidth(2);
TLine* l4 = new TLine(dE_max,Mbc_min,dE_max,Mbc_max);
l4->SetLineColor(kRed);
l4->SetLineStyle(1);
l4->SetLineWidth(2);
TCanvas* ellican = new TCanvas("ellican","ellican",400,400);
ellican->cd();
out.str("");
out << "bdtg>" << BDTG_MIN << " && de>-0.15 && de<0.20 && mbc>5.265 && b0f != 1 && b0f != 5 && b0f != 10 && b0f != 0";
tree->Draw("mbc:de",out.str().c_str());
tree->SetMarkerStyle(6);
tree->SetMarkerColor(kBlue);
out.str("");
out << "bdtg>" << BDTG_MIN << " && de>-0.15 && de<0.20 && mbc>5.265 && (b0f == 1 || b0f == 5 || b0f == 10)";
tree->Draw("mbc:de",out.str().c_str(),"same");
// elli->Draw();
elli1->Draw();
// ellican->Pad().GetXaxis()->SetTitle("#DeltaE (GeV)");
// l1->Draw(); l2->Draw(); l3->Draw(); l4->Draw();
// TCanvas* sigcan = new TCanvas("sigcan","sigcan",400,400);
// sigcan->cd();
// out <<
// tree->Draw("mbc:de","bdtg>0.98 && de>-0.15 && de<0.20 && mbc>5.265 && (b0f == 1 || b0f == 5 || b0f == 10)");
// elli->Draw(); elli1->Draw(); l1->Draw(); l2->Draw(); l3->Draw(); l4->Draw();
// TCanvas* backcan = new TCanvas("backcan","backcan",400,400);
// backcan->cd();
// tree->Draw("mbc:de","bdtg>0.98 && de>-0.15 && de<0.20 && mbc>5.265 && !(b0f == 1 || b0f == 5 || b0f == 10)");
// elli->Draw(); elli1->Draw(); l1->Draw(); l2->Draw(); l3->Draw(); l4->Draw();
cout << "Rectangle:" << endl;
out.str("");
out << "de<" << dE_max << " && de>" << dE_min;
out << " && mbc>" << Mbc_min << " && mbc<" << Mbc_max;
Roo1DTable* recttable = ds.table(b0f,out.str().c_str());
recttable->Print();
recttable->Print("v");
cout << "Ellips:" << endl;
// out.str("");
// out << "(de-" << de_center.getVal() << ")/" << de_radius.getVal() << "*(de-" << de_center.getVal() << ")/" << de_radius.getVal() << "+(mbc-"<<mbc_center.getVal()<<")/" << mbc_radius.getVal() << "*(mbc-" << mbc_center.getVal() << ")/" << mbc_radius.getVal() << "<1";
// cout << out.str() << endl;
// Roo1DTable* ellitable = ds.table(b0f,out.str().c_str());