LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
plotHisto.C
Go to the documentation of this file.
1
{
2
gROOT->Reset();
3
4
// Draw histos 1-6 filled by Geant4 simulation with run02.mac
5
//
6
TFile
f0
(
"testem6_0.root"
);
7
TCanvas*
c1
=
new
TCanvas(
"c1"
,
" "
);
8
c1->Divide(2,3);
9
for
(
int
i=1; i < 7; ++i)
10
{
11
c1->cd(i);
12
const
char
* hname = std::string(
"h"
+
std::to_string
(i)).c_str();
// h1, h2, .. h6
13
f0
.Get(hname)->Draw(
"HIST"
);
14
}
15
}
f0
TFile f0("testem6_0.root")
c1
TCanvas * c1
Definition:
plotHisto.C:7
util::to_string
decltype(auto) constexpr to_string(T &&obj)
ADL-aware version of std::to_string.
geant4.10.06.p01
examples
extended
electromagnetic
TestEm6
plotHisto.C
Generated on Thu May 2 2024 20:59:32 for LArSoft by
1.8.11