Files
geant4/examples/extended/electromagnetic/TestEm5/plotHisto.C
T
2016-06-09 17:01:34 +02:00

15 lines
286 B
C++

{
gROOT->Reset();
// Draw histos filled by Geant4 simulation
//
TFile f = TFile("kulchi.root");
TCanvas* c1 = new TCanvas("c1", " ");
TH1D* hist12 = (TH1D*)f.Get("12");
hist12->Draw("HIST");
TH1D* hist13 = (TH1D*)f.Get("13");
hist13->Draw("HIST");
}