nslices_potspill.C
Go to the documentation of this file.
1 {
2 
3  TFile *file=new TFile("data_ideal.root");
4  TH1F *h1=(TH1F*)file->Get("nslices_potspill");
5  h1->SetMarkerStyle(8);
6  h1->SetLineColor(4);
7  h1->SetMarkerColor(4);
8 
9  gStyle->SetOptStat(0);
10 
11  TCanvas *c1=new TCanvas("nslices_potspill","",700,600);
12  c1->cd();
13 
14  h1->SetXTitle("POT/spill (#times 10^{12})");
15  h1->SetYTitle("No. of slices");
16  h1->Draw();
17 }
TH1F * h1
TFile * file
Definition: cellShifts.C:17
TCanvas * c1