Files
geant4/examples/extended/electromagnetic/TestEm5/plotHisto.C
T
2016-06-30 14:12:05 +02:00

12 lines
210 B
C++

{
gROOT->Reset();
// Draw histos filled by Geant4 simulation
//
TFile f("athr.root");
TCanvas* c1 = new TCanvas("c1", " ");
TH1D* hist1 = (TH1D*)f.Get("h1");
hist1->Draw("HIST");
}