Files
geant4/examples/extended/hadronic/Hadr05/plotHisto.C
T
2021-12-10 16:15:15 +00:00

28 lines
545 B
C++

{
gROOT->Reset();
// Draw histos filled by Geant4 simulation
//
///TFile f("hadr05.root");
TFile f("W-lAr.root");
TCanvas* c1 = new TCanvas("c1", " ");
TH1D* hist1 = (TH1D*)f.Get("1");
hist1->Draw("HIST");
TH1D* hist2 = (TH1D*)f.Get("2");
hist2->Draw("HIST");
TH1D* hist3 = (TH1D*)f.Get("11");
c1->SetLogy(0);
c1->cd();
c1->Update();
hist3->Draw("HIST");
TH1D* hist4 = (TH1D*)f.Get("12");
hist4->Draw("HIST");
TH1D* hist5 = (TH1D*)f.Get("21");
hist5->Draw("HIST");
}