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

16 lines
263 B
C++

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