本文整理汇总了C++中Plotter::Plot方法的典型用法代码示例。如果您正苦于以下问题:C++ Plotter::Plot方法的具体用法?C++ Plotter::Plot怎么用?C++ Plotter::Plot使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Plotter
的用法示例。
在下文中一共展示了Plotter::Plot方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main() {
float lumi = 2260.;
TString dir = "/Users/dygyun/Top/HET_v763";
//TString dir = "/xrootd/store/user/tjkim/ntuples/hep/V6";
TFile * fA = TFile::Open(dir+"/hep_TT_powheg.root");
TFile * fB = TFile::Open(dir+"/hep_TT_powheg.root");
TFile * fC = TFile::Open(dir+"/hep_WJets.root");
TFile * fD = TFile::Open(dir+"/hep_DYJets.root");
TFile * fE = TFile::Open(dir+"/hep_DYJets_10to50.root");
TFile * fI = TFile::Open(dir+"/hep_SingleTop_t.root");
TFile * fJ = TFile::Open(dir+"/hep_SingleTbar_t.root");
TFile * fK = TFile::Open(dir+"/hep_SingleTop_tW.root");
TFile * fL = TFile::Open(dir+"/hep_SingleTbar_tW.root");
TFile * fN = TFile::Open(dir+"/hep_WW.root");
TFile * fO = TFile::Open(dir+"/hep_WZ.root");
TFile * fM = TFile::Open(dir+"/hep_ZZ.root");
// TFile * fP = TFile::Open(dir+"/hep_qcd.root");
TH1F * hBsemi = (TH1F*) fA->Get("TopTree/EventSummary");
TH1F * hB = (TH1F*) fB->Get("TopTree/EventSummary");
TH1F * hC = (TH1F*) fC->Get("TopTree/EventSummary");
TH1F * hD = (TH1F*) fD->Get("TopTree/EventSummary");
TH1F * hE = (TH1F*) fE->Get("TopTree/EventSummary");
TH1F * hI = (TH1F*) fI->Get("TopTree/EventSummary");
TH1F * hJ = (TH1F*) fJ->Get("TopTree/EventSummary");
TH1F * hK = (TH1F*) fK->Get("TopTree/EventSummary");
TH1F * hL = (TH1F*) fL->Get("TopTree/EventSummary");
TH1F * hN = (TH1F*) fN->Get("TopTree/EventSummary");
TH1F * hO = (TH1F*) fO->Get("TopTree/EventSummary");
TH1F * hM = (TH1F*) fM->Get("TopTree/EventSummary");
// TH1F * hP = (TH1F*) fP->Get("");
int nevt = -1;
MyAnalysis *A = new MyAnalysis();
TChain* ch = new TChain("TopTree/events");
ch->Add(Form("%s/hep_data_json.root",dir.Data()), nevt);
ch->Process(A);
MyAnalysis_others *B = new MyAnalysis_others(1,1,831.8,lumi,hB->GetBinContent(1));
TChain* ch2 = new TChain("TopTree/events");
ch2->Add(Form("%s/hep_TT_powheg.root",dir.Data()), nevt);
ch2->Process(B);
//////
MyAnalysis_Sig *Bsemi = new MyAnalysis_Sig(1,1,831.8,lumi,hBsemi->GetBinContent(1));
TChain* ch2semi = new TChain("TopTree/events");
ch2semi->Add(Form("%s/hep_TT_powheg.root",dir.Data()), nevt);
ch2semi->Process(Bsemi);
/////////
MyAnalysis *C = new MyAnalysis(1,1,61524,lumi,hC->GetBinContent(2));
TChain* ch3 = new TChain("TopTree/events");
ch3->Add(Form("%s/hep_WJets.root",dir.Data()),nevt);
ch3->Process(C);
MyAnalysis *D = new MyAnalysis(1,1,6025.2,lumi,hD->GetBinContent(1));
TChain* ch4 = new TChain("TopTree/events");
ch4->Add(Form("%s/hep_DYJets.root",dir.Data()),nevt);
ch4->Process(D);
MyAnalysis *E = new MyAnalysis(1,1,18610.0,lumi,hE->GetBinContent(1));
TChain* ch5 = new TChain("TopTree/events");
ch5->Add(Form("%s/hep_DYJets_10to50.root",dir.Data()),nevt);
ch5->Process(E);
MyAnalysis *I = new MyAnalysis(1,1,44.33,lumi,hI->GetBinContent(1));
TChain* ch6 = new TChain("TopTree/events");
ch6->Add(Form("%s/hep_SingleTop_t.root",dir.Data()),nevt);
ch6->Process(I);
MyAnalysis *J = new MyAnalysis(1,1,26.38,lumi,hJ->GetBinContent(1));
TChain* ch7 = new TChain("TopTree/events");
ch7->Add(Form("%s/hep_SingleTbar_t.root",dir.Data()),nevt);
ch7->Process(J);
MyAnalysis *K = new MyAnalysis(1,1,35.6,lumi,hK->GetBinContent(1));
TChain* ch8 = new TChain("TopTree/events");
ch8->Add(Form("%s/hep_SingleTop_tW.root",dir.Data()),nevt);
ch8->Process(K);
MyAnalysis *L = new MyAnalysis(1,1,35.6,lumi,hL->GetBinContent(1));
TChain* ch9 = new TChain("TopTree/events");
ch9->Add(Form("%s/hep_SingleTbar_tW.root",dir.Data()),nevt);
ch9->Process(L);
MyAnalysis *N = new MyAnalysis(1,1,118.7,lumi,hN->GetBinContent(1));
TChain* ch10 = new TChain("TopTree/events");
ch10->Add(Form("%s/hep_WW.root",dir.Data()),nevt);
ch10->Process(N);
MyAnalysis *O = new MyAnalysis(1,1,47.13,lumi,hO->GetBinContent(1));
TChain* ch11 = new TChain("TopTree/events");
ch11->Add(Form("%s/hep_WZ.root",dir.Data()),nevt);
ch11->Process(O);
MyAnalysis *M = new MyAnalysis(1,1,16.523,lumi,hM->GetBinContent(1));
TChain* ch12 = new TChain("TopTree/events");
ch12->Add(Form("%s/hep_ZZ.root",dir.Data()),nevt);
ch12->Process(M);
Plotter P;
//.........这里部分代码省略.........