LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
plotHisto.C File Reference

Go to the source code of this file.

Functions

TFile f0 ("testem6_0.root")
 
c1 Divide (2, 3)
 
 for (int i=1;i< 7;++i)
 

Variables

TCanvas * c1 = new TCanvas("c1", " ")
 

Function Documentation

c1 Divide ( ,
 
)
TFile f0 ( "testem6_0.root"  )

Referenced by for().

for ( )

Definition at line 9 of file plotHisto.C.

References f0(), and util::to_string().

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  }
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.

Variable Documentation

TCanvas* c1 = new TCanvas("c1", " ")

Definition at line 7 of file plotHisto.C.