{ gROOT->Reset(); gStyle->SetFillColor(0); gStyle->SetCanvasColor(0); gStyle->SetPadColor(0); gStyle->SetTitleColor(0); gStyle->SetStatColor(0); gStyle->SetTextColor(1); gStyle->SetPaperSize(21,28); gStyle->SetOptTitle(0); gStyle->SetMarkerColor(2); gStyle->SetMarkerSize(0.7); gStyle->SetMarkerStyle(22); const Int_t MAX = 100; const Float_t Total = 1000.0; char readFile[20]; Int_t ntr[MAX], fntr[MAX], nhad[MAX]; Float_t x[MAX],ex[MAX],y[MAX],ey[MAX],fy[MAX],fey[MAX]; for (int i=0;ils(); gDirectory->cd("TauAnalysis"); tau->Draw("ntr"); TH1F *htemp = (TH1F*)gPad->GetPrimitive("htemp"); if(htemp) ntr[i] = htemp->GetEntries(); tau->Draw("fntr"); htemp = (TH1F*)gPad->GetPrimitive("htemp"); if(htemp) fntr[i] = htemp->GetEntries(); nhad[i] = tau->GetMaximum("f_nhadronic"); // cout << "# of entries in TAU : " << ntr[i] << endl; // cout << "# of entries in FTAU : " << fntr[i] << endl; // cout << "# of entries in FLEPTONIC : " << nhad[i] << endl; // cout << "check point 0"<< endl; // f->Close(); // cout << "check point 1"<< endl; } Float_t on,n,p,q; for(int i=0; iRange(20,24); tc1 = new TCanvas("c1", "TauFinderModule Eff. vs Pt (Chirality -1)",600,800); pt = new TPaveText(0.20,0.92,0.80,0.98); text = pt->AddText(tc1->GetTitle()); pt->SetBorderSize(1); pt->SetTextColor(28); pt->Draw(); c1 = new TPad("c1",tc1->GetTitle(),0.0,0.0,1.0,0.9); c1->Draw(); c1->Divide(1,2); c1->cd(1); graph1 = new TGraphErrors(MAX,x,y,ex,ey); //graph1->SetMarkerColor(2); //graph1->SetMarkerSize(1); //graph1->SetMarkerStyle(21); graph1->Draw("AP"); t1 = new TText(40,0.2,"Tau inclusive decay"); t1->SetTextSize(0.08); t1->SetTextColor(4); t1->Draw(); c1->cd(2); graph2 = new TGraphErrors(MAX,x,fy,ex,fey); //graph2->SetMarkerColor(2); //graph1->SetMarkerSize(1); //graph1->SetMarkerStyle(21); graph2->Draw("AP"); t1 = new TText(40,0.2,"Tau hadronic decay"); t1->SetTextSize(0.08); t1->SetTextColor(4); t1->Draw(); ps->Close(); }