{ // // // =========================================================== // TFile f("histos_68021.root"); TFile f("histos_66740.root"); f.Get("Ana;1"); TH1F *RPC = (TH1F*)f.Get("nRPCRecHitsLong"); // =========================================================== TCanvas *c1 = new TCanvas("c1","RPC",1); gStyle->SetOptStat(10); gStyle->SetLineColor(4); gStyle->SetHistFillStyle(1001); gStyle->SetHistFillColor(66); gStyle->SetHistLineColor(4); // gStyle->SetHistFillColor(92); // gStyle->SetHistLineColor(2); gStyle->SetHistLineWidth(1); gStyle->SetFrameFillColor(4000); gStyle->SetTitleW(0.55); gStyle->SetTitleH(0.07); gStyle->SetStatW(0.4); gStyle->SetStatH(0.25); gPad->SetFillColor(4000); c1->SetFillStyle(0); c1->SetLogy(); RPC->UseCurrentStyle(); RPC->GetXaxis()->SetLabelSize(0.04); RPC->GetYaxis()->SetLabelSize(0.04); RPC->GetXaxis()->SetTitleOffset(0.6); RPC->GetXaxis()->SetTitleSize(0.07); RPC->GetXaxis()->SetTitle("total number of RPC RecHits"); RPC->GetXaxis()->SetRange(0,500); RPC->Draw(); TPaveText *RUN = new TPaveText(200,100,500,200); // RUN->AddText("Run 68021 - noisy"); RUN->AddText("Run 66740 - quiet"); RUN->SetTextAlign(22); RUN->SetTextColor(4); // RUN->SetTextColor(2); RUN->Draw(); c1->Print("RPC.gif"); // fBS.Close(); }