Files
geant4/examples/extended/electromagnetic/TestEm4/plotHisto.C
T
2016-06-09 15:58:43 +02:00

16 lines
274 B
C++

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