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 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 }
TFile f0("testem6_0.root")
TCanvas * c1
Definition: plotHisto.C:7
decltype(auto) constexpr to_string(T &&obj)
ADL-aware version of std::to_string.