void pl_over_MatD4sel() { // TCanvas *can = new TCanvas("can22","can22"); // can->Divide(2,2); TCanvas *can = new TCanvas("can","can",50,0,800,800); can->Divide(3,4); gPad->SetFillColor(0); gStyle->SetPalette(1); gStyle->SetOptStat(kTRUE); gStyle->SetOptFit(kTRUE); gROOT->cd(); gROOT->SetDirLevel(1); cout << " DirLevel "<< gROOT->GetDirLevel()<< endl; TH1 *h; TH2 *h2; TH2F *h2f; Double_t NEvents; Double_t NFinalHits; Double_t dTRes; Double_t dTRMS; // if (hPla!=NULL) hPla->Delete(); can->cd(1); gROOT->cd(); TString hname="hBRefMul"; h1=(TH1 *)gROOT->FindObjectAny(hname); if (h1!=NULL) { h1->Draw(); gPad->SetLogy(); }else { cout << hname << " not found" << endl; } can->cd(2); gROOT->cd(); TString hname="hDTD4"; h1=(TH1 *)gROOT->FindObjectAny(hname); if (h1!=NULL) { h1->Draw(); gPad->SetLogy(); }else { cout << hname << " not found" << endl; } can->cd(3); gROOT->cd(); TString hname="hNMatch04"; h1=(TH1 *)gROOT->FindObjectAny(hname); if (h1!=NULL) { h1->Draw(); gPad->SetLogy(); }else { cout << hname << " not found" << endl; } TString hname="hNMatchD4sel"; h1=(TH1 *)gROOT->FindObjectAny(hname); if (h1!=NULL) { h1->Draw("same"); h1->SetLineColor(2); }else { cout << hname << " not found" << endl; } can->cd(4); gROOT->cd(); TString hname="hChiSel24"; h1=(TH1 *)gROOT->FindObjectAny(hname); if (h1!=NULL) { h1->Draw(); }else { cout << hname << " not found" << endl; } can->cd(5); gROOT->cd(); TString hname="hDXSel24"; h1=(TH1 *)gROOT->FindObjectAny(hname); if (h1!=NULL) { h1->Draw(); }else { cout << hname << " not found" << endl; } can->cd(6); gROOT->cd(); TString hname="hDYSel24"; h1=(TH1 *)gROOT->FindObjectAny(hname); if (h1!=NULL) { h1->Draw(); }else { cout << hname << " not found" << endl; } can->cd(7); gROOT->cd(); TString hname="hDTSel24"; h1=(TH1 *)gROOT->FindObjectAny(hname); if (h1!=NULL) { h1->Draw(); h1->Fit("gaus"); }else { cout << hname << " not found" << endl; } can->cd(8); gROOT->cd(); TString hname="hTofSel24"; h1=(TH1 *)gROOT->FindObjectAny(hname); if (h1!=NULL) { h1->Draw(); gPad->SetLogy(); }else { cout << hname << " not found" << endl; } can->cd(9); { gROOT->cd(); TString hname="hDTD4sel"; h1=(TH1 *)gROOT->FindObjectAny(hname); if (h1!=NULL) { h1->Draw(); NEvents=h1->GetEntries(); h1->SetLineColor(4); gPad->SetLogy(); }else { cout << hname << " not found" << endl; } } { TString hname2="hTofD4sel"; h12=(TH1 *)gROOT->FindObjectAny(hname2); if (h12!=NULL) { h12->Draw("same"); h12->SetLineColor(2); NEvents=h1->GetEntries(); }else { cout << hname << " not found" << endl; } } can->cd(10); gROOT->cd(); TString hname="hXYSel2D4sel"; h2=(TH2 *)gROOT->FindObjectAny(hname); if (h2!=NULL) { h2->Draw("colz"); }else { cout << hname << " not found" << endl; } can->cd(11); gROOT->cd(); TString hname="hXY4D4sel"; h2=(TH2 *)gROOT->FindObjectAny(hname); if (h2!=NULL) { h2->Draw("colz"); }else { cout << hname << " not found" << endl; } can->cd(12); gROOT->cd(); TString hname="hXY0D4sel"; h2=(TH2 *)gROOT->FindObjectAny(hname); if (h2!=NULL) { h2->Draw("colz"); }else { cout << hname << " not found" << endl; } //report summary can->SaveAs("pl_over_MatD4sel.pdf"); }