Files
2020-12-04 12:30:43 +01:00

21 lines
332 B
C++

{
gROOT->Reset();
// Draw histos filled by Geant4 simulation
//
TCanvas* c1 = new TCanvas("c1", " ");
c1->SetLogx(1);
c1->SetLogy(1);
c1->SetGridy(1);
c1->cd();
c1->Update();
TFile fa("pixe.root");
TH1D* ha1 = (TH1D*)fa.Get("11");
ha1->SetLineColor(kBlue);
ha1->Draw("HIST");
}