LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
plotHisto.C
Go to the documentation of this file.
1 {
2  gROOT->Reset();
3 
4  // Draw histos filled by Geant4 simulation
5  //
6  TFile f("Co60.root");
7  TCanvas* c1 = new TCanvas("c1", " ");
8 
11 
12  TH1D* hist4 = (TH1D*)f.Get("4");
13  hist4->Draw("HIST");
14 
15  TH1D* hist14 = (TH1D*)f.Get("14");
16  hist14->Draw("HIST");
17 
18  TH1D* hist24 = (TH1D*)f.Get("24");
19  hist24->Draw("HIST");
20 
21  TH1D* hist25 = (TH1D*)f.Get("25");
22  hist25->Draw("HIST");
23 
24  TH1D* hist26 = (TH1D*)f.Get("26");
25  hist26->Draw("HIST");
26 }
TH1D * hist14
Definition: plotHisto.C:15
TFile f
Definition: plotHisto.C:6
TH1D * hist4
Definition: plotHisto.C:18
TCanvas * c1
Definition: plotHisto.C:7
TH1D * hist25
Definition: plotHisto.C:21
TH1D * hist26
Definition: plotHisto.C:24
TH1D * hist24
Definition: plotHisto.C:18