Files
geant4/examples/extended/electromagnetic/TestEm5/plotHisto.C
T
2016-06-10 11:51:14 +02:00

12 lines
217 B
C++

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