16 lines
274 B
C++
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");
|
|
}
|