{ gROOT->Reset(); gROOT->SetStyle("Plain"); gROOT->ForceStyle(); gStyle->SetOptLogy(1); gStyle->SetOptStat(0); gStyle->SetOptFit(0); gStyle->SetTitleX(0.1f); gStyle->SetTitleW(0.8f); gStyle->SetLineWidth(1.5); gStyle->SetTextSize(1.5); gStyle->SetTitleFont(132,"xy"); gStyle->SetLabelFont(132,"xy"); // gStyle->SetLabelFont(62,"xy"); // gStyle->SetLabelSize(0.045,"xy"); // gStyle->SetTitleSize(0.05,"xy"); // gStyle->SetTitleOffset(1.1,"xy"); gStyle->SetLabelSize(0.059,"xy"); gStyle->SetTitleSize(0.065,"xy"); gStyle->SetTitleOffset(1.,"xy"); gStyle->SetTitleOffset(1,"y"); // TFile f("cell_thr.root"); // TFile f("cell_thr1.root"); TFile f("hd_root.root"); TH1F *sipm22 = (TH1F*)f.Get("max_amp"); TCanvas *c1 = new TCanvas("c1","SiPM shape", 200, 10, 800, 500); gPad->SetBottomMargin(0.14); gPad->SetLeftMargin(0.125); // sipm22->GetYaxis()->SetNdivisions(504,-1); sipm22->SetLineWidth(2); // sipm22->SetLineColor(1); // sipm22->GetXaxis()->SetRangeUser(25.,90.); // sipm22->SetMaximum(1700); // sipm22->SetMinimum(0); sipm22->GetXaxis()->SetRangeUser(90,600); sipm22->Draw("histo"); sipm22->GetXaxis()->SetTitle("ADC count"); sipm22->GetYaxis()->SetTitle("Events"); sipm22->SetTitle(""); c1->Update(); }