{ // // // =========================================================== // TFile f("histos_68021.root"); TFile f("histos_66740.root"); f.Get("Ana;1"); TH1F *WIRES = (TH1F*)f.Get("nWires"); // =========================================================== TCanvas *c1 = new TCanvas("c1","WIRES",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(); WIRES->UseCurrentStyle(); WIRES->GetXaxis()->SetLabelSize(0.04); WIRES->GetYaxis()->SetLabelSize(0.04); WIRES->GetXaxis()->SetTitleOffset(0.6); WIRES->GetXaxis()->SetTitleSize(0.07); WIRES->GetXaxis()->SetTitle("number of CSC WIRE DIGIs"); WIRES->Draw(); // TPaveText *RUN = new TPaveText(80,3000,118,6000); // RUN->AddText("Run 68021 - noisy"); TPaveText *RUN = new TPaveText(80,3000,118,6000); RUN->AddText("Run 66740 - quiet"); RUN->SetTextAlign(22); RUN->SetTextColor(4); // RUN->SetTextColor(2); RUN->Draw(); TPaveText *CUT = new TPaveText(40,1000, 118,2000); // TPaveText *CUT = new TPaveText(40,10, 118,19); CUT->AddText("any N RPC RECHITS"); CUT->SetTextAlign(22); CUT->SetTextColor(1); CUT->Draw(); c1->Print("WIRES_PLAIN.gif"); // fBS.Close(); }