Import Geant4 10.1.0 source tree
This commit is contained in:
@@ -3,15 +3,24 @@
|
||||
|
||||
// Draw histos filled by Geant4 simulation
|
||||
//
|
||||
TFile f = TFile("testem2.root");
|
||||
TFile f = TFile("run01.root");
|
||||
TCanvas* c1 = new TCanvas("c1", " ");
|
||||
|
||||
TH1D* hist1 = (TH1D*)f.Get("1");
|
||||
TH1D* hist1 = (TH1D*)f.Get("h1");
|
||||
hist1->Draw("HIST");
|
||||
|
||||
TH1D* hist4 = (TH1D*)f.Get("4");
|
||||
TH1D* hist4 = (TH1D*)f.Get("h4");
|
||||
hist4->Draw("HIST");
|
||||
|
||||
TH1D* hist5 = (TH1D*)f.Get("5");
|
||||
hist5->Draw("HIST");
|
||||
TH1D* prof4 = (TH1D*)f.Get("p4");
|
||||
prof4->Draw(" ");
|
||||
|
||||
TH1D* hist5 = (TH1D*)f.Get("h5");
|
||||
hist5->Draw("HIST");
|
||||
|
||||
TH1D* hist8 = (TH1D*)f.Get("h8");
|
||||
hist8->Draw("HIST");
|
||||
|
||||
TH1D* prof8 = (TH1D*)f.Get("p8");
|
||||
prof8->Draw(" ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user